0

I implemented the matplotlib plots and navigation toolbar in pyqt4 GUI. How do I change the background color of "Figure options" in the toolbar?

enter image description here

In the above picture with a gray background, everything looks good. The same "Figure options" with a dark background looks like the figure below

enter image description here

How do I change the background color of the "Figure options?"

The navigation toolbar is implemented in the following way

from matplotlib.backends.backend_qt4agg import NavigationToolbar2QT as NavigationToolbar

self.figure = Figure(figsize=(6,7))
self.canvas = FigureCanvas(self.figure)
self.toolbar = NavigationToolbar(self.canvas, self)

1 Answer 1

1

I figured it out. The simple solution is to add self.toolbar.setStyleSheet("background-color:Gray;")

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.