Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Print command

Subject: Print command

From: Douglas Nicolin

Date: 14 Jun, 2013 20:53:09

Message: 1 of 3

Hello everyone!
I want to export some figures from matlab in high resolution in order to use them in an article that I intent to submit to a journal. By doing some research I found out that the command 'print' is an excellent choice to export figures and change their resolution. But there's a little problem: the figures are being exported with a black background and without the labels of the axis. I use to edit the figures and insert the labels of the axis on the figure window and I'd like to export the figures with the labels of the axis. Does anybody know how to use the command 'print' and to keep the labels of the axis when the figure is exported? I'd appreciate any help. Thanks.

Subject: Print command

From: TideMan

Date: 14 Jun, 2013 21:04:10

Message: 2 of 3

On Saturday, June 15, 2013 8:53:09 AM UTC+12, Douglas Nicolin wrote:
> Hello everyone!
>
> I want to export some figures from matlab in high resolution in order to use them in an article that I intent to submit to a journal. By doing some research I found out that the command 'print' is an excellent choice to export figures and change their resolution. But there's a little problem: the figures are being exported with a black background and without the labels of the axis. I use to edit the figures and insert the labels of the axis on the figure window and I'd like to export the figures with the labels of the axis. Does anybody know how to use the command 'print' and to keep the labels of the axis when the figure is exported? I'd appreciate any help. Thanks.

print('-depsc','myplot1')
or if you want to view the plot in a package like ThumbsPlus:
print('-depsc','-tiff','myplot1')

Subject: Print command

From: Yehonatan Peleg

Date: 15 Jun, 2013 02:02:07

Message: 3 of 3

I would choose saveas function..... - http://www.mathworks.com/help/matlab/ref/saveas.html

If you need a very good resolution and the time is not a concern i would try export_fig -
http://www.mathworks.com/matlabcentral/fileexchange/23629-exportfig
its creates better result but it is slower then saveas

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us