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
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
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.