Make sure to speficy the plotting package you are using - there are a number of good options in Julia and they all work differently so an answer can only be helpful if it discussed the one you’re actually using.
From your code snippet I guess you are using Makie, in which case this discussion might be relevant: