-
-
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 |
|---|---|---|
|
|
@@ -272,7 +272,7 @@ def plot(figure_or_data, | |
| validate=True, output_type='file', | ||
| include_plotlyjs=True, | ||
| filename='temp-plot.html', auto_open=True, | ||
|
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. This won't flake if you don't supply a filename twice, right? Will we end up with 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. Ah, nvm, looks like this was here before your changes. 👍 |
||
| image=False, image_filename='plot', format='png', | ||
| image=False, image_filename='plot_image', format='png', | ||
| _width=800, _height=600): | ||
|
||
| """ Create a plotly graph locally as an HTML document or string. | ||
|
|
||
|
|
@@ -323,7 +323,7 @@ def plot(figure_or_data, | |
| will be downloaded. | ||
| format (default='png') -- Specifies the format of the image to be | ||
| downloaded if `downlowad_image` is True. | ||
| image_filename (default='plot') -- Sets the name of the file your image | ||
| image_filename (default='plot_image') -- Sets the name of the file your image | ||
| will be saved to. The extension should not be included. | ||
| _height (default=600) -- Specifies the height of the image in `px`. | ||
| _width (default=800) -- Specifies the width of the image in `px`. | ||
|
|
@@ -418,7 +418,7 @@ def plot_mpl(mpl_fig, resize=False, strip_style=False, | |
| verbose=False, show_link=True, link_text='Export to plot.ly', | ||
| validate=True, output_type='file', include_plotlyjs=True, | ||
| filename='temp-plot.html', auto_open=True, | ||
| image=False, image_filename='plot', format='png', | ||
| image=False, image_filename='plot_image', format='png', | ||
| _height=600, _width=800): | ||
| """ | ||
| Convert a matplotlib figure to a Plotly graph stored locally as HTML. | ||
|
|
@@ -467,7 +467,7 @@ def plot_mpl(mpl_fig, resize=False, strip_style=False, | |
| will be downloaded. | ||
| format (default='png') -- Specifies the format of the image to be | ||
| downloaded if `downlowad_image` is True. | ||
| image_filename (default='plot') -- Sets the name of the file your image | ||
| image_filename (default='plot_image') -- Sets the name of the file your image | ||
| will be saved to. The extension should not be included. | ||
| _height (default=600) -- Specifies the height of the image in `px`. | ||
| _width (default=800) -- Specifies the width of the image in `px`. | ||
|
|
@@ -497,7 +497,7 @@ def plot_mpl(mpl_fig, resize=False, strip_style=False, | |
| def iplot_mpl(mpl_fig, resize=False, strip_style=False, | ||
| verbose=False, show_link=True, | ||
| link_text='Export to plot.ly', validate=True, | ||
| image=False, image_filename='plot', _format='png', | ||
| image=False, image_filename='plot_image', _format='png', | ||
| _height=600, _width=800): | ||
| """ | ||
| Convert a matplotlib figure to a plotly graph and plot inside an IPython | ||
|
|
@@ -531,7 +531,7 @@ def iplot_mpl(mpl_fig, resize=False, strip_style=False, | |
| will be downloaded. | ||
| _format (default='png') -- Specifies the format of the image to be | ||
| downloaded if `downlowad_image` is True. | ||
| image_filename (default='plot') -- Sets the name of the file your image | ||
| image_filename (default='plot_image') -- Sets the name of the file your image | ||
| will be saved to. The extension should not be included. | ||
| _height (default=600) -- Specifies the height of the image in `px`. | ||
| _width (default=800) -- Specifies the width of the image in `px`. | ||
|
|
||