From 4e5ad9b22c5c6e0054ac9d0c9306f460575d51db Mon Sep 17 00:00:00 2001 From: Ilektra Christidi Date: Thu, 27 Sep 2018 17:23:27 +0100 Subject: [PATCH] Remove panning tool from summary view and restrict it to y axis in detail view. --- lolliplotServer.py | 2 +- lolliplotServerDetail.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lolliplotServer.py b/lolliplotServer.py index 7f498ef..dc45c41 100644 --- a/lolliplotServer.py +++ b/lolliplotServer.py @@ -71,7 +71,7 @@ source.data = new_data ### Main figure - p1 = figure(tools=[hover,'save','xpan','wheel_zoom','reset'], title=title, + p1 = figure(tools=[hover,'save','wheel_zoom','reset'], title=title, width=1500, height=25*max(ncl_ref,ncl), x_range=(0,xmax), y_range=(max(ncl_ref,ncl)/2+1,0), x_axis_location="above") p1.ygrid.visible=False diff --git a/lolliplotServerDetail.py b/lolliplotServerDetail.py index 94fb045..37fa147 100644 --- a/lolliplotServerDetail.py +++ b/lolliplotServerDetail.py @@ -46,7 +46,7 @@ ### Main figure ymax = 10 - p = figure(tools=[hover,'save','pan','wheel_zoom','undo','redo','reset'], width=1500, height=25*max(nhits,ymax), + p = figure(tools=[hover,'save','ypan','wheel_zoom','undo','redo','reset'], width=1500, height=25*max(nhits,ymax), x_range=(0,xmax), y_range=(max(nhits,ymax)/2+1,0), x_axis_location="above") p.ygrid.visible=False p.yaxis.visible=False