Skip to content

matplotlib.image has no attribute 'fromarray' in matplotlib 2.0 #2581

@mcquin

Description

@mcquin
  File "/usr/local/lib/python2.7/site-packages/matplotlib/backends/backend_wx.py", line 953, in _onPaint
    self.draw(drawDC=drawDC)
  File "/usr/local/lib/python2.7/site-packages/matplotlib/backends/backend_wxagg.py", line 51, in draw
    FigureCanvasAgg.draw(self)
  File "/usr/local/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py", line 464, in draw
    self.figure.draw(self.renderer)
  File "/usr/local/lib/python2.7/site-packages/matplotlib/artist.py", line 63, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/matplotlib/figure.py", line 1143, in draw
    renderer, self, dsu, self.suppressComposite)
  File "/usr/local/lib/python2.7/site-packages/matplotlib/image.py", line 139, in _draw_list_compositing_images
    a.draw(renderer)
  File "/usr/local/lib/python2.7/site-packages/matplotlib/artist.py", line 63, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/matplotlib/axes/_base.py", line 2409, in draw
    mimage._draw_list_compositing_images(renderer, self, dsu)
  File "/usr/local/lib/python2.7/site-packages/matplotlib/image.py", line 139, in _draw_list_compositing_images
    a.draw(renderer)
  File "/Users/mcquin/code/CellProfiler/CellProfiler/cellprofiler/gui/figure.py", line 2079, in draw
    im = matplotlib.image.fromarray(image, 0)
AttributeError: 'module' object has no attribute 'fromarray'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions