Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

System going down at 5 this afternoon to install scheduler bug.


computers / comp.graphics.apps.gnuplot / Select data points in interactive terminal

SubjectAuthor
* Select data points in interactive terminaljindi.li
`* Re: Select data points in interactive terminaljindi.li
 `* Re: Select data points in interactive terminalGavin Buxton
  `* Re: Select data points in interactive terminaljindi.li
   `* Re: Select data points in interactive terminaljindi.li
    `* Re: Select data points in interactive terminaljindi.li
     `- Re: Select data points in interactive terminaljindi.li

1
Subject: Select data points in interactive terminal
From: jindi.li
Newsgroups: comp.graphics.apps.gnuplot
Date: Sat, 9 Jan 2021 14:55 UTC
X-Received: by 2002:a37:a50c:: with SMTP id o12mr8957408qke.98.1610204141430;
Sat, 09 Jan 2021 06:55:41 -0800 (PST)
X-Received: by 2002:a25:d1c4:: with SMTP id i187mr12988557ybg.7.1610204141218;
Sat, 09 Jan 2021 06:55:41 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Sat, 9 Jan 2021 06:55:40 -0800 (PST)
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=139.162.22.31; posting-account=bQqzsgoAAABmut957yFoBsqsohvcG9DX
NNTP-Posting-Host: 139.162.22.31
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ba3354e8-c476-411b-80ac-d998303ef7den@googlegroups.com>
Subject: Select data points in interactive terminal
From: jindi...@gmail.com (jindi.li)
Injection-Date: Sat, 09 Jan 2021 14:55:41 +0000
Content-Type: text/plain; charset="UTF-8"
View all headers
I'm using latest gnuplot 5.4 patchlevel rc1 to plot simple time series data on Windows 10,
I want to checkout whether it's possible to select data points in interactive terminal, need to check some data point's value, or even better if it's possible to select some data points and remove them, then replot.


Subject: Re: Select data points in interactive terminal
From: jindi.li
Newsgroups: comp.graphics.apps.gnuplot
Date: Sat, 9 Jan 2021 18:44 UTC
References: 1
X-Received: by 2002:a37:6717:: with SMTP id b23mr9629245qkc.100.1610217883103; Sat, 09 Jan 2021 10:44:43 -0800 (PST)
X-Received: by 2002:a25:77d3:: with SMTP id s202mr15155886ybc.148.1610217882883; Sat, 09 Jan 2021 10:44:42 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!tr1.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Sat, 9 Jan 2021 10:44:42 -0800 (PST)
In-Reply-To: <ba3354e8-c476-411b-80ac-d998303ef7den@googlegroups.com>
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=139.162.22.31; posting-account=bQqzsgoAAABmut957yFoBsqsohvcG9DX
NNTP-Posting-Host: 139.162.22.31
References: <ba3354e8-c476-411b-80ac-d998303ef7den@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7d747fb0-48ff-43c8-ab72-21a41e7f39d1n@googlegroups.com>
Subject: Re: Select data points in interactive terminal
From: jindi...@gmail.com (jindi.li)
Injection-Date: Sat, 09 Jan 2021 18:44:43 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 4
View all headers
Dig deeper in this forum, I find a similar discussion quite long time ago, any one knows how it's going or is some body working on that feature ?

Is it possible to select a point on a graph and get its exact coordinates (as they appear in data file)
https://groups.google.com/g/comp.graphics.apps.gnuplot/c/OlWN-EmQCLM/m/8kU5_ahFJVsJ



