@@ -712,7 +712,7 @@ def get(figure_or_data, format='png', width=None, height=None, scale=None):
712
712
describes a plotly figure.
713
713
Same argument used in `py.plot`, `py.iplot`,
714
714
see https://plot.ly/python for examples
715
- - format: 'png', 'svg', 'jpeg', 'pdf'
715
+ - format: 'png', 'svg', 'jpeg', 'pdf', 'emf'
716
716
- width: output width
717
717
- height: output height
718
718
- scale: Increase the resolution of the image by `scale`
@@ -730,7 +730,7 @@ def get(figure_or_data, format='png', width=None, height=None, scale=None):
730
730
# TODO: format is a built-in name... we shouldn't really use it
731
731
figure = tools .return_figure_from_figure_or_data (figure_or_data , True )
732
732
733
- if format not in ['png' , 'svg' , 'jpeg' , 'pdf' ]:
733
+ if format not in ['png' , 'svg' , 'jpeg' , 'pdf' , 'emf' ]:
734
734
raise exceptions .PlotlyError (
735
735
"Invalid format. This version of your Plotly-Python "
736
736
"package currently only supports png, svg, jpeg, and pdf. "
@@ -760,7 +760,8 @@ def get(figure_or_data, format='png', width=None, height=None, scale=None):
760
760
if ('content-type' in headers and
761
761
headers ['content-type' ] in ['image/png' , 'image/jpeg' ,
762
762
'application/pdf' ,
763
- 'image/svg+xml' ]):
763
+ 'image/svg+xml' ,
764
+ 'image/emf' ]):
764
765
return response .content
765
766
elif ('content-type' in headers and
766
767
'json' in headers ['content-type' ]):
@@ -809,7 +810,7 @@ def save_as(cls, figure_or_data, filename, format=None, width=None,
809
810
"""Save a image of the plot described by `figure_or_data` locally as
810
811
`filename`.
811
812
812
- Valid image formats are 'png', 'svg', 'jpeg', and 'pdf '.
813
+ Valid image formats are 'png', 'svg', 'jpeg', 'pdf' and 'emf '.
813
814
The format is taken as the extension of the filename or as the
814
815
supplied format.
815
816
@@ -819,7 +820,7 @@ def save_as(cls, figure_or_data, filename, format=None, width=None,
819
820
Same argument used in `py.plot`, `py.iplot`,
820
821
see https://plot.ly/python for examples
821
822
- filename: The filepath to save the image to
822
- - format: 'png', 'svg', 'jpeg', 'pdf'
823
+ - format: 'png', 'svg', 'jpeg', 'pdf', 'emf'
823
824
- width: output width
824
825
- height: output height
825
826
- scale: Increase the resolution of the image by `scale` amount
0 commit comments