save current figure to file and call lpr (print).
This routine will create a total of 3 files (png, ps and c.png) in the current working directory with a sequence number attached. Also, a time stamp and the location of the file will be imprinted on the figure. The file ending with c.png is clean and no directory or time stamp are attached (good for PowerPoint presentations).
Parameters: | fignum : integer
saveonly : boolean (optional)
pngolny : boolean (optional)
clean : boolean (optional)
filename : string (optional)
|
---|
Examples
>>> import spacepy.plot.utils
>>> import matplotlib.pyplot as plt
>>> p = plt.plot([1,2,3],[2,3,2])
>>> spacepy.plot.utils.printfig(1, pngonly=True, saveonly=True)