Subject: Re: Select data points in interactive terminal
From: Gavin Buxton
Newsgroups: comp.graphics.apps.gnuplot
Date: Sun, 10 Jan 2021 16:10 UTC
References: 1 2
X-Received: by 2002:a37:983:: with SMTP id 125mr12733258qkj.496.1610295052038;
Sun, 10 Jan 2021 08:10:52 -0800 (PST)
X-Received: by 2002:a25:d1c4:: with SMTP id i187mr19489457ybg.106.1610295051777;
Sun, 10 Jan 2021 08:10:51 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Sun, 10 Jan 2021 08:10:51 -0800 (PST)
In-Reply-To: <7d747fb0-48ff-43c8-ab72-21a41e7f39d1n@googlegroups.com>
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=2601:547:300:da50:4c23:73f8:b97:3933;
posting-account=yC8mVwkAAADuRBqBIdPVfec50l5EMdYn
NNTP-Posting-Host: 2601:547:300:da50:4c23:73f8:b97:3933
References: <ba3354e8-c476-411b-80ac-d998303ef7den@googlegroups.com> <7d747fb0-48ff-43c8-ab72-21a41e7f39d1n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <db36cd2f-e6ba-436b-9b60-01e81b659dccn@googlegroups.com>
Subject: Re: Select data points in interactive terminal
From: gavinbux...@gmail.com (Gavin Buxton)
Injection-Date: Sun, 10 Jan 2021 16:10:52 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
View all headers
On Saturday, January 9, 2021 at 1:44:44 PM UTC-5, jindi.li wrote:
Dig deeper in this forum, I find a similar discussion quite long time ago, any one knows how it's going or is some body working on that feature ?

Is it possible to select a point on a graph and get its exact coordinates (as they appear in data file)
https://groups.google.com/g/comp.graphics.apps.gnuplot/c/OlWN-EmQCLM/m/8kU5_ahFJVsJ

Sorry, I don't have an answer other than to say when I do it I just zoom in on a point until the axis are really narrow and then middle click button (at least on linux) puts a point there with the numbers. Not exactly what you are looking for, but its what I do.

P.S. Not too sure I'd want gnuplot messing with my data files to be honest.


Subject: Re: Select data points in interactive terminal
From: jindi.li
Newsgroups: comp.graphics.apps.gnuplot
Date: Mon, 11 Jan 2021 03:21 UTC
References: 1 2 3
X-Received: by 2002:a37:9b8a:: with SMTP id d132mr14657875qke.81.1610335303615;
Sun, 10 Jan 2021 19:21:43 -0800 (PST)
X-Received: by 2002:a05:6902:6cc:: with SMTP id m12mr20929824ybt.56.1610335303461;
Sun, 10 Jan 2021 19:21:43 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Sun, 10 Jan 2021 19:21:43 -0800 (PST)
In-Reply-To: <db36cd2f-e6ba-436b-9b60-01e81b659dccn@googlegroups.com>
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=23.239.20.136; posting-account=bQqzsgoAAABmut957yFoBsqsohvcG9DX
NNTP-Posting-Host: 23.239.20.136
References: <ba3354e8-c476-411b-80ac-d998303ef7den@googlegroups.com>
<7d747fb0-48ff-43c8-ab72-21a41e7f39d1n@googlegroups.com> <db36cd2f-e6ba-436b-9b60-01e81b659dccn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d2340c8f-fa2d-4ce2-9d0b-c9c4f5c148bcn@googlegroups.com>
Subject: Re: Select data points in interactive terminal
From: jindi...@gmail.com (jindi.li)
Injection-Date: Mon, 11 Jan 2021 03:21:43 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
View all headers
@Gavin Buxton,

Thanks for the nice tip, I didn't know this before.
What I used often is left double click to copy the value to clipboard.

Since Now there are so many nice python plot libs to choose from, I tend to use gnuplot to get a quick overview of the data, just use:

$>: gnuplot -e "plot 'data.csv'; pause mouse close"

Quite simple yet I can examine the data interactivily, and I can even export it to vector format.
To that task, I think Gnuplot is Unbeatable.


在 2021年1月11日星期一 UTC+8 上午12:10:52,<Gavin Buxton> 写道:
On Saturday, January 9, 2021 at 1:44:44 PM UTC-5, jindi.li wrote:
Dig deeper in this forum, I find a similar discussion quite long time ago, any one knows how it's going or is some body working on that feature ?

Is it possible to select a point on a graph and get its exact coordinates (as they appear in data file)
https://groups.google.com/g/comp.graphics.apps.gnuplot/c/OlWN-EmQCLM/m/8kU5_ahFJVsJ
Sorry, I don't have an answer other than to say when I do it I just zoom in on a point until the axis are really narrow and then middle click button (at least on linux) puts a point there with the numbers. Not exactly what you are looking for, but its what I do.

P.S. Not too sure I'd want gnuplot messing with my data files to be honest.


