enthought/chaco — pull request #52 by msarahan (2012-04-12 03:07:49+00:00)
Title: Bug fix for shell/plot_maker.py

Per EPD-Users discussion on 4/11/12 between Todd Rovito and myself, this patch fixes some minor bugs where the _get_or_create_plot_data function was getting called with one argument.

Traceback for the error encountered by the user is below:

In [9]: %run imshow.py
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/IPython/utils/py3compat.py
in execfile(fname, *where)
173 else:
174 filename = fname
--> 175 __builtin__.execfile(filename, *where)

/Library/Frameworks/Python.framework/Versions/7.2/Examples/chaco-4.1.0/demo/shell/imshow.py
in ()
21
22 # Create the plot

---> 23 imshow(image, origin="top left")
24
25 # Alternatively, you can call imshow using the path to the image file

/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/chaco/shell/commands.py
in imshow(*data, **kwargs)
400 kwargs["colormap"] = session.colormap
401 plots = plot_maker.do_imshow(session.data, cont,
--> 402 *data, **kwargs)
403 cont.request_redraw()
404 return

/Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/chaco/shell/plot_maker.py
in do_imshow(plotdata, active_plot, *data, **kwargs)
328 y = None
329 try:
--> 330 z = _get_or_create_plot_data(data[0])
331 except ValueError:
332 # z is the name of the file

TypeError: _get_or_create_plot_data() takes exactly 2 arguments (1 given)