Question about Figure Export Setup

8 views (last 30 days)
Kakit
Kakit on 14 Jul 2011
Answered: Matthias Will on 9 Jul 2019
I always need to modify the figure properties to fit certain requirements such as figure size, font size and line styles. However, I find it impossible for me to change the figure size via export setup after opening the plot tool.
It is very convenient to change size/rendering/fonts/lines in the export setup. But as I open plot tool to make more detailed modification, it just resize the figure and could never be changed using export setup.
I don't have such problem using 2008 version. But this really annoys me in the version afterwards. Has anyone come across this problem and how to solve it? Thanks!

Answers (2)

Walter Roberson
Walter Roberson on 14 Jul 2011
Generally people work around the problem by skipping the GUI and using Oliver's contribution export_fig

Matthias Will
Matthias Will on 9 Jul 2019
I had the same problem as Kakit, however I did not find use of the export_fig function to be very satisfying as the size of the exported image is controlled by the size of the plot window (at least I did not manage to set the size in export_fig, correct me if I am wrong).
The problem using the plot tool is that it is setting the 'windowStyle' property to 'docked'. So what you want to do is
set(gcf,'WindowStyle','normal');
Afterwards you can use the export setup and set the desired size.
I found this solution here. It is in german though.

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!