Plot styling keywords

These keyword arguments are accepted by the CairoMakie and PlotlyLight plot functions (plot_dataframe, plot_powerdata, plot_results, plot_demand, plot_fuel, and their ! / *_plotly variants). Function-specific keywords are documented on each method in the Public API.

KeywordDefaultDescription
stackfalse (true for plot_fuel)Stack series (area or stacked bar)
barfalseDraw bars instead of lines/areas
stairfalseStep (stair) line instead of linear interpolation
nofillfalsePrefer unfilled lines (backend-dependent when stacking)
title"" or plot-specificFigure title; also used as the save basename when save is set
seriescolorpalette-derivedColors for series
savenothingDirectory path; when set, writes $title.$format via save_plot
format"png"File extension. CairoMakie: "png", "pdf", "svg". PlotlyLight: "html"
set_displaytrueWhen false, do not display the figure
label_fnlabel_shortTransform legend labels. Built-ins: label_short, label_component, label_variable, label_acronym, label_first_word, label_truncate. With combine_categories = true (default for powerdata/results/fuel), labels are category names without __, so label_short is often a no-op
legend_position:right:right or :bottom
legend_font_sizebackend defaultOverride legend font size
paletteload_palette()Color palette for series / fuel categories

See Select Plot Backends for CairoMakie vs PlotlyLight and save_plot formats.