Figure Saving Tool (PDF and EPS): Difference between revisions

From Control Systems Technology Group
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
;[[File: saver.m]]
;[[File: saver.m]]
;[[File: export_fig.zip]]
;[[File: export_fig.zip]]
First install the export_fig toolbox in a folder that is in the Matlab path. The export_fig toolbox can save dashed and dotted lines in a proper way, which is not possible using the standard Matlab 'print' function.





Revision as of 14:21, 15 October 2013

Back to Matlab Tools


Files

Note: Wikipedia automatically changes the first letter of a filename to uppercase. To avoid warnings in Matlab, save the file in lowercase.

File:Saver.m
File:Export fig.zip

First install the export_fig toolbox in a folder that is in the Matlab path. The export_fig toolbox can save dashed and dotted lines in a proper way, which is not possible using the standard Matlab 'print' function.


Description
A tool to save a figure exactly as it is displayed on screen (wysiwyg)
   Usage:   saver(name,fignumber,path,save_eps)

   Inputs:  name:      name of the file (without extension)
            fignumber: figure number (default: current figure)
            path:      where to save the file (default: current dir)
            save_eps:  [ 1 | 0 (default) ] also save as .eps file 
   
   Outputs: name.pdf (optionally also name.eps) 

Saves figure(fig) to name.pdf in the current directory (or in path). Especially useful in combination with the print preparation tool (setplot.m)


Author
Rob Hoogendijk