save
Saves a qplot figure
Call signature:
save(ofn=None, dpi=None, mmreso=None, qual=95)
Help text:
save(ofn) saves the current qplot figure to the named file.
save(ext), where ext is just a filename extension (without the dot), uses the name of the current figure.
Optional argument dpi specifies bitmap resolution for png/jpeg output in pixels per inch. Alternatively, MMREO specifies bitmap resolution in pixels per millimeter. The default resolution is 300 dpi.
Optional argument qual specifies quality for jpeg output. (The default is 95.)
save() without arguments saves to pdf.
Example:

import qplot as qp

import numpy as np

qp.figure('save', 3, 3)

xx = np.linspace(0,2*np.pi,50)

qp.plot(xx, np.sin(xx))

qp.save('save.pdf')

qp.save('save.png')

qp.save('save.jpg')

qp.save('save.svg')