background color of text plots as foreground

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

Which backend are you using? It works fine for me with a recent-ish master using Qt4Agg backend.

Ben Root

···

On Thu, Jul 9, 2015 at 6:52 AM, Mark Bakker <markbak@…287…> wrote:

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


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

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Works for me with TkAgg backend on 1.4.3.

-Sterling

···

On Jul 9, 2015, at 3:52AM, Mark Bakker <markbak@...287...> wrote:

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

------------------------------------------------------------------------------
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
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

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

···

On Thu, Jul 9, 2015 at 6:18 PM, Sterling Smith <smithsp@…713…304…> wrote:

Works for me with TkAgg backend on 1.4.3.

-Sterling

On Jul 9, 2015, at 3:52AM, Mark Bakker <markbak@…287…> wrote:

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


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

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users