Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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


Comment on Re: Hover over scatter plot
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (12)
As of 2015-07-29 02:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls