Data.plot_xy¶
- Data.plot_xy(xcol=None, ycol=None, fmt=None, xerr=None, yerr=None, **kargs)¶
Makesa simple X-Y plot of the specified data.
- Parameters:
xcol (index) – Xcolumn index or label
ycol (index) – Y column index or label
- Keyword Arguments:
fmt (strong or sequence of strings) – Specifies the format for the plot - see matplotlib documentation for details
xerr,yerr (index) – C
plt.errorbar (olumns of data to get x and y errorbars from. Setting these turns the default plotter to) –
xlabel (string) – X axes label. Default is None - guess from xvals or metadata
ylabel (string) – Y axes label, Default is None - guess from metadata
title (string) – Optional parameter that specifies the plot title - otherwise the current DataFile filename is used
plotter (function) – Function to use to plot data. Defaults to plt.plot unless error bars are set
show_plot (bool) – Turn on interfactive plotting and show plot when drawn
save_filename (string or None) – If set to a string, save the plot with this filename
figure (integer or matplotlib.figure or boolean) – Controls which figure is used for the plot, or if a new figure is opened.
multiple (string) –
- how to handle multiple y-axes with a common x axis. Options are:
common single y-axis (default)
panels panels sharing common x axis
sub plots sub plots
y2 single axes with 2 y scales
**kargs (dict) – Other arguments are passed on to the plotter.
- Returns:
A matplotlib.figure instance