Alphabetical list Categories
save Saves a qplot figure
Call signature:

save(ofn=None, reso=300, 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 reso specifies bitmap resolution for png/jpeg output. (The default 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')

QPlot Documentation — (C) Daniel Wagenaar, 2014–2023