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 6: Line 6:
;Description: A tool to save a figure exactly as it is displayed on screen (wysiwyg)
;Description: A tool to save a figure exactly as it is displayed on screen (wysiwyg)


;Usage:  
    Usage:   saver(name,fignumber,path,save_eps)
    saver(name,fignumber,path,save_eps)
        default fignumber: current figure
    Inputs:  name:      name of the file (without extension)
        default path: current dir
            fignumber: figure number (default: current figure)
        default save_eps: 0
            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)


        example: saver('myfigname',2)  
Saves figure(fig) to ''name.pdf'' in the current directory (or in path).  
 
Saves figure 2 to ''myfigname.pdf'' in the current directory.  
Especially useful in combination with the print preparation tool (setplot.m)
Especially useful in combination with the print preparation tool (setplot.m)


;Author: Rob Hoogendijk
;Author: Rob Hoogendijk

Revision as of 13:41, 3 August 2011

Back to Matlab Tools


File:Saver.m
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