Subject: Re: Select data points in interactive terminal
From: jindi.li
Newsgroups: comp.graphics.apps.gnuplot
Date: Tue, 12 Jan 2021 01:09 UTC
References: 1 2 3 4
X-Received: by 2002:a0c:fcd2:: with SMTP id i18mr2047333qvq.52.1610413785417;
Mon, 11 Jan 2021 17:09:45 -0800 (PST)
X-Received: by 2002:a25:c54b:: with SMTP id v72mr3419573ybe.258.1610413785221;
Mon, 11 Jan 2021 17:09:45 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Mon, 11 Jan 2021 17:09:44 -0800 (PST)
In-Reply-To: <d2340c8f-fa2d-4ce2-9d0b-c9c4f5c148bcn@googlegroups.com>
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=23.239.20.136; posting-account=bQqzsgoAAABmut957yFoBsqsohvcG9DX
NNTP-Posting-Host: 23.239.20.136
References: <ba3354e8-c476-411b-80ac-d998303ef7den@googlegroups.com>
<7d747fb0-48ff-43c8-ab72-21a41e7f39d1n@googlegroups.com> <db36cd2f-e6ba-436b-9b60-01e81b659dccn@googlegroups.com>
<d2340c8f-fa2d-4ce2-9d0b-c9c4f5c148bcn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4159fcbc-e889-49d1-a3df-a2dcdc25cc5bn@googlegroups.com>
Subject: Re: Select data points in interactive terminal
From: jindi...@gmail.com (jindi.li)
Injection-Date: Tue, 12 Jan 2021 01:09:45 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 55
View all headers
I aware there is a show bind command to list all keyboard shortcuts and mouse shortcuts of the current terminal

gnuplot> show bind

 <B1> doubleclick   send mouse coordinates to clipboard (pm win wxt x11)
 <B2>               annotate the graph using `mouseformat` (see keys '1', '2')
                    or draw labels if `set mouse labels is on`
 <Ctrl-B2>          remove label close to pointer if `set mouse labels` is on
 <B3>               mark zoom region (only for 2d-plots and maps)
 <B1-Motion>        change view (rotation); use <Ctrl> to rotate the axes only
 <B2-Motion>        change view (scaling); use <Ctrl> to scale the axes only
 <Shift-B2-Motion>  vertical motion -- change xyplane
 <B3-Motion>        change view (azimuth)
 <wheel-up>           scroll up (in +Y direction)
 <wheel-down>         scroll down
 <shift-wheel-up>     scroll left (in -X direction)
 <shift-wheel-down>   scroll right
 <Control-WheelUp>    zoom in on mouse position
 <Control-WheelDown>  zoom out on mouse position
 <Shift-Control-WheelUp>    pinch on x
 <Shift-Control-WheelDown>  expand on x

 q            * close this plot window

 a               `builtin-autoscale` (set autoscale keepfix; replot)
 b               `builtin-toggle-border`
 e               `builtin-replot`
 g               `builtin-toggle-grid`
 h               `builtin-help`
 i               `builtin-invert-plot-visibilities`
 l               `builtin-toggle-log` y logscale for plots, z and cb for splots
 L               `builtin-nearest-log` toggle logscale of axis nearest cursor
 m               `builtin-toggle-mouse`
 r               `builtin-toggle-ruler`
 V               `builtin-set-plots-invisible`
 v               `builtin-set-plots-visible`
 1               `builtin-previous-mouse-format`
 2               `builtin-next-mouse-format`
 5               `builtin-toggle-polardistance`
 6               `builtin-toggle-verbose`
 7               `builtin-toggle-ratio`
 n               `builtin-zoom-next` go to next zoom in the zoom stack
 p               `builtin-zoom-previous` go to previous zoom in the zoom stack
 u               `builtin-unzoom`
 +               `builtin-zoom-in` zoom in
 =               `builtin-zoom-in` zoom in
 -               `builtin-zoom-out` zoom out
 Right           `scroll right in 2d, rotate right in 3d`; <Shift> faster
 Up              `scroll up in 2d, rotate up in 3d`; <Shift> faster
 Left            `scroll left in 2d, rotate left in 3d`; <Shift> faster
 Down            `scroll down in 2d, rotate down in 3d`; <Shift> faster
 <               `rotate azimuth left in 3d`; <ctrl> faster
 >               `rotate azimuth right in 3d`; <ctrl> faster
 Escape          `builtin-cancel-zoom` cancel zoom region

              * indicates this key is active from all plot windows


