@@ -258,8 +258,8 @@ def onExit(self, o, **kw):
258258
259259 def onCursor (self , x = None , y = None , message = '' ,
260260 marker_data = None , ** kws ):
261- xval = float (x ) if instance (x , np .number ) else x
262- yval = float (y ) if instance (y , np .number ) else y
261+ xval = float (x ) if isinstance (x , np .number ) else x
262+ yval = float (y ) if isinstance (y , np .number ) else y
263263 self .cursor_history .insert (0 , (x , y , time .time ()))
264264 rmsg = ''
265265 if marker_data is not None :
@@ -669,7 +669,6 @@ def plot_axvline(x, ymin=0, ymax=1, win=1, size=None,
669669 if not delay_draw :
670670 plotter .panel .canvas .draw ()
671671
672-
673672def hist (x , bins = 10 , win = 1 , new = False , size = None ,
674673 force_draw = True , title = None , * args , ** kws ):
675674 """display a histogram
@@ -688,6 +687,7 @@ def hist(x, bins=10, win=1, new=False, size=None,
688687 if new :
689688 plotter .panel .axes .clear ()
690689 out = plotter .panel .axes .hist (x , bins = bins , ** kws )
690+ # out = plotter.panel.hist(x, **kws)
691691 if title is not None :
692692 plotter .panel .set_title (title )
693693 plotter .panel .canvas .draw ()
0 commit comments