From f1243922eb93eeda10b83fc0c400f0b56d312dc3 Mon Sep 17 00:00:00 2001 From: Alfie Bowman Date: Fri, 14 Oct 2022 10:07:34 +0100 Subject: [PATCH] Update px.scatter argument The argument name in the usage demonstration is wrong as per: https://github.com/plotly/plotly.py/blob/00c18fd0d09a21f7d0f54c383ff5258fe1ff7d28/packages/python/plotly/plotly/express/_chart_types.py#L39 --- doc/python/builtin-colorscales.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/python/builtin-colorscales.md b/doc/python/builtin-colorscales.md index 2cc7330a12b..a9eb672c3fe 100644 --- a/doc/python/builtin-colorscales.md +++ b/doc/python/builtin-colorscales.md @@ -41,7 +41,7 @@ jupyter: Many Plotly Express functions accept a `color_continuous_scale` argument and many trace types have a `colorscale` attribute in their schema. Plotly comes with a large number of built-in continuous color scales, which can be referred to in Python code when setting the above arguments, -either by name in a case-insensitive string e.g. `px.scatter(continuous_color_scale="Viridis"`) or by reference e.g. +either by name in a case-insensitive string e.g. `px.scatter(color_continuous_scale="Viridis"`) or by reference e.g. `go.Scatter(marker_colorscale=plotly.colors.sequential.Viridis)`. They can also be reversed by adding `_r` at the end e.g. `"Viridis_r"` or `plotly.colors.sequential.Viridis_r`.