Subject: Re: Select data points in interactive terminal
From: jindi.li
Newsgroups: comp.graphics.apps.gnuplot
Date: Tue, 12 Jan 2021 01:19 UTC
References: 1 2 3 4 5
X-Received: by 2002:ac8:44a2:: with SMTP id a2mr2368158qto.91.1610414350853;
Mon, 11 Jan 2021 17:19:10 -0800 (PST)
X-Received: by 2002:a25:d1c4:: with SMTP id i187mr3418292ybg.7.1610414350600;
Mon, 11 Jan 2021 17:19:10 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Mon, 11 Jan 2021 17:19:10 -0800 (PST)
In-Reply-To: <4159fcbc-e889-49d1-a3df-a2dcdc25cc5bn@googlegroups.com>
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=23.239.20.136; posting-account=bQqzsgoAAABmut957yFoBsqsohvcG9DX
NNTP-Posting-Host: 23.239.20.136
References: <ba3354e8-c476-411b-80ac-d998303ef7den@googlegroups.com>
<7d747fb0-48ff-43c8-ab72-21a41e7f39d1n@googlegroups.com> <db36cd2f-e6ba-436b-9b60-01e81b659dccn@googlegroups.com>
<d2340c8f-fa2d-4ce2-9d0b-c9c4f5c148bcn@googlegroups.com> <4159fcbc-e889-49d1-a3df-a2dcdc25cc5bn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <14a8dd4d-cf0f-4a9f-b623-bd32c2a7aab4n@googlegroups.com>
Subject: Re: Select data points in interactive terminal
From: jindi...@gmail.com (jindi.li)
Injection-Date: Tue, 12 Jan 2021 01:19:10 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 3
View all headers
And I notice that "set mouse labels" must be set to make
<Ctrl-B2> remove label close to pointer
work,
and also fix that when I zoom or rescale the plot graph, the pin annotation made with middle mouse click is disappear.


Subject: Re: Select data points in interactive terminal
From: jindi.li
Newsgroups: comp.graphics.apps.gnuplot
Date: Tue, 12 Jan 2021 05:17 UTC
References: 1 2 3 4 5 6
X-Received: by 2002:ac8:3987:: with SMTP id v7mr3001795qte.144.1610428628634;
Mon, 11 Jan 2021 21:17:08 -0800 (PST)
X-Received: by 2002:a25:9b45:: with SMTP id u5mr4458737ybo.331.1610428628454;
Mon, 11 Jan 2021 21:17:08 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Mon, 11 Jan 2021 21:17:08 -0800 (PST)
In-Reply-To: <14a8dd4d-cf0f-4a9f-b623-bd32c2a7aab4n@googlegroups.com>
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=23.239.20.136; posting-account=bQqzsgoAAABmut957yFoBsqsohvcG9DX
NNTP-Posting-Host: 23.239.20.136
References: <ba3354e8-c476-411b-80ac-d998303ef7den@googlegroups.com>
<7d747fb0-48ff-43c8-ab72-21a41e7f39d1n@googlegroups.com> <db36cd2f-e6ba-436b-9b60-01e81b659dccn@googlegroups.com>
<d2340c8f-fa2d-4ce2-9d0b-c9c4f5c148bcn@googlegroups.com> <4159fcbc-e889-49d1-a3df-a2dcdc25cc5bn@googlegroups.com>
<14a8dd4d-cf0f-4a9f-b623-bd32c2a7aab4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ab0af790-26f0-4a1e-bc97-c7dbe9cbb1f2n@googlegroups.com>
Subject: Re: Select data points in interactive terminal
From: jindi...@gmail.com (jindi.li)
Injection-Date: Tue, 12 Jan 2021 05:17:08 +0000
Content-Type: text/plain; charset="UTF-8"
View all headers
I'm Quite happy to notice the Conditional Plotting in gnuplot, which solve my initial question,
I need to remove some data point in the plot graph without touch my real data.

I post the line work for me here in case someone need that too.

Yes, as simple as:
$>: plot 'scale.csv' u ($1>=0?$1:NaN)

which I didn't notice yet.


1
rocksolid light 0.7.2
clearneti2ptor