Exemplo n.º 1
0
 def exportTo(self, filename, size=(800, 600), size_mm=None,
              resolution=72., format_=None):
     if size_mm is None:
         size_mm = tuple(25.4*np.array(size)/resolution)
     from qwt.plot_renderer import QwtPlotRenderer
     renderer = QwtPlotRenderer(self)
     renderer.renderDocument(self, filename, size_mm, resolution, format_)
Exemplo n.º 2
0
 def print_(self, printer):
     from qwt.plot_renderer import QwtPlotRenderer
     renderer = QwtPlotRenderer(self)
     renderer.renderTo(self, printer)