why is it so difficult to set default graphics properties
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Wilson A N
2017-10-30
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!