Changeset 416
- Timestamp:
- 08/06/09 11:41:31 (3 years ago)
- Location:
- trunk/src
- Files:
-
- 2 modified
-
signals/spikes.py (modified) (2 diffs)
-
visualization/__init__.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/signals/spikes.py
r415 r416 1308 1308 xaxis = xaxis[:-1] 1309 1309 else: 1310 values, xaxis = numpy.histogram(isis, bins=bins, normed=True )1310 values, xaxis = numpy.histogram(isis, bins=bins, normed=True, new=True) 1311 1311 subplot = get_display(display) 1312 1312 if not subplot or not HAVE_PYLAB: … … 1403 1403 xaxis = xaxis[:-1] 1404 1404 else: 1405 values, xaxis = numpy.histogram(cvs, bins=bins, normed=True )1405 values, xaxis = numpy.histogram(cvs, bins=bins, normed=True, new=True) 1406 1406 subplot = get_display(display) 1407 1407 if not subplot or not HAVE_PYLAB: -
trunk/src/visualization/__init__.py
r384 r416 51 51 plot(*obj.next_frame(), **obj.kwargs) 52 52 if obj.plot_function == "imshow" and i==0: 53 l,b,w,h = panel.get_position() 53 pos = panel.get_position() 54 try: 55 l,b,w,h = pos # older versions of Matplotlib 56 except TypeError: 57 l,b,w,h = pos.bounds # newer versions return a Bbox object 54 58 cb_panel = self.fig.add_axes([l+w, b, 0.05*w, h]) 55 59 self.fig.colorbar(panel.images[0], cb_panel)
