Skip to content

Issue399 (updated) #410

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

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
edited docstrings
  • Loading branch information
yankev committed Feb 18, 2016
commit 7e793b1765b62792db569986cbddf6db9d9c5d05
36 changes: 35 additions & 1 deletion plotly/offline/offline.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,17 @@ def plot(figure_or_data,
auto_open (default=True) -- If True, open the saved file in a
web browser after saving.
This argument only applies if `output_type` is 'file'.
**config_options -- This will take in other keywords that will
configure other options of your plot including mode bar buttons and
interactivity in your chart. Take a look at:
https://plot.ly/javascript/configuration-options/ for a full list of
possible keywords. For example we can add the keyword `displaylogo`
to False which would remove the Plotly logo in the top right corner.
```
iplot([{"x": [1, 2, 3], "y": [3, 1, 6]}], show_link=True,
link_text="Send Here", displaylogo=False)
```

"""
if output_type not in ['div', 'file']:
raise ValueError(
Expand Down Expand Up @@ -381,6 +392,18 @@ def plot_mpl(mpl_fig, resize=False, strip_style=False,
auto_open (default=True) -- If True, open the saved file in a
web browser after saving.
This argument only applies if `output_type` is 'file'.
**config_options -- This will take in other keywords that will
configure other options of your plot including mode bar buttons and
interactivity in your chart. Take a look at:
https://plot.ly/javascript/configuration-options/ for a full list of
possible keywords. For example we can add the keyword `displaylogo`
to False which would remove the Plotly logo in the top right corner.

```
iplot([{"x": [1, 2, 3], "y": [3, 1, 6]}], show_link=True,
link_text="Send Here", displaylogo=False)
```


Example:
```
Expand Down Expand Up @@ -436,6 +459,18 @@ def iplot_mpl(mpl_fig, resize=False, strip_style=False,
has become outdated with your version of
graph_reference.json or if you need to include
extra, unnecessary keys in your figure.
**config_options -- This will take in other keywords that will
configure other options of your plot including mode bar buttons and
interactivity in your chart. Take a look at:
https://plot.ly/javascript/configuration-options/ for a full list of
possible keywords. For example we can add the keyword `displaylogo`
to False which would remove the Plotly logo in the top right corner.

```
iplot([{"x": [1, 2, 3], "y": [3, 1, 6]}], show_link=True,
link_text="Send Here", displaylogo=False)
```


Example:
```
Expand Down Expand Up @@ -492,4 +527,3 @@ def enable_mpl_offline(resize=False, strip_style=False,
formatter.for_type(matplotlib.figure.Figure,
lambda fig: iplot_mpl(fig, resize, strip_style, verbose,
show_link, link_text, validate))