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)
| 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 | ''' |