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 figure -- but
that could cause overdrawing problems (possibly, haven't tried it).
Mike
On 02/18/2011 02:26 PM, Jason Stone wrote:
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 to
find a way to change the background color of the widget. Essentially,
I've got a nicely laid out GUI with the default QT Designer light gray
as the "background color". Then I've got these matplotlib widgets
which by default have a darker shade of gray/charcoal as their
"background color". How do I change the matplotlib widget bgcolor to
the default light gray so as to match the rest of the GUI? Turning
the background of the main GUI to the dark gray to match the
matplotlib color is not an option. I kind of assumed the issue has to
do with the matplotlib widget and not with QT Designer, hence the
reason for posting in this mailing list.
Does anyone have any thoughts regarding this? Or can you point me to
a documentation set that shows how to do this?
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users