stackplot (pyleoclim.utils.plotting.stackplot)
- pyleoclim.utils.plotting.stackplot(x, y, figsize=None, xlabel=None, ylabel=None, xlim=None, ylim=None, title=None, savefig_settings=None, ax=None, style=None, plot_kwargs=None, mute=False, color=None)[source]
Stack plot of timeseries
Please not that this function uses a different default style than the Pyleoclim package. To change the style, pass it in the set_style argument
- Parameters
x (nested list) – x values of individual timeseries
y (nested list) – y values of individual timeseries
figsize (list) – a list of two integers indicating the figure size
xlabel (str) – label for x-axis
ylabel (str) – label for y-axis
xlim (list) – set the limits of the x axis
ylim (nested list) – set the limits of the y axes. Should be the same length as y
title (str) – the title for the figure
ax (pyplot.axis) – the pyplot.axis object
style (str) – style of the plot. See set_style
plot_kwargs (dict) – the keyword arguments for ax.plot()
mute (bool) –
- if True, the plot will not show;
recommend to turn on when more modifications are going to be made on ax
(going to be deprecated)
savefig_settings (dict) –
the dictionary of arguments for plt.savefig(); some notes below: - “path” must be specified; it can be any existed or non-existed path,
with or without a suffix; if the suffix is not given in “path”, it will follow “format”
”format” can be one of {“pdf”, “eps”, “png”, “ps”}
color (list) – list of colors chosen from a particular coloring scheme with the same size as y to distinguish different series
See also
pyleoclim.utils.plotting.set_style
set different styles for the figures. Should be set before invoking the plotting functions
pyleoclim.utils.plotting.savefig
save figures
pyleoclim.utils.plotting.showfig
equivalent to plt.show(). Platform-dependent