Skip to content

Pair of floats breaks plotting renderer (weirdest bug I've ever seen) #6393

Closed
@aaronm6

Description

@aaronm6

I'm using IPython interactive, including a from pylab import *

A plot I was trying to make was breaking my renderer. I simplified the problem to the following line:

plot(array([179.5, 175.]),'o')

The data points get plotted, but the ytick labels don't finish rendering. The error messages (copied at the end of this message) get written to the terminal, and get re-written each time I try to do anything, until the figure is cleared. The choice of marker doesn't affect the behavior. There is some flexibility in choice of data values, but if I increase the first element to 179.6, I get no error.

Additional weirdness: This is only a problem when rcParams['font.size'] is set to 12. The problem goes away if I choose a smaller or larger font.

As I normally don't use 12pt font, I've never noticed this problem before, but I've verified that it also happens with my installation using python2.7 (which appears to be using the same version of matplotlib anyhow). Does anyone have an idea what might be going on?

Thanks!

Here are some details of my setup:

python3.4
IPython v3.4.4
Matplotlib v1.5.1
Using matplotlib backend: MacOSX
numpy v1.11.0
OS X (10.10.5)
Installed with MacPorts

Here is the error message I get:

  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib/artist.py", line 61, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib/figure.py", line 1159, in draw
    func(*args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib/artist.py", line 61, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib/axes/_base.py", line 2324, in draw
    a.draw(renderer)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib/artist.py", line 61, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib/axis.py", line 1111, in draw
    tick.draw(renderer)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib/artist.py", line 61, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib/axis.py", line 252, in draw
    self.label1.draw(renderer)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib/artist.py", line 61, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib/text.py", line 792, in draw
    mtext=mtext)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib/backends/backend_macosx.py", line 124, in draw_tex
    Z = texmanager.get_grey(s, size, self.dpi*scale)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib/texmanager.py", line 584, in get_grey
    X = read_png(os.path.join(self.texcache, pngfile))
SystemError: error return without exception set

 If you suspect this is an IPython bug, please report it at:
    https://github.com/ipython/ipython/issues
or send an email to the mailing list at ipython-dev@scipy.org

 You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.

 Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
    %config Application.verbose_crash=True

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions