Skip to content

Flint: Custom plot grid

Valentin Valls requested to merge custom-plot-grid into master

This PR provides a custom widget for parenting sub plots.

This can be used to structure custom plot together in a single view.

Capture_d_écran_de_2022-06-20_19-56-03

f = flint()
p = f.get_plot("grid", name="Grid", selected=True)
p1 = p.get_plot("curve", row=0, col=0)
p2 = p.get_plot("curve", row=0, col=1)
p3 = p.get_plot("curve", row=1, col=0)
p4 = p.get_plot("curve", row=1, col=1)

p1.add_curve([0, 1, 2, 3], [1, 2, 1, 2])
p2.add_curve([0, 1, 2, 3], [2, 1, 2, 1])
p3.add_curve([0, 1, 2, 3], [3, 2, 1, 0])
p4.add_curve([0, 1, 2, 3], [0, 1, 2, 3])
Edited by Valentin Valls

Merge request reports

Loading