Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 meditating upon the Monastery: (8)
As of 2014-12-21 12:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (104 votes), past polls