You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, plotting a StateMonitor with multiple variables gives an error. It would be nice to plot multiple state variables to a figure with multiple axes (with shared x-axis so zooming in on one zooms on all). You could also imagine having a syntax that allows you to choose which axes are re-used and which are new, e.g. show_variables=[('v', 'vt'), ('I',)] would show v and vt on one axis, and I on another. It could automatically select the correct number of subplots to use to fill the figure.
The problem with this is that at the moment you can specify an axis to plot to, and this would have to allow plotting to multiple axes.
In the past I've written plotting routines for my own use where you can pass an ax and fig argument. If the plotting routine needs multiple axes, you have to pass a fig (or it creates a new one if fig is None). If the plotting routine only needs one axis, you can either pass an ax or fig (if you pass a fig, it will do subplot(111) on that fig). Maybe this scheme would work here?
The text was updated successfully, but these errors were encountered:
At the moment, plotting a StateMonitor with multiple variables gives an error. It would be nice to plot multiple state variables to a figure with multiple axes (with shared x-axis so zooming in on one zooms on all). You could also imagine having a syntax that allows you to choose which axes are re-used and which are new, e.g.
show_variables=[('v', 'vt'), ('I',)]
would show v and vt on one axis, and I on another. It could automatically select the correct number of subplots to use to fill the figure.The problem with this is that at the moment you can specify an axis to plot to, and this would have to allow plotting to multiple axes.
In the past I've written plotting routines for my own use where you can pass an
ax
andfig
argument. If the plotting routine needs multiple axes, you have to pass a fig (or it creates a new one if fig is None). If the plotting routine only needs one axis, you can either pass an ax or fig (if you pass a fig, it will dosubplot(111)
on that fig). Maybe this scheme would work here?The text was updated successfully, but these errors were encountered: