You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
background color of text is forground color on MacOSX #4609
This plots a nice red box but no text. It looks like the backgroundcolor is set as the foreground.
mpl version 1.4.3
backend: MacOSX
Works correctly with Qt4Agg and, as reported on mailinglist, works correctly with TkAgg
#4202 doesn't fix it. This looks like a different problem. Strangely, the text is very faintly visible as a slight lightening of the red. This is easier to see if you use fontsize=30. At least at the Python level, the default text color is not being overwritten by the background. I don't know what is happening inside the extension code.
attn: @mdehoon
In [16]: tt = text(1,2, 'hello', backgroundcolor='red', fontsize=30)
In [17]: tt.get_color()
'k'
@mbakker7 and @mdehoon which Python versions are you using? I tested with python 3. We have had several cases where the change between py2 and py3 in the order of iteration through a dictionary (such as kwargs in a function call) caused problems under py3.
Sorry for the late reply: I have the problem with Python 2.7.9-1. Got the
bug on two separate Macs, one with mpl 1.4.3, one with mpl 1.4.0, so it has
been around for a little while.
@mbakker7https://github.com/mbakker7 and @mdehoon https://github.com/mdehoon which Python versions are you using? I
tested with python 3. We have had several cases where the change between
py2 and py3 in the order of iteration through a dictionary (such as kwargs
in a function call) caused problems under py3.
—
Reply to this email directly or view it on GitHub #4609 (comment)
.
Activity
jenshnielsen commentedon Jul 9, 2015
Confirming that I see the same with the OSX backend
jenshnielsen commentedon Jul 9, 2015
This could be related to #4024, see #4202 too
efiring commentedon Jul 9, 2015
#4202 doesn't fix it. This looks like a different problem. Strangely, the text is very faintly visible as a slight lightening of the red. This is easier to see if you use
fontsize=30. At least at the Python level, the default text color is not being overwritten by the background. I don't know what is happening inside the extension code.attn: @mdehoon
mdehoon commentedon Jul 9, 2015
I can't reproduce this bug. It's working fine for me with the MacOSX backend, matplotlib version 1.4.3.
efiring commentedon Jul 9, 2015
@mbakker7 and @mdehoon which Python versions are you using? I tested with python 3. We have had several cases where the change between py2 and py3 in the order of iteration through a dictionary (such as kwargs in a function call) caused problems under py3.
mdehoon commentedon Jul 9, 2015
@efiring Thanks! That is indeed the issue. With Python3, I am seeing this bug. Let me look into this.
mdehoon commentedon Jul 10, 2015
See pull request #4617 for a bug fix.
jenshnielsen commentedon Jul 11, 2015
Fixed by #4617
mbakker7 commentedon Jul 11, 2015
Sorry for the late reply: I have the problem with Python 2.7.9-1. Got the
bug on two separate Macs, one with mpl 1.4.3, one with mpl 1.4.0, so it has
been around for a little while.
Thanks for looking into this,
Mark
On Thu, Jul 9, 2015 at 11:24 PM, Eric Firing notifications@github.com
wrote:
jenshnielsen commentedon Jul 11, 2015
@mbakker7 Thanks for the confirmation
If you have a chance please test master and report it it fixes it for you