Hi, I think you want the setBackgroundColor method from ViewBox. So get the ViewBox associated with your PlotItem like: plotItem.getViewBox().setBackgroundColor((192, 192, 192))
Patrick On Wednesday, 22 May 2019 04:25:44 UTC+9:30, JJ wrote: > > By default the plot background color is black. However, this color extends > into the area of the axis and padding between the plot area and window > edges. > What I would like to do is change the color and padding of the plot frame > area while leaving the plot area itself black or grey. How is this possible? > > A good example can be seen here: > https://bokeh.pydata.org/en/latest/docs/gallery/ridgeplot.html > > > > -- You received this message because you are subscribed to the Google Groups "pyqtgraph" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/687d9993-a88a-4b2b-8e82-242d9bae99fc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
