question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pan and Zoom tools should be configurable (limit to x or y axis only) via UI

See original GitHub issue

Getting the warning “UserWarning: PanTool are being repeated” when using the distinct tools “pan” and “xpan”. I would expect there to not be a warning here.

Code to reproduce:

from bokeh.plotting import figure
from bokeh.plotting import show
p = figure(tools='pan,xpan')
p.line([0, 1, 2, 3], [1, 0, 3, 2])
show(p)

Warning message:

[...]\Anaconda2\lib\site-packages\bokeh\plotting\helpers.py:322: UserWarning: PanTool are being repeated

Bokeh info:

>bokeh info
Python version      :  3.5.2 |Anaconda custom (64-bit)| (default, Jul  5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)]
IPython version     :  4.0.3
Bokeh version       :  0.12.2
BokehJS static path :  [...]\Anaconda2\lib\site-packages\bokeh\server\static

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
timsnydercommented, Sep 11, 2016

(Via gitter, bryevdv says)[https://gitter.im/bokeh/bokeh?at=57d568a8cba69fe735046345]:

i guess my preferred change would be to make a single pan tool configurable via the UI rather than have multiple pan tools but that’s a slightly larger undertaking The warning could be more careful for pan and zoom and also check that the dimension is identical Then it would not warn for pan and xpan

0reactions
mattpapcommented, Sep 14, 2022

I would open a new issue (or issues) to be explicit about the particular requirements, because at this point this issue is hard to follow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Zoom and pan – amCharts 5 Documentation
An XY chart has two settings that can be used to enable panning: panX and panY . They're both are boolean values, with...
Read more >
Zoom and Pan Views, and Select Marks - Tableau Help
Pan a view​​ To pan, do one of the following: Hold down Shift, and then drag across the view. On the view toolbar,...
Read more >
Telerik Web Forms Pan and Zoom - RadHtmlChart
Pan and Zoom help end-user to navigate through and zoom in/out the RadHtmlChart. ... X—X axis is locked, i.e., user can pan only...
Read more >
Zoom, Pan, and Hover Controls - Plotly
To zoom along only one axis, click and drag near the edges of either one of the axes. Additionally, to zoom-in along both...
Read more >
Interactive navigation — Matplotlib 3.2.2 documentation
If you press 'x' or 'y' while panning the motion will be constrained to the x or y axis, respectively. Press the right...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found