Hi,
New feature suggestion: It would be very helpful for research work if
the data series drawn on a chart could be individually hidden/shown on
interactive terminals. Something like "key interactive" option, and
clicking on key items would turn on/off individual series.
I think this could be done easily in the 'canvas' terminal, since
drawing is handled by javascript there.
-=-
Off-topic: does panning work on interactive terminals out-of-the-box? I
remember this required defining some key bindings in old versions of
gnuplot, but now using v4.4.2, tried "help mouse", but cannot pan a
chart using left/middle/right mouse or touchpad, and ctrl/shift/alt
combinations.
Regards,
Maciej
|
|
0
|
|
|
|
Reply
|
macko
|
3/27/2011 12:23:20 PM |
|
macko wrote:
>
> Hi,
>
> New feature suggestion: It would be very helpful for research work if
> the data series drawn on a chart could be individually hidden/shown on
> interactive terminals. Something like "key interactive" option, and
> clicking on key items would turn on/off individual series.
>
> I think this could be done easily in the 'canvas' terminal, since
> drawing is handled by javascript there.
This capability is work in progress.
As you say, it is relatively easy for the canvas terminal.
But it is less clear how to do this for other interactive terminals,
and we would like to have a uniform mechanism that applies to all of
them.
> -=-
>
> Off-topic: does panning work on interactive terminals out-of-the-box?
> I remember this required defining some key bindings in old versions of
> gnuplot, but now using v4.4.2, tried "help mouse", but cannot pan a
> chart using left/middle/right mouse or touchpad, and ctrl/shift/alt
> combinations.
Pan/zoom was back-ported from the development version into 4.4.3.
It is controlled by the mouse wheel +/- shift/ctrl
>
>
>
>
> Regards,
>
> Maciej
|
|
0
|
|
|
|
Reply
|
sfeam
|
3/27/2011 5:25:22 PM
|
|
>> Off-topic: does panning work on interactive terminals out-of-the-box?
>> I remember this required defining some key bindings in old versions of
>> gnuplot, but now using v4.4.2, tried "help mouse", but cannot pan a
>> chart using left/middle/right mouse or touchpad, and ctrl/shift/alt
>> combinations.
>
> Pan/zoom was back-ported from the development version into 4.4.3.
> It is controlled by the mouse wheel +/- shift/ctrl
Hmm, mouse wheel... works!
I tried plot sin(x), then zoom out and... does not look like sinus :-) a
bug in computing scale or step?
Maciej
|
|
0
|
|
|
|
Reply
|
macko
|
3/27/2011 11:05:08 PM
|
|
>> I think this could be done easily in the 'canvas' terminal, since
>> drawing is handled by javascript there.
>
> This capability is work in progress.
> As you say, it is relatively easy for the canvas terminal.
> But it is less clear how to do this for other interactive terminals,
> and we would like to have a uniform mechanism that applies to all of
> them.
I wonder why the canvas terminal is called canvas. I bet most users
would look for "html", "js", or "javascript". The "canvas" name seems
generic enough to describe most terminals... is this intentional?
Maciej
|
|
0
|
|
|
|
Reply
|
macko
|
3/27/2011 11:09:33 PM
|
|
macko wrote:
>>> Off-topic: does panning work on interactive terminals
>>> out-of-the-box? I remember this required defining some key bindings
>>> in old versions of gnuplot, but now using v4.4.2, tried "help
>>> mouse", but cannot pan a chart using left/middle/right mouse or
>>> touchpad, and ctrl/shift/alt combinations.
>>
>> Pan/zoom was back-ported from the development version into 4.4.3.
>> It is controlled by the mouse wheel +/- shift/ctrl
>
> Hmm, mouse wheel... works!
>
> I tried plot sin(x), then zoom out and... does not look like sinus :-)
> a bug in computing scale or step?
You probably need to set a finer sampling.
The default sampling is 100 ("show sample").
This is fine for sin(x) plotted over a range of [-10:10],
but it you zoom out to a large range on X for a rapidly varying
function, then this sampling is too coarse to yield a smooth
line.
|
|
0
|
|
|
|
Reply
|
sfeam
|
3/27/2011 11:46:58 PM
|
|
>> I tried plot sin(x), then zoom out and... does not look like sinus :-)
>> a bug in computing scale or step?
>
> You probably need to set a finer sampling.
> The default sampling is 100 ("show sample").
I assumed that every program that plots functions computes function
value for every pixel... but this only makes sense for terminals with
known resolution. I had no idea about sampling used in this context -
thanks for the tip!
Maciej
|
|
0
|
|
|
|
Reply
|
macko
|
3/28/2011 9:20:31 AM
|
|
|
5 Replies
311 Views
(page loaded in 0.045 seconds)
|