galpy.util.plot.plot¶
- galpy.util.plot.plot(*args, **kwargs)[source]¶
Wrapper around matplotlib’s plot function.
- Parameters:
*args – Inputs to
pyplot.plot
.xlabel (str, optional) – x-axis label, LaTeX math mode, no $s needed.
ylabel (str, optional) – y-axis label, LaTeX math mode, no $s needed.
xrange (tuple, optional) – x range to plot over.
yrange (tuple, optional) – y range to plot over.
overplot (bool, optional) – If True, plot on top of the current figure.
gcf (bool, optional) – If True, do not start a new figure.
onedhists (bool, optional) – If True, make one-d histograms on the sides.
onedhistcolor (str, optional) – Histogram color.
onedhistfc (str, optional) – Histogram fill color.
onedhistec (str, optional) – Histogram edge color.
onedhistxnormed (bool, optional) – If True, normalize the x-axis histogram.
onedhistynormed (bool, optional) – If True, normalize the y-axis histogram.
onedhistxweights (numpy.ndarray, optional) – Weights for the x-axis histogram.
onedhistyweights (numpy.ndarray, optional) – Weights for the y-axis histogram.
bins (int, optional) – Number of bins for the one-d histograms.
semilogx (bool, optional) – If True, plot the x-axis on a log scale.
semilogy (bool, optional) – If True, plot the y-axis on a log scale.
loglog (bool, optional) – If True, plot both axes on a log scale.
scatter (bool, optional) – If True, use
pyplot.scatter
instead ofpyplot.plot
.colorbar (bool, optional) – If True, add a colorbar.
crange (tuple, optional) – Range for the colorbar.
clabel (str, optional) – Label for the colorbar.
**kwargs – All other keyword arguments are passed to
pyplot.plot
orpyplot.scatter
.
- Returns:
Output from
pyplot.plot
/pyplot.scatter
or 3 Axes instances ifonedhists=True
.- Return type:
tuple
Notes
2009-12-28 - Written - Bovy (NYU)