How to Change the Basic Settings of a Julia Plot
Code
You can use the default()
function.
using Plots
default(size = (400,400), color = :red)
default(:size, (400,400))
for key in [:size, :color], value in [(400,400), :red]
default(key, value)
end
There is a way to set it up like the ordinary plot()
function, and there is a way to change them one by one by giving key and value. Usually, the former is more convenient, but in the case of very complicated settings, the latter method can also be used by utilizing loops.
Initialization
If you want to reset all default settings, you can use default()
.
Environment
- OS: Windows
- julia: v1.6.3