Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (28 sloc) 984 Bytes

Config file

A configuration file can be used to save theming options. The config file must be global (in joinpath(homedir(), ".config", "makie", "theme.jl")). This makes it easier to have a common style for multiple plots without explicitly giving the desired options each time.

A config file must return an Attributes object. For example, if the contents of theme.jl is the following:

Attributes(
    font = "Chilanka",
    backgroundcolor = :gray,
    color = :blue,
    linestyle = :dot,
    linewidth = 3
)

then Makie will start with this theme.

There are other things that you can configure in this file before returning the Attributes, though.

Resolution setting

You can set the default resolution, at which Scenes will be displayed, by adding the statement:

reasonable_resolution() = (800, 800)

before the attributes' declaration.

You can also configure your primary resolution, by:

primary_resolution() = (1920, 1080)
You can’t perform that action at this time.