Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Wx backend broken #1998

Merged
merged 1 commit into from May 13, 2013

Conversation

Projects
None yet
1 participant
Owner

mdboom commented May 13, 2013

Running simple_plot.py with the Wx backend gives:

Traceback (most recent call last):
  File "simple_plot.py", line 11, in <module>
    savefig("test.png")
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/pyplot.py", line 472, in savefig
    return fig.savefig(*args, **kwargs)
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/figure.py", line 1370, in savefig
    self.canvas.print_figure(*args, **kwargs)
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/backends/backend_wx.py", line 1128, in print_figure
    FigureCanvasBase.print_figure(self, filename, *args, **kwargs)
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/backend_bases.py", line 2104, in print_figure
    **kwargs)
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/backends/backend_wx.py", line 1147, in print_png
    return self._print_image(filename, wx.BITMAP_TYPE_PNG, *args, **kwargs)
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/backends/backend_wx.py", line 1168, in _print_image
    self.figure.draw(renderer)
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/artist.py", line 54, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/figure.py", line 1006, in draw
    func(*args)
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/artist.py", line 54, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/axes.py", line 2086, in draw
    a.draw(renderer)
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/artist.py", line 54, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/axis.py", line 1055, in draw
    tick.draw(renderer)
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/artist.py", line 54, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/axis.py", line 240, in draw
    self.label1.draw(renderer)
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/artist.py", line 54, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/text.py", line 576, in draw
    self._fontproperties, angle)
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/backend_bases.py", line 454, in draw_tex
    self._draw_text_as_path(gc, x, y, s, prop, angle, ismath="TeX")
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/backend_bases.py", line 548, in _draw_text_as_path
    path, transform = self._get_text_path_transform(x, y, s, prop, angle, ismath)
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/backend_bases.py", line 509, in _get_text_path_transform
    text2path = self._text2path
AttributeError: RendererWx instance has no attribute '_text2path'

Fix coming shortly....

@mdboom mdboom added a commit that referenced this pull request May 13, 2013

@mdboom mdboom Merge pull request #1998 from mdboom/wx-backend-bug
Wx backend broken
9768142

@mdboom mdboom merged commit 9768142 into matplotlib:v1.2.x May 13, 2013

@mdboom mdboom deleted the mdboom:wx-backend-bug branch Aug 7, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment