Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SaveCanvas.m File Reference

Go to the source code of this file.

Functions

 set (fig,'Units','points') set(fig
 
 set (fig, 'PaperPosition',[0 0 pos(3) pos(4)])
 
 set (fig, 'PaperSize',[pos(3) pos(4)])
 
 print (fig, '-dpng','-r100',[savename '.png'])
 
 print (fig, '-dpdf',[savename '.pdf'])
 
 print (fig, '-depsc',[savename '.eps'])
 
 saveas (fig,[savename '.pdf'])
 
 disp (['Updated Save canvas:Saved to 'savename '.png/.eps/.fig'])
 

Variables

function prefix
 
end savename = [savename '.' get(fig,'Name')]
 
 paperunits
 
points pos = get(fig,'position')
 

Function Documentation

disp ( )
print ( fig  ,
'-dpng'  ,
'-r100'   
)
print ( fig  ,
'-dpdf'   
)
print ( fig  ,
'-depsc'   
)
saveas ( fig  )
set ( fig  ,
'Units'  ,
'points'   
)
set ( fig  ,
'PaperPosition'   
)
set ( fig  ,
'PaperSize'   
)

Variable Documentation

paperunits

Definition at line 11 of file SaveCanvas.m.

View newest version in sPHENIX GitHub at line 11 of file SaveCanvas.m

points pos = get(fig,'position')

Definition at line 12 of file SaveCanvas.m.

View newest version in sPHENIX GitHub at line 12 of file SaveCanvas.m

prefix
Initial value:
if nargin <= 1
fig = gcf

Definition at line 1 of file SaveCanvas.m.

View newest version in sPHENIX GitHub at line 1 of file SaveCanvas.m

end savename = [savename '.' get(fig,'Name')]

Definition at line 7 of file SaveCanvas.m.

View newest version in sPHENIX GitHub at line 7 of file SaveCanvas.m