|
From: sfeam (E. Merritt) <eam...@gm...> - 2013-08-22 15:32:59
|
On Thursday, 22 August 2013, Petr Mikulik wrote:
> Hello Ethan,
>
> > Log Message:
> > Mousing hotkeys i/v/V to toggle multiple plots on or off
> > RCS file: /cvsroot/gnuplot/gnuplot/src/mouse.c,v
>
> please change the sequence of bind associations to group V/v/i together:
>
> bind_append("V", (char *) 0, builtin_set_plots_invisible);
> bind_append("v", (char *) 0, builtin_set_plots_visible);
> bind_append("i", (char *) 0, builtin_invert_plot_visibilities);
>
> Actually I think that one key would be enough (the invert one) as hotkeys are
> hit by the user, not by the script or piping program - there is also just one
> key for toggling grid, log, ruler, ...
I will let Jon Gjengset answer that, since it is his patch (cc'ed on this message).
See discussion at
https://sourceforge.net/p/gnuplot/patches/633/
I had the same initial reaction as you, that only the "i" key was necessary,
since you could get back the full set of plots with a replot or "e" key.
The counterexample is a multiplot. You cannot replot an
individual panel of the multiplot, but the "v/V" keys do work to
display or hide the full set of plots in that panel.
It is still true that "V" = "v" + "i" and therefore so far as I can see
only one of the keys "v" or "V" is needed.
> In order to achieve this functionality from command line, a command like
> set plot visibility {on|off|invert}
> similarly to
> set mouse ruler at 1,1
> set mouse noruler
I agree that some command line interface is possible.
That was the reason for implementing this as a terminal entry point
rather than just handling the hotkey event inside the each terminal
driver without notifying the core code.
The issues of multiple windows or multiplots in a single window
complicate this. If you read through the discussion attached to the
patch, you'll see that we discussed adding additional parameters to
the term->modify_plots() interface to handle multiple plots or windows.
But I thought people would like to try it out in the current form
before discussing possible extensions.
Ethan
> I propose to have only "v" key to invert the visibility and the "set plot"
> command.
>
> ---
> PM
>
|