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.
| Keyword | Default | Description |
|---|---|---|
stack | false (true for plot_fuel) | Stack series (area or stacked bar) |
bar | false | Draw bars instead of lines/areas |
stair | false | Step (stair) line instead of linear interpolation |
nofill | false | Prefer unfilled lines (backend-dependent when stacking) |
title | "" or plot-specific | Figure title; also used as the save basename when save is set |
seriescolor | palette-derived | Colors for series |
save | nothing | Directory path; when set, writes $title.$format via save_plot |
format | "png" | File extension. CairoMakie: "png", "pdf", "svg". PlotlyLight: "html" |
set_display | true | When false, do not display the figure |
label_fn | label_short | Transform 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_size | backend default | Override legend font size |
palette | load_palette() | Color palette for series / fuel categories |
See Select Plot Backends for CairoMakie vs PlotlyLight and save_plot formats.