Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Hover over scatter plot

by zentara (Archbishop)
on Jun 18, 2014 at 09:23 UTC ( #1090279=note: print w/replies, xml ) Need Help??

in reply to Hover over scatter plot

You might want to look at Tk::Chart. For a simple example, you can use the canvas like in the following example. It's up to you to correlate the point plots with their values.
#!/usr/bin/perl use Tk; my $mw = MainWindow->new(); $mw->geometry("600x400+50+50"); $canvas = $mw->Canvas(width => 600, height => 400)->pack(); $canvas->Tk::bind("<Button-1>", [ \&print_xy, Ev('x'), Ev('y') ]); sub print_xy { print "@_\n"; my ($canv, $x, $y) = @_; print '(x,y) = ', $canv->canvasx($x), ', ', $canv->canvasy($y),"\n" +; } MainLoop;

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1090279]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2016-10-26 19:27 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (346 votes). Check out past polls.