pyworkflow.gui.plotter module
This module implement the classes to create plots on xmipp.
- class pyworkflow.gui.plotter.Plotter(x=1, y=1, mainTitle='', figsize=None, dpi=100, windowTitle='', fontsize=8, **kwargs)[source]
Bases:
View
Create different types of plots using the matplotlib library.
This Plotter class has some utilities to create a Matplotlib figure and add some plots to it. Params:
x, y: number of rows and columns of the grid for plots. mainTitle: figure main title. figsize: the size of the figure, if None, it will be guessed from x and y dpi: resolution, 100 by default. windowTitle: title for the whole windows.
- backend = None
- createSubPlot(title, xlabel, ylabel, xpos=None, ypos=None, yformat=False, projection='rectilinear', subtitle=None)[source]
Create a subplot in the figure. You should provide plot title, and x and y axis labels. yformat True specified the use of global self.plot_yformat Possible values for projection are:
‘aitoff’, ‘hammer’, ‘lambert’, ‘mollweide’, ‘polar’, ‘rectilinear’
- classmethod setBackend(value)[source]
Possible values are: - TkAgg for Tkinter - Agg for non-interactive plots.