Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #660 > unrolled thread

Hiding/displaying "with labels" labels?

Started bybrendan.halpin@ul.ie (Brendan Halpin)
First post2011-11-03 16:02 +0000
Last post2011-11-09 16:57 -0800
Articles 4 — 2 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  Hiding/displaying "with labels" labels? brendan.halpin@ul.ie (Brendan Halpin) - 2011-11-03 16:02 +0000
    Re: Hiding/displaying "with labels" labels? sfeam <sfeam@users.sourceforge.net> - 2011-11-03 10:06 -0700
      Re: Hiding/displaying "with labels" labels? brendan.halpin@ul.ie (Brendan Halpin) - 2011-11-03 17:09 +0000
        Re: Hiding/displaying "with labels" labels? sfeam <sfeam@users.sourceforge.net> - 2011-11-09 16:57 -0800

#660 — Hiding/displaying "with labels" labels?

Frombrendan.halpin@ul.ie (Brendan Halpin)
Date2011-11-03 16:02 +0000
SubjectHiding/displaying "with labels" labels?
Message-ID<8739e542je.fsf@wivenhoe.ul.ie>
I occasionally use 'splot "..." u 1:2:3:4 with labels' to plot data
clouds with informative tags. However, the labels get in the way when
trying to see the structure of the cloud. Is there a way of turning them
on and off (in the wxt terminal) without replotting?

Better still, is there a way of getting the mouseover behaviour to
display the (otherwise hidden) label on a point-by-point basis?

Brendan
-- 
Brendan Halpin,   Department of Sociology,   University of Limerick,   Ireland
Tel: w +353-61-213147  f +353-61-202569  h +353-61-338562;  Room F1-009 x 3147
mailto:brendan.halpin@ul.ie    ULSociology on Facebook: http://on.fb.me/fjIK9t
http://teaching.sociology.ul.ie/bhalpin/wordpress         twitter:@ULSociology

[toc] | [next] | [standalone]


#661

Fromsfeam <sfeam@users.sourceforge.net>
Date2011-11-03 10:06 -0700
Message-ID<j8uhn8$2qq$1@dont-email.me>
In reply to#660
Brendan Halpin wrote:

> I occasionally use 'splot "..." u 1:2:3:4 with labels' to plot data
> clouds with informative tags. However, the labels get in the way when
> trying to see the structure of the cloud. Is there a way of turning them
> on and off (in the wxt terminal) without replotting?

That is a recent feature that is so far implemented only for
HTML5 canvas and svg terminals (and maybe for "set term win"?).  
It's on the wishlist for wxt and x11 but I don't know that anyone
is actively working on it.

> Better still, is there a way of getting the mouseover behaviour to
> display the (otherwise hidden) label on a point-by-point basis?

Interesting idea. The thing is that currently "mouseover" is only
available in the context of a web browser.  The wxt and x11 
terminals do not offer any way to trigger a mouse event other than
clicking.  So it would be relatively easy to implement for svg
and canvas output, but we're missing a necessary infrastructure
to do that in a wxt window.

 
> Brendan

[toc] | [prev] | [next] | [standalone]


#662

Frombrendan.halpin@ul.ie (Brendan Halpin)
Date2011-11-03 17:09 +0000
Message-ID<87lirx2kv9.fsf@wivenhoe.ul.ie>
In reply to#661
On Thu, Nov 03 2011, sfeam wrote:

> Interesting idea. The thing is that currently "mouseover" is only
> available in the context of a web browser.  The wxt and x11 
> terminals do not offer any way to trigger a mouse event other than
> clicking.  

Clicking would be fine. Clicking on a point and getting info about it
(beyond its x,y,z coordinates) would be exactly what I need. 

Brendan
-- 
Brendan Halpin,   Department of Sociology,   University of Limerick,   Ireland
Tel: w +353-61-213147  f +353-61-202569  h +353-61-338562;  Room F1-009 x 3147
mailto:brendan.halpin@ul.ie    ULSociology on Facebook: http://on.fb.me/fjIK9t
http://teaching.sociology.ul.ie/bhalpin/wordpress         twitter:@ULSociology

[toc] | [prev] | [next] | [standalone]


#680

Fromsfeam <sfeam@users.sourceforge.net>
Date2011-11-09 16:57 -0800
Message-ID<j9f7h7$s3v$1@dont-email.me>
In reply to#662
Brendan Halpin wrote:

> On Thu, Nov 03 2011, sfeam wrote:
> 
>> Interesting idea. The thing is that currently "mouseover" is only
>> available in the context of a web browser.  The wxt and x11
>> terminals do not offer any way to trigger a mouse event other than
>> clicking.
> 
> Clicking would be fine. Clicking on a point and getting info about it
> (beyond its x,y,z coordinates) would be exactly what I need.

The development version of gnuplot (4.5) now supports toggling plots
on/off in the wxt terminal, similar to the toggling code added recently
for the canvas and svg terminal output.  That should enable your first
scenario (toggle a complete set of labels on/off), but does not allow
clicking on individual points.

Just to pursue this idea a bit further...
Are you envisioning a variant of the existing command?
   "plot ... with labels point <pointtype>"
The point symbols would always be shown, but the attached labels
would appear only when the mouse was clicked on that point?
I think the pieces are now in place that would allow supporting this
for the same terminals (svg, canvas, wxt, win) as toggling the entire
plot on/off.

Do you think it would be more useful to have the label appear right
next to the point (as it normally would) or in a separate box at the 
bottom of the plot?
  

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web