Skip to content

Commit b630ada

Browse files
committed
fix some docs issues
1 parent e9eb8df commit b630ada

File tree

7 files changed

+7
-5
lines changed

7 files changed

+7
-5
lines changed

doc/python/bar-charts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ fig.show()
772772

773773
### Colored and Styled Bar Chart
774774

775-
In this example several parameters of the layout as customized, hence it is convenient to use directly the `go.Layout(...)` constructor instead of calling `fig.update`.
775+
In this example several parameters of the layout are customized, hence it is convenient to use directly the `go.Layout(...)` constructor instead of calling `fig.update`.
776776

777777
```python
778778
import plotly.graph_objects as go

doc/python/discrete-color.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ fig = px.bar(df, y="continent", x="pop", color="continent", orientation="h", hov
162162
fig.show()
163163
```
164164

165-
**_Warning_**: If your color sequence is has fewer colors than the number of unique values in the column you are mapping to `color`, the colors will cycle through and repeat, possibly leading to ambiguity:
165+
**_Warning_**: If your color sequence has fewer colors than the number of unique values in the column you are mapping to `color`, the colors will cycle through and repeat, possibly leading to ambiguity:
166166

167167
```python
168168
import plotly.express as px

doc/python/ml-knn.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ import plotly.express as px
264264
import plotly.graph_objects as go
265265
import numpy as np
266266
from sklearn.neighbors import KNeighborsClassifier
267+
from sklearn.model_selection import train_test_split
267268

268269
mesh_size = .02
269270
margin = 1

doc/python/ml-pca.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ For more details about the linear algebra behind eigenvectors and loadings, see
222222

223223
```python
224224
import plotly.express as px
225+
import numpy as np
225226
from sklearn.decomposition import PCA
226227
from sklearn import datasets
227228
from sklearn.preprocessing import StandardScaler

doc/python/splom.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ fig.show()
256256
Diabetes dataset is downloaded from [kaggle](https://www.kaggle.com/uciml/pima-indians-diabetes-database/data). It is used to predict the onset of diabetes based on 8 diagnostic measures. The diabetes file contains the diagnostic measures for 768 patients, that are labeled as non-diabetic (Outcome=0), respectively diabetic (Outcome=1). The splom associated to the 8 variables can illustrate the strength of the relationship between pairs of measures for diabetic/nondiabetic patients.
257257

258258
```python
259-
import plotly.graph_objs as go
259+
import plotly.graph_objects as go
260260
import pandas as pd
261261

262262
dfd = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/diabetes.csv')

doc/python/subplots.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jupyter:
2222
pygments_lexer: ipython3
2323
version: 3.11.10
2424
plotly:
25-
description: How to make subplots in with Plotly's Python graphing library. Examples
25+
description: How to make subplots with Plotly's Python graphing library. Examples
2626
of stacked, custom-sized, gridded, and annotated subplots.
2727
display_as: file_settings
2828
language: python

doc/python/templates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jupyter:
3737

3838
The Plotly Python library comes pre-loaded with several themes that you can get started using right away, and it also provides support for creating and registering your own themes.
3939

40-
> Note on terminology: Theming generally refers to the process of defining default styles for visual elements. Themes in plotly are implemented using objects called templates. Templates are slightly more general than traditional themes because in addition to defining default styles, templates can pre-populate a figure with visual elements like annotations, shapes, images, and more. In the documentation we will refer to the overall process of defining default styles as theming, and when in comes to the plotly API we will talk about how themes are implemented using templates.
40+
> Note on terminology: Theming generally refers to the process of defining default styles for visual elements. Themes in plotly are implemented using objects called templates. Templates are slightly more general than traditional themes because in addition to defining default styles, templates can pre-populate a figure with visual elements like annotations, shapes, images, and more. In the documentation we will refer to the overall process of defining default styles as theming, and when it comes to the plotly API we will talk about how themes are implemented using templates.
4141
4242
### Using built-in themes
4343

0 commit comments

Comments
 (0)