Change the background color of a plot
Asked Answered
M

1

12

I am using Plotly.js for plots on my website. I can't for the life of me figure out how to change the background color to anything besides white. Can that be done, or am I just missing something? Space isn't white, it is black, it would be nice to see it as such...

enter image description here

Materialist answered 15/2, 2018 at 0:38 Comment(1)
Yeah, but it is getting somewhat better over time...Materialist
M
32
layout= {
      plot_bgcolor:"black",
      paper_bgcolor:"#FFF3"
}
Materialist answered 15/2, 2018 at 1:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.