Jason,
Try adding a pyqt property 'facecolor' to your widget.
(This way you can set it also through the designer.)
Add something like this to the widget's __init__ method:
figFacecolor = QtCore.pyqtProperty(str, getfigfacecolor,
setfigfacecolor, resetfigfacecolor)
Michael,
I can get that to work rather easily on a matplotlib.pyplot figure via a
patch. I haven't had any luck getting that to work when using the
MatplotlibWidget in Qt.
Essentially in my code, I'm doing the following (where fig_myData is the
MatplotlibWidget instance):
result = self.ui.
I think you'll need to manually set the color of the figure. I.e.,
given a figure object "fig":
fig.set_facecolor(...whatever Qt API gives you the default background
color...)
You could also experiment with
fig.set_frameon(False)
which will not draw a background rectangle at all for the fi
Good afternoon all,
I'm developing a GUI using QT Designer 4 and Python 2.7. The GUI will need
to have several plots on it in order to show the data in the ways that I
need. To accomplish this I'm using the matplotlib widget from within QT
Designer. It all seems to work great, but I can't seem t