Matpyxplot is a wrapper for pyx with a matplotlib-like syntax. Latex quality figures can be generated directly in PDF and EPS formats with simple code.
Basic steps involved in creating figures are:
from matpyxplot import plt
-
Create a canvas
canvas = plt.Canvas(...)
-
Create 'floating' graphs
g1 = plt.Graph(...)
-
Add plots to them
g1.plot(....)
-
(optional) Specify axis parameters
g1.setXAxisParams(...) g1.setXAxisParams(...)
-
(optional) Insert a legend
g1.showLegend(....)
-
Arrange the graphs in the canvas
canvas.addGraph(...) canvas.addGraphBelowOf(...) canvas.addGraphRightOf(...)
-
Write the PDF/EPS file
canvas.writePDF() canvas.writeEPS()
- Cannot produce empty marker symbols(can be circumvented with specifying markerfacecolor to be white).
- Logarithm axis are not supported as of now.
- The set of possible colors, markers, line styles are limited.