diff --git a/doc/python/dumbbell-plots.md b/doc/python/dumbbell-plots.md index b41bb46048f..224187c6596 100644 --- a/doc/python/dumbbell-plots.md +++ b/doc/python/dumbbell-plots.md @@ -94,7 +94,6 @@ fig = go.Figure( fig.update_layout( title="Life Expectancy in Europe: 1952 and 2002", - width=1000, height=1000, showlegend=False, ) @@ -109,7 +108,7 @@ fig.show() In this example, we add arrow markers to the plot. The first trace adds the lines connecting the data points and arrow markers. The second trace adds circle markers. On the first trace, we use `standoff=8` to position the arrow marker back from the data point. -For the arrow marker to point directly at the circle marker, this value should be half the circle marker size. +For the arrow marker to point directly at the circle marker, this value should be half the circle marker size, which is hardcoded to 16 here. ```python import pandas as pd @@ -165,7 +164,6 @@ fig = go.Figure( fig.update_layout( title="Life Expectancy in Europe: 1952 and 2002", - width=1000, height=1000, showlegend=False, ) diff --git a/doc/python/splom.md b/doc/python/splom.md index 8eaf2c25d91..197654dbd00 100644 --- a/doc/python/splom.md +++ b/doc/python/splom.md @@ -56,7 +56,7 @@ Specify the columns to be represented with the `dimensions` argument, and set co import plotly.express as px df = px.data.iris() fig = px.scatter_matrix(df, - dimensions=["sepal_width", "sepal_length", "petal_width", "petal_length"], + dimensions=["sepal_length", "sepal_width", "petal_length", "petal_width"], color="species") fig.show() ``` @@ -69,7 +69,7 @@ The scatter matrix plot can be configured thanks to the parameters of `px.scatte import plotly.express as px df = px.data.iris() fig = px.scatter_matrix(df, - dimensions=["sepal_width", "sepal_length", "petal_width", "petal_length"], + dimensions=["sepal_length", "sepal_width", "petal_length", "petal_width"], color="species", symbol="species", title="Scatter matrix of iris data set", labels={col:col.replace('_', ' ') for col in df.columns}) # remove underscore