documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Plot_bgcolor and Paper_bgcolor

Open fdrcslv opened this issue 5 years ago • 2 comments

On the python reference page the layout properties paper_bgcolor and plot_bgcolor don't mention "background" in their description, so it's kinda difficult to find them if you simply search for "background" (like most would do).

The defaults seem outdated too, since for plot_bgcolor the new default is rgb(229, 236, 246)

paper_bgcolor (color)

default: "#fff" Sets the color of paper where the graph is drawn.

plot_bgcolor (color)

default: "#fff" Sets the color of plotting area in-between x and y axes.

Thank you for your amazing work

fdrcslv avatar Jul 24 '19 08:07 fdrcslv

Just stumbled across the same thing. @chriddyp is there a way we can help make those minor improvements other than just flagging them? Thank you.

Relevant link

sebastianrosado avatar Aug 02 '21 17:08 sebastianrosado

@sebastianrosado yes indeed! You can make a PR into plotly.js's schema. The schema is the source of truth for all of the reference docs. Here: https://github.com/plotly/plotly.js/blob/master/src/plots/layout_attributes.js

chriddyp avatar Aug 05 '21 22:08 chriddyp