Download this file
20 lines (16 with data), 484 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 | from dataplot import GenericPlot
import pdb
class Plot(GenericPlot):
"""Make a plot using some python function.
"""
convert_to={
'png':{'suffix':'.png'},
'thumb':{'suffix':'-thumb.png','convert_args':'-resize 65x90'},
'ps':{'suffix':'.ps'},
}
convert_from='ps'
outfile_kwarg='outfile'
def makefile(self):
kwargs=self.get_plot_args()
kwargs[self.outfile_kwarg]=self.from_filename()
self.plot(**kwargs)
|
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.