Discussion:
[Matplotlib-users] background color of text plots as foreground
Mark Bakker
2015-07-09 10:52:04 UTC
Permalink
Hello list,

I am trying to set the backgroundcolor of a textbox:

from pylab import *
plot([1, 2, 3])
text(1, 2, 'Hello', backgroundcolor = 'red')

This plots a nice red box but no text. It looks like the backgroundcolor is
set as the foreground. Am I doing something wrong or is this a bug? mpl
version 1.4.3

Thanks, Mark
Benjamin Root
2015-07-09 14:51:55 UTC
Permalink
Which backend are you using? It works fine for me with a recent-ish master
using Qt4Agg backend.

Ben Root
Post by Mark Bakker
Hello list,
from pylab import *
plot([1, 2, 3])
text(1, 2, 'Hello', backgroundcolor = 'red')
This plots a nice red box but no text. It looks like the backgroundcolor
is set as the foreground. Am I doing something wrong or is this a bug? mpl
version 1.4.3
Thanks, Mark
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Sterling Smith
2015-07-09 16:18:59 UTC
Permalink
Works for me with TkAgg backend on 1.4.3.

-Sterling
Post by Mark Bakker
Hello list,
from pylab import *
plot([1, 2, 3])
text(1, 2, 'Hello', backgroundcolor = 'red')
This plots a nice red box but no text. It looks like the backgroundcolor is set as the foreground. Am I doing something wrong or is this a bug? mpl version 1.4.3
Thanks, Mark
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Mark Bakker
2015-07-09 16:41:05 UTC
Permalink
Fails on MacOSX backend.

Just tried it, and it works fine with the QT backend.

So I guess a MacOSX bug...

Thanks for your help,

Mark
Post by Sterling Smith
Works for me with TkAgg backend on 1.4.3.
-Sterling
Post by Mark Bakker
Hello list,
from pylab import *
plot([1, 2, 3])
text(1, 2, 'Hello', backgroundcolor = 'red')
This plots a nice red box but no text. It looks like the backgroundcolor
is set as the foreground. Am I doing something wrong or is this a bug? mpl
version 1.4.3
Post by Mark Bakker
Thanks, Mark
------------------------------------------------------------------------------
Post by Mark Bakker
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/_______________________________________________
Post by Mark Bakker
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Loading...