I’d like to set some default parameters for plotting using Plots.jl by defining the “PLOTS_DEFAULTS” variable in my “startup.jl” . I have questions regarding its behavior:
-
It appears that setting “PLOTS_DEFAULTS” successfully applies my default parameters, and subsequent calls to the “plot()” function respect these settings. However, if I execute the “default()” function, all parameters revert to Plots.jl’s built-in defaults, and my custom “PLOTS_DEFAULTS” settings are lost. Is this the intended behavior? I expected that defining “PLOTS_DEFAULTS” would change the “defaults” themselves, but it seems that the “default()” function does not consider “PLOTS_DEFAULTS” .
-
Given the behavior described above, how can I have my custom parameters defined in “PLOTS_DEFAULTS” re-effective after executing the “default()” function?
-
I want to specify margins (such as “top_margin” ) through “PLOTS_DEFAULTS” . Is it possible to set, for example, a 5mm top margin when mm is not available? I don’t want to load a package in my startup.jl just for this.