Skip to content

Commit 0aef2bd

Browse files
Update splom.md
The dimensions in the scatter matrix is not mentioned according to the data order. It gets very confused to see the scatter matrix in that format. The other scatter matrix are in the correct order as the dataset columns. t took me some time to realize that when the scatter matrix's style changed, the labels were mentioned in a new way. The columns in the iris data set are in the following order: "sepal length," "sepal width," "petal length," and "petal width."
1 parent 282e610 commit 0aef2bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/python/splom.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Specify the columns to be represented with the `dimensions` argument, and set co
5656
import plotly.express as px
5757
df = px.data.iris()
5858
fig = px.scatter_matrix(df,
59-
dimensions=["sepal_width", "sepal_length", "petal_width", "petal_length"],
59+
dimensions=["sepal_length", "sepal_width", "petal_length", "petal_width"],
6060
color="species")
6161
fig.show()
6262
```
@@ -69,7 +69,7 @@ The scatter matrix plot can be configured thanks to the parameters of `px.scatte
6969
import plotly.express as px
7070
df = px.data.iris()
7171
fig = px.scatter_matrix(df,
72-
dimensions=["sepal_width", "sepal_length", "petal_width", "petal_length"],
72+
dimensions=["sepal_length", "sepal_width", "petal_length", "petal_width"],
7373
color="species", symbol="species",
7474
title="Scatter matrix of iris data set",
7575
labels={col:col.replace('_', ' ') for col in df.columns}) # remove underscore

0 commit comments

Comments
 (0)