I’m plotting the same stuff across multiple different plots. To make things look consistent I want the same things to have the same look, regardless of which plot they are in. What is the best way to accomplish that?
Here’s a MWE. Two different plots, in both are a path
, home
, and work
. These are colored and shaped consistently. I’m basically trying to avoid from repeatedly setting the attributes of the plotted content. I tried using a Dict
but couldn’t get to work…
plot(rand(5), color = :green, label = "path")
scatter!(rand(1), rand(1), markershape = :star5, markercolor = :red, label = "home")
scatter!(rand(1), rand(1), markershape = :pentagon, markercolor = :blue, label = "work")
plot(rand(5), proj=:polar, color = :green, label = "path")
scatter!(rand(1), rand(1), markershape = :star5, markercolor = :red, label = "home")
scatter!(rand(1), rand(1), markershape = :pentagon, markercolor = :blue, label = "work")
Any help appreciated!