PlasmaCalcs.plotting.labels.TextPlotElement
- class PlasmaCalcs.plotting.labels.TextPlotElement(txt, **kw_super)
Bases:
MoviePlotElementMoviePlotElement for Text object. see MovieText for updating text over time.- txt: Text object
- e.g., the result of plt.text(…) or plt.title(…)
To view or adjust plot settings in self, see self.plot_settings, or help(self.plot_settings).- __init__(txt, **kw_super)
Methods
__init__(txt, **kw_super)update_data(data)Attributes
REPR_TEXT_MAX_LEN- property ax
- axes containing this Text.
- property fig
- figure containing this Text.
- property text
- current text string. Internally stored at self.data[‘text’]
- property txt
- matplotlib.text.Text object
- update_data(data)
- update the plot using data[‘text’].return list of all updated matplotlib Artist objects, for FuncAnimation(…, blit=True),i.e. [] if self.ax is None else [self.txt].(FuncAnimation fails to blit any artists not attached to axes,and self.txt is attached to axes if and only if self.ax is not None)