Note
Go to the end to download the full example code.
Very Compact Style#
A style is a preset of configuration values. The very compact style hides the subplot toolbar and frame, useful for figures with many subplots.

/home/runner/work/fastplotlib/fastplotlib/fastplotlib/graphics/features/_base.py:19: UserWarning: casting float64 array to float32
warn(f"casting {array.dtype} array to float32")
# test_example = true
import numpy as np
import fastplotlib as fpl
fpl.style.very_compact()
xs = np.linspace(-10, 10, 100)
ys = np.sin(xs)
data = np.column_stack([xs, ys])
figure = fpl.Figure(shape=(2, 2), size=(700, 560))
for subplot in figure:
subplot.add_line(data)
figure.show()
# NOTE: fpl.loop.run() should not be used for interactive sessions
# See the "JupyterLab and IPython" section in the user guide
if __name__ == "__main__":
print(__doc__)
fpl.loop.run()
Total running time of the script: (0 minutes 0.581 seconds)