Create charts with OpenElectricity branding and colors
Technology | Color | Hex Code |
---|---|---|
Solar Rooftop | 🟡 Gold | #FFD700 |
Solar Utility | 🟠 Orange | #FFA500 |
Wind | 🟢 Forest Green | #4A8E3C |
Hydro | 🔵 Light Blue | #4A90E2 |
format_chart()
function applies consistent OpenElectricity branding:
Element | Configuration |
---|---|
Font Family | DM Sans, fallback to system sans-serif |
Background | Clean white (#FFFFFF) |
Text Color | Dark gray (#1A1A1A) |
Grid | Light gray (#E0E0E0) at 30% opacity |
Grid Style | Solid lines, 0.5pt width |
Spines | Only bottom and left visible |
Title Size | 14pt bold |
Label Size | 11pt regular |
Tick Size | 10pt regular |
Color Usage
get_fueltech_color()
for consistent coloringWatermark Placement
Chart Layout
Performance
Function | Description |
---|---|
set_openelectricity_style() | Apply global matplotlib/seaborn styling |
create_styled_figure(figsize, dpi) | Create pre-styled figure and axes |
format_chart(ax, **kwargs) | Apply OpenElectricity formatting to axes |
add_watermark(ax, **kwargs) | Add logo watermark to axes |
Function | Description |
---|---|
get_fueltech_color(fueltech) | Get hex color for a fuel technology |
get_fueltech_palette(fueltechs) | Get list of colors for multiple technologies |
get_color_map() | Get complete fuel technology color dictionary |
get_brand_colors() | Get OpenElectricity brand color palette |
dpi
parameter in create_styled_figure()
to 150 or 200 for sharper output.