Themes

Many parameters controlling the appearance of plots can be overridden by passing a Theme object to the plot function.

The constructor for Theme takes zero or more named arguments each of which overrides the default theme's value.

Parameters

Examples

plot(x=rand(10), y=rand(10),
     Theme(panel_fill=colorant"black", default_color=colorant"orange"))
x 0.00 0.25 0.50 0.75 1.00 0.0 0.5 1.0 y

Setting the font to Computer Modern to create a LaTeX-like look, and choosing a font size:

plot(x=rand(10), y=rand(10),
     Theme(major_label_font="CMU Serif",minor_label_font="CMU Serif",major_label_font_size=16pt,minor_label_font_size=14pt))
x 0.0 0.5 1.0 0.0 0.2 0.4 0.6 0.8 1.0 y