why is it so difficult to set default graphics properties
1 view (last 30 days)
Show older comments
what I want to do is set a few default properties for figures so that every new figure has the same dimensions and prints the same -- simple right?
Yet in Matlab (I'm using 2017b) it seems like I need to go to many places and set default values for position, orientation, size, etc. It seems like there should be a unified interface to the G2 graphics by now so I do not need to set some things in "groot", some things in "figure" some things in "printopt" and other things in "printpreview"
BTW, the reason I need to do this is because just setting the "DefaultPaperPositionMode" to "auto" still produces clipped graphics for figures printed or save from my high resolution laptop display.
its very frustrating to need to dig through the G2 documentation (which is very poor and incomplete in my opinion) to try and find what properties need to be set where.
I'm hoping that it is just my ignorance in not knowing an "elegant" solution and that someone can point me to the "easy" solution. Note: I know I can set properties for each figure individually -- what I am looking for is a simple way to set defaults.
0 Comments
Answers (1)
Wilson A N
on 30 Oct 2017
Maybe you can check this link on how to create the default properties values for plots:
Once you have the commands for setting the default properties of figures, you can include them in the startup.m file. Save the file and restart MATLAB.
Now when each time you open a new MATLAB session, it will first execute the startup.m file and your desired graphics properties are automatically set.
0 Comments
See Also
Categories
Find more on Specifying Target for Graphics Output in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!