lineplot#

cfplot.lineplot(f=None, x=None, y=None, fill=True, lines=True, line_labels=True, title=None, ptype=0, linestyle='-', linewidth=1.0, color=None, xlog=False, ylog=False, verbose=None, swap_xy=False, marker=None, markersize=5.0, markeredgecolor='k', markeredgewidth=0.5, label=None, legend_location='upper right', xunits=None, yunits=None, xlabel=None, ylabel=None, xticks=None, yticks=None, xticklabels=None, yticklabels=None, xname=None, yname=None, axes=True, xaxis=True, yaxis=True, titles=False, zorder=None)[source]#
The interface to line plotting in cf-plot.

The minimum use is lineplot(f) where f is a CF field.
If x and y are passed then an appropriate plot is made allowing
x vs data and y vs data plots.
When making a labelled line plot:
always have a label for each line
always put the legend location as an option to the last call to lineplot

f - CF data used to make a line plot
x - x locations of data in y
y - y locations of data in x
linestyle='-' - line style
color=None - line color. Defaults to Matplotlib colour scheme
unless specified
linewidth=1.0 - line width
marker=None - marker for points along the line
markersize=5.0 - size of the marker
markeredgecolor = 'k' - colour of edge around the marker
markeredgewidth = 0.5 - width of edge around the marker
xlog=False - log x-axis
ylog=False - log y-axis
label=None - line label - label for line
legend_location='upper right' - default location of legend
Other options are {'best': 0, 'center': 10,
'center left': 6,
'center right': 7, 'lower center': 8,
'lower left': 3, 'lower right': 4,
'right': 5,
'upper center': 9, 'upper left': 2,
'upper right': 1}
titles=False - set to True to have a dimensions title
verbose=None - change to 1 to get a verbose listing of what lineplot
is doing
zorder=None - plotting order

The following parameters override any CF data defaults:
title=None - plot title
xunits=None - x units
yunits=None - y units
xlabel=None - x name
ylabel=None - y name
xname=None - deprecated keyword
yname=None - deprecated keyword
xticks=None - x ticks
xticklabels=None - x tick labels
yticks=None - y ticks
yticklabels - y tick labels
axes=True - plot x and y axes
xaxis=True - plot xaxis
yaxis=True - plot y axis


When making a multiple line plot:
a) set the axis limits with gset before plotting the lines
b) the last call to lineplot is the one that any of the above
axis overrides should be placed in.