Question about Figure Export Setup

8 次查看(过去 30 天)
Kakit
Kakit 2011-7-14
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!

回答(2 个)

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

Matthias Will
Matthias Will 2019-7-9
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.

类别

Help CenterFile Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by