Home | Trees | Indices | Help |
|
---|
|
Plotting facilities, based on Python's MPL library.
The Chart object is a facade which provides intuitive access to MPL's plotting objects. The following examples show a typical use of Chart:
>>> chart = Chart() # a chart with a single plot >>> chart = Chart(rows=2, columns=2) # a chart with 2x2=4 plots
>>> chart.plots[0] # first plot (at row=0, column=0) Plot (matplotlib.axes.AxesSubplot) >>> chart.plots[0, 1] Plot (matplotlib.axes.AxesSubplot) # plot at row=0, column=1
>>> chart.plots[0].hist(...) >>> chart.plots[0].set_title('T')
>>> chart.plots[1].scatter(...) >>> chart.plots[1].set_xlabel('X')
>>> chart.show() >>> chart.hide()
>>> chart.save(filename, format=chart.formats.PDF)
If using the GUI, do not forget to dispose the chart at the end:
>>> chart.dispose()
or simply use the chart in a context manager:
>>> with Chart() as chart: chart...
Classes | |
Backend Abstract class defining the behavior of all Chart GUI backends. |
|
Backends Enumeration of chart backends. |
|
Chart Simple and clean facade to Matplotlib's plotting API. |
|
PlotsCollection A list-like collection of all plots in the chart (0-based). |
|
WxBackendImpl WxPython Backend implementor. |
Variables | |
__package__ =
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Jul 4 20:19:04 2017 | http://epydoc.sourceforge.net |