Navigation Menu

Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples/pylab_examples/contour_demo.py fails #1102

Closed
mdboom opened this issue Aug 17, 2012 · 2 comments
Closed

examples/pylab_examples/contour_demo.py fails #1102

mdboom opened this issue Aug 17, 2012 · 2 comments
Assignees

Comments

@mdboom
Copy link
Member

mdboom commented Aug 17, 2012

git bisect suggests it's this revision after which it was broken:

413581c

Assigning @efiring because it might be obvious to him, but if not, I'm happy to take a further look.


Traceback (most recent call last):
  File "contour_demo.py", line 101, in <module>
    plt.flag()
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/pyplot.py", line 3344, in flag
    im.set_cmap(cm.flag)
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/cm.py", line 285, in set_cmap
    self.changed()
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/contour.py", line 984, in changed
    cm.ScalarMappable.changed(self)
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/cm.py", line 336, in changed
    self.callbacksSM.process('changed', self)
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/cbook.py", line 312, in process
    proxy(*args, **kwargs)
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/cbook.py", line 239, in __call__
    return mtd(*args, **kwargs)
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/colorbar.py", line 849, in on_mappable_changed
    self.update_normal(mappable)
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/colorbar.py", line 884, in update_normal
    self.add_lines(CS)
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/colorbar.py", line 872, in add_lines
    erase=erase)
  File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib/colorbar.py", line 498, in add_lines
    for lc in self.lines.pop():
TypeError: 'LineCollection' object is not iterable
@ghost ghost assigned efiring Aug 17, 2012
@efiring
Copy link
Member

efiring commented Aug 17, 2012

Strange. I was sure I tested that whole pull request with this demo--but apparently not. I'll have to sort it out. I think I see roughly where the problem is coming from--a change from a LineCollection to a list of LineCollections, which is not being taken into account everywhere.

@efiring
Copy link
Member

efiring commented Aug 17, 2012

I see it--a silly bug. Fix will be available shortly.

mdboom added a commit that referenced this issue Aug 17, 2012
colorbar: correct error introduced in commit 089024; closes #1102
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants