-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
added option to download an image of the most recent plot #494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
d2b9880
89c53db
c769ad6
555d89a
6ff77d6
78fc1d7
341e87f
17485bc
8eae6bd
ad728a3
b2f9db9
bdb4b85
0effa54
3172843
151f23e
cae796e
8b39241
e20da3e
6abf3f9
cac15c5
a49d903
f7d972c
4256891
d447ae4
bd46038
1c7d517
f5baa3e
dbbad22
5bf4dd5
1892ab6
94a55f9
6ea4e6d
e60a5dd
f44ad45
e943120
7b4681a
0582283
8689112
cf90fba
4235cd4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -286,10 +286,6 @@ def iplot(figure_or_data, show_link=True, link_text='Export to plot.ly', | |
| 'following format types: `png`, `jpeg`, ' | ||
| '`webp`, `svg`') | ||
| # if the check passes then download script injection will commence. | ||
| warnings.warn('For higher resolution images and more export ' | ||
| 'options, consider making requests to the ' | ||
| 'Plotly image servers. Type help(\'py.image\') ' | ||
| 'for more details.', UserWarning) | ||
| # Write script to download image of the plot | ||
|
||
| script = image_download_script('iplot').format(format=image, | ||
| width=image_width, | ||
|
|
@@ -410,11 +406,6 @@ def plot(figure_or_data, | |
| 'following format types: `png`, `jpeg`, ' | ||
| '`webp`, `svg`') | ||
|
||
| # if the check passes then download script is injected. | ||
| warnings.warn('For higher resolution images and more export ' | ||
| 'options, consider making requests to the ' | ||
| 'Plotly image servers. Type help(\'py.image\') ' | ||
| 'for more details.', UserWarning) | ||
|
|
||
| # write the download script: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| script = image_download_script('plot') | ||
| script = script.format(format=image, | ||
|
|
||