I do a lot of work that require data visualization, so I must perform multiple plots. I usually try to keep a consistent design, and for each plot I mostly have to copy and paste the styling into the Plot[] function. However, sometimes when I create new documents, I need to open old ones just to copy and paste the styling again. That becomes quite often time-consuming, especially when you really have to “bake” some plots and send them fast to your boss
I was wondering if there is a way to save all my plot settings as some kind of template, and then just use Plot[x,{x,0,1}, Style->myStyle[xlabel , ylabel], where myStyle[xlabel,ylabel] can be something like:
Hey there, thank you for the response.
I understand this solution and it does work, but this is local to my current document. If I go and create a new one, I will have to declare this function again.
What I would actually want is to save this as a general template and use it in any document I create. You think this is possible?
One option would be to add the style definition function to init.m. The definition is loaded when a kernel is started so it will be available in all open notebooks, not just the new ones you create.
You could also define a define custom plot theme, see this MSE post for examples.