You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/python/configuration-options.md
+15-15
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ jupyter:
6
6
extension: .md
7
7
format_name: markdown
8
8
format_version: '1.2'
9
-
jupytext_version: 1.3.0
9
+
jupytext_version: 1.4.2
10
10
kernelspec:
11
11
display_name: Python 3
12
12
language: python
@@ -20,7 +20,7 @@ jupyter:
20
20
name: python
21
21
nbconvert_exporter: python
22
22
pygments_lexer: ipython3
23
-
version: 3.7.3
23
+
version: 3.7.7
24
24
plotly:
25
25
description: How to set the configuration options of figures using the Plotly
26
26
Python graphing library.
@@ -34,7 +34,7 @@ jupyter:
34
34
thumbnail: thumbnail/modebar-icons.png
35
35
---
36
36
37
-
# Configuration Options
37
+
##Configuration Options
38
38
39
39
The `.show()` method that you use to display your figures also accepts a `config` parameter.
40
40
@@ -44,7 +44,7 @@ If you don't set an option's value, it will be automatically be set to the defau
44
44
45
45
For the complete list of configuration options and their defaults see: https://github.com/plotly/plotly.js/blob/master/src/plot_api/plot_config.js
46
46
47
-
#####Enabling Scroll Zoom
47
+
### Enabling Scroll Zoom
48
48
49
49
This option allows users to zoom in and out of figures using the scroll wheel on their mouse and/or a two-finger scroll.
50
50
@@ -63,7 +63,7 @@ fig.add_trace(
63
63
fig.show(config=config)
64
64
```
65
65
66
-
#####Forcing The Modebar to Always Be Visible
66
+
### Forcing The Modebar to Always Be Visible
67
67
68
68
When users hover over a figure generated with plotly.py, a modebar appears in the top-right of the figure. This presents users with several options for interacting with the figure.
69
69
@@ -84,7 +84,7 @@ fig.add_trace(
84
84
fig.show(config=config)
85
85
```
86
86
87
-
#####Preventing the Modebar from Appearing
87
+
### Preventing the Modebar from Appearing
88
88
89
89
When users hover over a figure generated with `plotly.py`, a modebar appears in the top-right of the figure. This presents users with several options for interacting with the figure.
90
90
@@ -106,7 +106,7 @@ fig.show(config=config)
106
106
```
107
107
108
108
109
-
#####Hiding the Plotly Logo on the Modebar
109
+
### Hiding the Plotly Logo on the Modebar
110
110
111
111
```python
112
112
import plotly.graph_objects as go
@@ -123,7 +123,7 @@ fig.add_trace(
123
123
fig.show(config=config)
124
124
```
125
125
126
-
#####Turning Off Responsiveness
126
+
### Turning Off Responsiveness
127
127
128
128
By default, figures you create with the `plotly.py` package are [responsive](https://en.wikipedia.org/wiki/Responsive_web_design). Responsive figures automatically change their height and width when the size of the window they are displayed in changes. This is true for figures which are displayed in web browsers on desktops and mobile, Jupyter Notebooks, and other [rendering](https://plot.ly/python/renderers/) environments.
129
129
@@ -146,7 +146,7 @@ fig.add_trace(
146
146
fig.show(config=config)
147
147
```
148
148
149
-
#####Making A Static Chart
149
+
### Making A Static Chart
150
150
151
151
```python
152
152
import plotly.graph_objects as go
@@ -163,7 +163,7 @@ fig.add_trace(
163
163
fig.show(config=config)
164
164
```
165
165
166
-
#####Customizing Download Plot Button Options
166
+
### Customizing Download Plot Button Options
167
167
168
168
The camera icon on the modebar causes a static version of the figure to be downloaded via the user's browser. The default behaviour is to download a PNG of size 700 by 450 pixels.
The dictionary that you use to specify configuration options for your figures can contain more than one configuration key/value pair.
208
208
@@ -225,7 +225,7 @@ fig.add_trace(
225
225
fig.show(config=config)
226
226
```
227
227
228
-
#####Removing Modebar Buttons
228
+
### Removing Modebar Buttons
229
229
230
230
To delete buttons from the modebar, pass an array of strings containing the names of the buttons you want to remove to the `modeBarButtonsToRemove` attribute in the figure's configuration dictionary. Note that different chart types have different default modebars. The following is a list of all the modebar buttons and the chart types they are associated with:
The same configuration dictionary that you pass to the `config` parameter of the `show()` method can also be passed to the [`config` property of a `dcc.Graph` component](https://dash.plotly.com/dash-core-components/graph).
0 commit comments