-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #166 from wpfff/betterplotting
refactoring the plotting system
- Loading branch information
Showing
18 changed files
with
1,857 additions
and
1,271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,67 @@ | ||
Plotting elements | ||
----------------- | ||
################# | ||
|
||
.. _Base plot API: | ||
|
||
Base plotting elements | ||
^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
Overview | ||
======== | ||
|
||
Classes for plotting functionality | ||
---------------------------------- | ||
|
||
* :class:`.PlotNode` : The base class for a `.Node` with the purpose of receiving data for visualization. | ||
* :class:`.PlotWidgetContainer` : A class that contains a `PlotWidget` (and can change it during runtime) | ||
* :class:`.PlotWidget` : An abstract widget that can be inherited to implement actual plotting. | ||
* :class:`.AutoFigureMaker` : A convenience class for semi-automatic generation of figures. | ||
The purpose is to keep actual plotting code out of the plot widget. This is not mandatory, just convenient. | ||
|
||
Data structures | ||
--------------- | ||
|
||
* :class:`.PlotDataType` : Enum with types of data that can be plotted. | ||
* :class:`.ComplexRepresentation`: Enum with ways to represent complex-valued data. | ||
|
||
|
||
Additional tools | ||
---------------- | ||
|
||
* :func:`.makeFlowchartWithPlot` : convenience function for creating a flowchart that leads to a plot node. | ||
* :func:`.determinePlotDataType` : try to infer which type of plot data is in a data set. | ||
|
||
Object Documentation | ||
==================== | ||
|
||
Base elements | ||
^^^^^^^^^^^^^ | ||
.. automodule:: plottr.plot.base | ||
:members: | ||
|
||
.. _MPL plot API: | ||
|
||
Matplotlib plotting tools | ||
^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
Overview | ||
======== | ||
|
||
.. automodule:: plottr.plot.mpl | ||
:members: | ||
|
||
Object Documentation | ||
==================== | ||
|
||
General Widgets | ||
--------------- | ||
.. automodule:: plottr.plot.mpl.widgets | ||
:members: | ||
|
||
General plotting tools | ||
---------------------- | ||
.. automodule:: plottr.plot.mpl.plotting | ||
:members: | ||
|
||
Autoplot | ||
-------- | ||
.. automodule:: plottr.plot.mpl.autoplot | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from matplotlib import cycler | ||
|
||
config = { | ||
'matplotlibrc': { | ||
'axes.grid': True, | ||
'axes.prop_cycle': cycler('color', ['1f77b4', 'ff7f0e', '2ca02c', 'd62728', '9467bd', '8c564b', | ||
'e377c2', '7f7f7f', 'bcbd22', '17becf']), | ||
'figure.dpi': 150, | ||
'figure.figsize': (4.5, 3), | ||
'font.size': 6, | ||
'font.family': ['Helvetica', 'Arial', 'DejaVu Sans', 'Bitstream Vera Sans'], | ||
'grid.linewidth': 0.5, | ||
'grid.linestyle': '--', | ||
'image.cmap': 'magma', | ||
'legend.fontsize': 6, | ||
'legend.frameon': True, | ||
'legend.numpoints': 1, | ||
'legend.scatterpoints': 1, | ||
'lines.marker': 'o', | ||
'lines.markersize': '3', | ||
'lines.markeredgewidth': 1, | ||
'lines.markerfacecolor': 'w', | ||
'lines.linestyle': '-', | ||
'lines.linewidth': 1, | ||
'savefig.dpi': 300, | ||
'savefig.transparent': False, | ||
}, | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
from .base import PlotNode, PlotWidgetContainer, makeFlowchartWithPlot | ||
from .mpl import AutoPlot as MPLAutoPlot | ||
from .base import PlotNode, PlotWidgetContainer, makeFlowchartWithPlot, \ | ||
PlotWidget |
Oops, something went wrong.