Skip to content

Commit f7d972c

Browse files
committed
added warning messages indicating the option to use py.image
1 parent a49d903 commit f7d972c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

plotly/offline/offline.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,10 @@ def iplot(figure_or_data, show_link=True, link_text='Export to plot.ly',
246246
display(HTML(plot_html))
247247

248248
if image:
249+
warnings.warn('For higher resolution images and more export '
250+
'options, consider making requests to the '
251+
'Plotly image servers. Type help(\'py.image\') '
252+
'for more details.', UserWarning)
249253
# Write script to download image of the plot
250254
script = ('<script>'
251255
'function downloadimage(format, height, width,'
@@ -364,8 +368,13 @@ def plot(figure_or_data,
364368
else:
365369
plotly_js_script = ''
366370

367-
# write the download script:
368371
if image:
372+
warnings.warn('For higher resolution images and more export '
373+
'options, consider making requests to the '
374+
'Plotly image servers. Type help(\'py.image\') '
375+
'for more details.', UserWarning)
376+
377+
# write the download script:
369378
script = ('<script>'
370379
'function downloadimage(format, height, width,'
371380
' filename) {{'

0 commit comments

Comments
 (0)