@@ -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' ]):
0 commit comments