Replot ====== This repo is an attempt for a better API to plot graphs with [Matplotlib](http://matplotlib.org/) 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. ## Features 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!
with
statementmatplotlib.pyplot.subplots()
? This module abstracts it using
with
statement. New figures are defined by a
with
statement, and are show
n automatically (or
save
d) upon leaving the with
context.
matplotlib
can 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 plot
ted anything, it will fail. This is not
the case with this module, as it abstracts on top of
matplotlib
and do the actual render only when the figure is
to be show
n. Even after having called the show
method, you can still change everything in your figure!matplotlib
matplotlib
if you want, as
matplotlib
state and parameters are not directly affected by
this module, contrary to what seaborn
do 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")label
keyword, a legend
will be added automatically on your graph (you can still explicitly tell
it not to add a legend by setting the legend
attribute to
False
).LaTeX
rendering in matplotlib
, if
available.replot
finds LaTeX
installed on your
machine, it will overload matplotlib
settings to use
LaTeX
rendering.matplotlib
to define a subplot
grid and arrange your plot? replot
lets you describe your
grid visually using ascii art!replot
handles
it for you out of the box!replot
defines logplot
and
loglogplot
shortcuts functions to plot in log scale
or loglog scale. Use `orthonormal=True` on a `plot` command to
plot using orthonormal axes.