using print command to create high resolution image causes problem with x scale

3 visualizzazioni (ultimi 30 giorni)
Hello Matlabers,
I've been using the following command to create 300dpi tif files from MATLAB figures.
print('-dtiff','-r300','FileNameHere')
This has been working fine. However, I've noticed that there is a problem printing one figure which I had saved as a *.fig
This figure is actually a selection of data from multiple channels which I've subplotted. I have altered the ticks on the x-scale so that they read in seconds rather than samples and start at zero. The scale goes up to 500 seconds. However, when I print the figure, the scale on the resulting image only seems to go up to 250 seconds. It still plots all the data, but because the scale is incomplete, the final image is incorrect.
If I save the image as a regular low-res image using the File menu, I don't have this problem. It's only when I use the print command. Any help would be greatly appreciated.
Paul

Risposte (1)

Daniel Shub
Daniel Shub il 9 Mag 2012
Almost all printing and exporting problems are solved with FEX: export_fig

Categorie

Scopri di più su Convert Image Type in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by