pyspecdata.core.figlist.next

figlist.next(input_name, legend=False, boundaries=None, twinx=None, fig=None, **kwargs)

Switch to the figure given by input_name, which is used not only as a string-based name for the figure, but also as a default title and as a base name for resulting figure files.

In the future, we actually want this to track the appropriate axis object!

Parameters:
  • legend (bool) – If this is set, a legend is created outside the figure.
  • twinx ({0,1}) –
    1:plots on an overlayed axis (the matplotlib twinx) whose y axis is labeled on the right when you set this for the first time, you can also set a color kwarg that controls the coloring of the right axis.
    0:used to switch back to the left (default) axis
  • boundariesneed to add description
  • kwargs (dict) – Any other keyword arguments are passed to the matplotlib (mayavi) figure() function that’s used to switch (create) figures.