|Phyks (Lucas Verney) 5d77471f51 Fix DeprecationWarning due to ellipsis in adaptive sampling.||3 years ago|
|docs||3 years ago|
|replot||3 years ago|
|.gitignore||3 years ago|
|Examples.ipynb||3 years ago|
|LICENSE||3 years ago|
|README.md||3 years ago|
|requirements.txt||3 years ago|
|setup.py||3 years ago|
This repo is an attempt for a better API to plot graphs with Matplotlib in Python.
Matplotlib is a wonderful Python modules to plot data series, functions and
so on. However, I think the API is quite verbose. This is an attempt at
providing a better frontend API on top of
matplotlib for easy and fast
plotting, especially at prototyping time.
These are the current features. I will extend the module whenever I feel the need to introduce new functions and methods. Please let me know about any bad design in the API, or required feature!
matplotlib.pyplot.subplots()? This module abstracts it using
withstatement. New figures are defined by a
withstatement, and are
shown automatically (or
saved) upon leaving the
matplotlibcan only plot point series and not evaluate a function à la Mathematica? This module let you do things like
plot(sin, (-10, 10))to plot a sine function between -10 and 10, using adaptive sampling.
matplotlib, it is directly applied to the figure, and not deferred to the final render call. Then, if calling
matplotlib.pyplot.legend()before having actually
plotted anything, it will fail. This is not the case with this module, as it abstracts on top of
matplotliband do the actual render only when the figure is to be
shown. Even after having called the
showmethod, you can still change everything in your figure!
matplotlibif you want, as
matplotlibstate and parameters are not directly affected by this module, contrary to what
seaborndo when you import it for instance.
loc="top left"is easier to remember than
loc="upper left"in a
matplotlib.pyplot.legend()call? No worry, this module aliases it for you! (same for "bottom" with respect to "lower"). Similarly, you can use
xlimarguments to specify axes ranges (respectively
labelkeyword, a legend will be added automatically on your graph (you can still explicitly tell it not to add a legend by setting the
matplotlib, if available.
LaTeXinstalled on your machine, it will overload
matplotlibsettings to use
matplotlibto define a subplot grid and arrange your plot?
replotlets you describe your grid visually using ascii art!
replothandles it for you out of the box!
loglogplotshortcuts functions to plot in log scale or loglog scale. Use
plotcommand to plot using orthonormal axes.
This Python module is released under MIT license. Feel free to contribute and
reuse. For more details, see