MCPcopy Index your code
hub / github.com/bqplot/bqplot / save_png

Method save_png

bqplot/figure.py:174–185  ·  view source on GitHub ↗

Saves the Figure as a PNG file Parameters ---------- filename: str (default: 'bqplot.png') name of the saved file scale: float (default: None) Scale up the png resolution when scale > 1, when not given base this on the screen pixel ra

(self, filename='bqplot.png', scale=None)

Source from the content-addressed store, hash-verified

172 return LinearScale(min=0, max=1, allow_padding=False)
173
174 def save_png(self, filename='bqplot.png', scale=None):
175 '''
176 Saves the Figure as a PNG file
177
178 Parameters
179 ----------
180 filename: str (default: 'bqplot.png')
181 name of the saved file
182 scale: float (default: None)
183 Scale up the png resolution when scale > 1, when not given base this on the screen pixel ratio.
184 '''
185 self.send({'type': 'save_png', 'filename': filename, 'scale': scale})
186
187 def save_svg(self, filename='bqplot.svg'):
188 '''

Callers

nothing calls this directly

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected