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.

Tap and legends problem

See original GitHub issue

This relates to panel issue https://github.com/pyviz/panel/issues/135

    typ = param.ObjectSelector(default='curve', objects=['curve','scatter'])
    
    def callback(self, x, y):
        x = 0 if x is None else x
        y = 0 if y is None else y
        el = hv.Curve if self.typ == 'curve' else hv.Scatter
        h = el(((x,0),(y,1)))
        return h.redim.range(x=(-1,1), y=(-1,1)).relabel('{},{}'.format(x,y)).options(show_grid=True)

    @param.depends('typ')
    def view(self):
        return hv.DynamicMap(self.callback, streams=[SingleTap(transient=True)])

selection     = Selection(name="Ouch")
pn.Column( 'Click on the plot or change plot type', selection.param, selection.view)

Clicking on a legend triggers the callback function with values outside the viewable plot region.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
philippjfrcommented, Nov 30, 2018

I think that is also a bug in any case, so it’ll be fixed too.

0reactions
philippjfrcommented, Dec 1, 2018

Now fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NEW SECRET *HELL* UPDATE CODES In Roblox Tapping ...
In this video I will show you ALL Tapping Legends X CODES on Roblox! The NEW codes will give you rewards for Tapping...
Read more >
(2022) ALL *NEW* SECRET OP CODES In Roblox Tapping ...
In this video I will show you ALL Tapping Legends X CODES on Roblox! The NEW codes will give you rewards for Tapping...
Read more >
NEW SECRET *10M* UPDATE CODES In Roblox Tapping ...
In this video I will show you ALL Tapping Legends X CODES on Roblox! The NEW codes will give you rewards for Tapping...
Read more >
Trading is broken | Tapping Legends (Roblox) - YouTube
Only took 7 minutes and I pretty much broke the game!Important Links:Roblox profile: https://www.roblox.com/users/30149434.
Read more >
HOW TO GET TONS OF TAPS VERY FAST... In ... - YouTube
HOW I GOT INFINITE TAPS INSTANTLY... In Tapping Legends X! Become a Member!➡️ https://bit.ly/3sOCMSy Join The Discord Server!
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