Skip to content

Commit a4361a9

Browse files
fix build
1 parent 60272b9 commit a4361a9

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

Diff for: doc/python/configuration-options.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jupyter:
66
extension: .md
77
format_name: markdown
88
format_version: '1.2'
9-
jupytext_version: 1.3.0
9+
jupytext_version: 1.4.2
1010
kernelspec:
1111
display_name: Python 3
1212
language: python
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.7.3
23+
version: 3.7.7
2424
plotly:
2525
description: How to set the configuration options of figures using the Plotly
2626
Python graphing library.
@@ -34,7 +34,7 @@ jupyter:
3434
thumbnail: thumbnail/modebar-icons.png
3535
---
3636

37-
# Configuration Options
37+
## Configuration Options
3838

3939
The `.show()` method that you use to display your figures also accepts a `config` parameter.
4040

@@ -44,7 +44,7 @@ If you don't set an option's value, it will be automatically be set to the defau
4444

4545
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
4646

47-
##### Enabling Scroll Zoom
47+
### Enabling Scroll Zoom
4848

4949
This option allows users to zoom in and out of figures using the scroll wheel on their mouse and/or a two-finger scroll.
5050

@@ -63,7 +63,7 @@ fig.add_trace(
6363
fig.show(config=config)
6464
```
6565

66-
##### Forcing The Modebar to Always Be Visible
66+
### Forcing The Modebar to Always Be Visible
6767

6868
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.
6969

@@ -84,7 +84,7 @@ fig.add_trace(
8484
fig.show(config=config)
8585
```
8686

87-
##### Preventing the Modebar from Appearing
87+
### Preventing the Modebar from Appearing
8888

8989
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.
9090

@@ -106,7 +106,7 @@ fig.show(config=config)
106106
```
107107

108108

109-
##### Hiding the Plotly Logo on the Modebar
109+
### Hiding the Plotly Logo on the Modebar
110110

111111
```python
112112
import plotly.graph_objects as go
@@ -123,7 +123,7 @@ fig.add_trace(
123123
fig.show(config=config)
124124
```
125125

126-
##### Turning Off Responsiveness
126+
### Turning Off Responsiveness
127127

128128
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.
129129

@@ -146,7 +146,7 @@ fig.add_trace(
146146
fig.show(config=config)
147147
```
148148

149-
##### Making A Static Chart
149+
### Making A Static Chart
150150

151151
```python
152152
import plotly.graph_objects as go
@@ -163,7 +163,7 @@ fig.add_trace(
163163
fig.show(config=config)
164164
```
165165

166-
##### Customizing Download Plot Button Options
166+
### Customizing Download Plot Button Options
167167

168168
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.
169169

@@ -182,7 +182,7 @@ config = {
182182
}
183183
}
184184

185-
fig = px.bar(x=[1, 2, 3], y=[1, 3, 1]))
185+
fig = px.bar(x=[1, 2, 3], y=[1, 3, 1])
186186

187187
fig.show(config=config)
188188
```
@@ -197,12 +197,12 @@ config = {
197197
'toImageButtonOptions': { 'height': None, 'width': None, }
198198
}
199199

200-
fig = px.bar(x=[1, 2, 3], y=[1, 3, 1]))
200+
fig = px.bar(x=[1, 2, 3], y=[1, 3, 1])
201201

202202
fig.show(config=config)
203203
```
204204

205-
##### Specifying Multiple Configuration Options Simultaneously
205+
### Specifying Multiple Configuration Options Simultaneously
206206

207207
The dictionary that you use to specify configuration options for your figures can contain more than one configuration key/value pair.
208208

@@ -225,7 +225,7 @@ fig.add_trace(
225225
fig.show(config=config)
226226
```
227227

228-
##### Removing Modebar Buttons
228+
### Removing Modebar Buttons
229229

230230
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:
231231

@@ -293,7 +293,7 @@ fig.update_layout(xaxis = {'type': 'date'})
293293
fig.show(config=config)
294294
```
295295

296-
#### Configuring Figures in Dash Apps
296+
### Configuring Figures in Dash Apps
297297

298298
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).
299299

0 commit comments

Comments
 (0)