Believe me, I knew you wanted the more interactive way - not to clik,
but to continuously show the value ;)
Well, I think this feature is not directly available, but I'm pretty
sure a small fix should enable it.

I'm not this kind of a programmer, but the click interrupt must somehow
be replaced with something contnuosly - a while loop, or something - and
then be terminated by a key stroke or click or whatever. I guess this
need source code hacking.

Maybe someone reading this can help us out here? I'd really like this
option myself.

Regards,
Kare

On Thu, 2006-11-16 at 15:37 +0530, Girish V wrote:

> Dear Kare,
> 
> thank you very much for the reply. I am already using pgcurs to get the 
> position and selecting small part of the image etc. What I am looking 
> for is displaying the cursor position when I am moving the cursor over 
> the image in pgplot window. I am sorry for not being clear in the first 
> post.
> 
> cheers
> 
> Girish
> 
> Kåre Edvardsen wrote:
> > Hi,
> >
> > This is not any direct solution to your problem, but might lead you in 
> > the rirht direction.
> >
> > The closest I can think of is the 'cursor' function.
> >
> > ($xin, $yin) = $data->cursor();
> >
> > I think by clicking the graphics it only returns the position, and not 
> > the pixel values, but transforming the position into and index for the 
> > grapics and then read out the values directly from the graphics piddle 
> > should work.
> >
> > You might also want to look at at the pgplot PGCURS and PGBAND 
> > functions in pgplot, as pgplot functions may be used directly from 
> > PDL/perl.
> >
> > Regards,
> > Kare
> >
> > On Thu, 2006-11-16 at 13:06 +0530, Girish V wrote:
> >> Hi,
> >>
> >> I am  writing a program to visualize raw data from an X-ray experiment 
> >> we are building. I am using pgplot for drawing the plots and spectra. I 
> >> am stuck at one point. For easy checking, I want to get the pixel values 
> >> under the cursor in the pgplot window. Is there a way to show the pixel 
> >> value and cursor position under the mouse pointer in a corner of pgplot 
> >> window? I went through the FAQ and mailing list, but can not find the info.
> >>
> >> with warm regards
> >>
> >> Girish
> >>
> >>
> >> _______________________________________________
> >> Perldl mailing list
> >> [email protected] <mailto:[email protected]>
> >> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
> >>     
> 

Attachment: smiley-4.png
Description: PNG image

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to