Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

<Skyhook> Where is 'bavaria' proper? I thought it was austria. -- Seen on #Linux


computers / comp.graphics.apps.gnuplot / Re: Canvas mouse tracking box location

SubjectAuthor
* Canvas mouse tracking box locationMBaz
+* Re: Canvas mouse tracking box locationMBaz
|`* Re: Canvas mouse tracking box locationMBaz
| `- Re: Canvas mouse tracking box locationMBaz
`- Re: Canvas mouse tracking box locationKarl Ratzsch

1
Subject: Canvas mouse tracking box location
From: MBaz
Newsgroups: comp.graphics.apps.gnuplot
Date: Thu, 19 Nov 2020 02:14 UTC
X-Received: by 2002:a37:a481:: with SMTP id n123mr8719977qke.114.1605752067378;
Wed, 18 Nov 2020 18:14:27 -0800 (PST)
X-Received: by 2002:a25:20d5:: with SMTP id g204mr9818594ybg.136.1605752067254;
Wed, 18 Nov 2020 18:14:27 -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: Wed, 18 Nov 2020 18:14:26 -0800 (PST)
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=8.9.84.172; posting-account=kTRnegoAAAC2-GCau0jpUJgQzQHVU4ng
NNTP-Posting-Host: 8.9.84.172
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2dd11773-95c6-4989-8bcb-11ce83fa11d1n@googlegroups.com>
Subject: Canvas mouse tracking box location
From: eorli...@gmail.com (MBaz)
Injection-Date: Thu, 19 Nov 2020 02:14:27 +0000
Content-Type: text/plain; charset="UTF-8"
View all headers
The documentation and the demos on gnuplot's webpage indicate that the mouse-tracking box in a canvas plot should appear on the bottom of the plot.

However, when I create such a plot myself, I see the box on the left of the plot. Furthermore, the grid button does not work, and I see a button with sort of a double "A" that is not there in the demos.

Here is a screenshot that shows what I see: https://i.imgur.com/7DHeg9A.png

To reproduce (I'm using gnuplot 5.4), run these commands:

set term canvas mousing
set output 'test.html'
plot sin(x)
set output

and then open 'test.html' in a web browser.

Does anyone know what is happening here, and how can I obtain plots as shown on the demos and described in the documentation?


Subject: Re: Canvas mouse tracking box location
From: MBaz
Newsgroups: comp.graphics.apps.gnuplot
Date: Thu, 19 Nov 2020 02:55 UTC
References: 1
X-Received: by 2002:ac8:47ca:: with SMTP id d10mr8045012qtr.217.1605754558395;
Wed, 18 Nov 2020 18:55:58 -0800 (PST)
X-Received: by 2002:a25:e6d7:: with SMTP id d206mr11171158ybh.67.1605754558205;
Wed, 18 Nov 2020 18:55:58 -0800 (PST)
Path: i2pn2.org!i2pn.org!news.uzoreto.com!news.muarf.org!nntpfeed.proxad.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: Wed, 18 Nov 2020 18:55:57 -0800 (PST)
In-Reply-To: <2dd11773-95c6-4989-8bcb-11ce83fa11d1n@googlegroups.com>
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=8.9.84.172; posting-account=kTRnegoAAAC2-GCau0jpUJgQzQHVU4ng
NNTP-Posting-Host: 8.9.84.172
References: <2dd11773-95c6-4989-8bcb-11ce83fa11d1n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8ba019e8-c495-4cef-a81f-68ca201892b8n@googlegroups.com>
Subject: Re: Canvas mouse tracking box location
From: eorli...@gmail.com (MBaz)
Injection-Date: Thu, 19 Nov 2020 02:55:58 +0000
Content-Type: text/plain; charset="UTF-8"
View all headers
On Wednesday, November 18, 2020 at 9:14:28 PM UTC-5, MBaz wrote:
The documentation and the demos on gnuplot's webpage indicate that the mouse-tracking box in a canvas plot should appear on the bottom of the plot.

Here is what gnuplot outputs with the commands given above: https://gist.github.com/mbaz/c6106679b7c01ce58ab422a5b5dbd025


Subject: Re: Canvas mouse tracking box location
From: MBaz
Newsgroups: comp.graphics.apps.gnuplot
Date: Thu, 19 Nov 2020 18:43 UTC
References: 1 2
X-Received: by 2002:ad4:5221:: with SMTP id r1mr12149158qvq.59.1605811401035;
Thu, 19 Nov 2020 10:43:21 -0800 (PST)
X-Received: by 2002:a25:c946:: with SMTP id z67mr12574358ybf.56.1605811400855;
Thu, 19 Nov 2020 10:43:20 -0800 (PST)
Path: i2pn2.org!i2pn.org!aioe.org!peer02.ams4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Thu, 19 Nov 2020 10:43:20 -0800 (PST)
In-Reply-To: <8ba019e8-c495-4cef-a81f-68ca201892b8n@googlegroups.com>
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=8.9.84.172; posting-account=kTRnegoAAAC2-GCau0jpUJgQzQHVU4ng
NNTP-Posting-Host: 8.9.84.172
References: <2dd11773-95c6-4989-8bcb-11ce83fa11d1n@googlegroups.com> <8ba019e8-c495-4cef-a81f-68ca201892b8n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <695cd004-bb52-410f-87c6-9d48532811e6n@googlegroups.com>
Subject: Re: Canvas mouse tracking box location
From: eorli...@gmail.com (MBaz)
Injection-Date: Thu, 19 Nov 2020 18:43:21 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2059
X-Received-Body-CRC: 3315058322
View all headers
On Wednesday, November 18, 2020 at 9:55:59 PM UTC-5, MBaz wrote:
On Wednesday, November 18, 2020 at 9:14:28 PM UTC-5, MBaz wrote:
The documentation and the demos on gnuplot's webpage indicate that the mouse-tracking box in a canvas plot should appear on the bottom of the plot.
Here is what gnuplot outputs with the commands given above: https://gist.github.com/mbaz/c6106679b7c01ce58ab422a5b5dbd025

I have found that there are several different classes in the mousebox CSS, and `mbleft` is the one used in the canvas html. I was hopeful that changing it manually to `mbunder` would help, but it didn't.

I also saw the example canvas demo plots for gnuplot 5.5 (unfortunately, the 5.4 canvas demos are 404). Besides much cleaner html, it uses the `mbunder` class, and disables the "text zoom" button.


Subject: Re: Canvas mouse tracking box location
From: Karl Ratzsch
Newsgroups: comp.graphics.apps.gnuplot
Organization: solani.org
Date: Thu, 19 Nov 2020 19:27 UTC
References: 1
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: mail....@gmx.net (Karl Ratzsch)
Newsgroups: comp.graphics.apps.gnuplot
Subject: Re: Canvas mouse tracking box location
Date: Thu, 19 Nov 2020 20:27:04 +0100
Organization: solani.org
Message-ID: <rp6gud$ckt$1@solani.org>
References: <2dd11773-95c6-4989-8bcb-11ce83fa11d1n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 19 Nov 2020 19:27:09 -0000 (UTC)
Injection-Info: solani.org;
logging-data="12957"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.4.3
X-User-ID: eJwFwYkRwDAIA7CVkhhMGYfnvP8IlRy8nDA6zeVaHmlvCLPshHjr1ev5+sXhljoTKJoMg/MDMkERiQ==
Content-Language: de-DE
Cancel-Lock: sha1:O+Tcbwj+wh2P3uH03tJPW4kpgoA=
In-Reply-To: <2dd11773-95c6-4989-8bcb-11ce83fa11d1n@googlegroups.com>
View all headers
Am 19.11.2020 um 03:14 schrieb MBaz:
To reproduce (I'm using gnuplot 5.4), run these commands:

set term canvas mousing
set output 'test.html'

Hm, the output html doesn't work at all on firefox/win7

The firefox web console complains with the following, anybody know what's wrong there? The paths are correct. Can't be the slash/backslash mixture, can it?


Laden fehlgeschlagen für das <script> mit der Quelle "c:\Program Files\gnuplot54\share/js/canvastext.js". test.html:6:1
Laden fehlgeschlagen für das <script> mit der Quelle "c:\Program Files\gnuplot54\share/js/gnuplot_common.js". test.html:7:1
Laden fehlgeschlagen für das <script> mit der Quelle "c:\Program Files\gnuplot54\share/js/gnuplot_dashedlines.js". test.html:8:1
Laden fehlgeschlagen für das <script> mit der Quelle "c:\Program Files\gnuplot54\share/js/gnuplot_mouse.js". test.html:9:1
Uncaught ReferenceError: gnuplot is not defined
     <anonymous> file:///C:/Users/ratzsch/Documents/gpmouse/test.html:10
test.html:10:2
Uncaught ReferenceError: gnuplot is not defined
     <anonymous> file:///C:/Users/ratzsch/Documents/gpmouse/test.html:13
test.html:13:1
Die Zeichenkodierung des HTML-Dokuments wurde nicht deklariert. Das Dokument wird in manchen Browser-Konfigurationen mit verstümmeltem Text dargestellt, wenn das Dokument Zeichen außerhalb des US-ASCII-Bereichs enthält. Die Zeichenkodierung der Seite muss im Dokument oder Transferprotokoll deklariert werden. test.html
Uncaught ReferenceError: gnuplot is not defined
     gnuplot_canvas file:///C:/Users/ratzsch/Documents/gpmouse/test.html:36
     onload file:///C:/Users/ratzsch/Documents/gpmouse/test.html:1


Subject: Re: Canvas mouse tracking box location
From: MBaz
Newsgroups: comp.graphics.apps.gnuplot
Date: Fri, 20 Nov 2020 02:20 UTC
References: 1 2 3
X-Received: by 2002:ac8:5ac3:: with SMTP id d3mr13654709qtd.384.1605838812175; Thu, 19 Nov 2020 18:20:12 -0800 (PST)
X-Received: by 2002:a25:2d05:: with SMTP id t5mr24165332ybt.297.1605838812031; Thu, 19 Nov 2020 18:20:12 -0800 (PST)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!tr3.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: Thu, 19 Nov 2020 18:20:11 -0800 (PST)
In-Reply-To: <695cd004-bb52-410f-87c6-9d48532811e6n@googlegroups.com>
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=8.9.84.172; posting-account=kTRnegoAAAC2-GCau0jpUJgQzQHVU4ng
NNTP-Posting-Host: 8.9.84.172
References: <2dd11773-95c6-4989-8bcb-11ce83fa11d1n@googlegroups.com> <8ba019e8-c495-4cef-a81f-68ca201892b8n@googlegroups.com> <695cd004-bb52-410f-87c6-9d48532811e6n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2a3d1c20-4bf4-4278-8b74-00432a7debfdn@googlegroups.com>
Subject: Re: Canvas mouse tracking box location
From: eorli...@gmail.com (MBaz)
Injection-Date: Fri, 20 Nov 2020 02:20:12 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 20
View all headers
On Thursday, November 19, 2020 at 1:43:22 PM UTC-5, MBaz wrote:
On Wednesday, November 18, 2020 at 9:55:59 PM UTC-5, MBaz wrote:
On Wednesday, November 18, 2020 at 9:14:28 PM UTC-5, MBaz wrote:
The documentation and the demos on gnuplot's webpage indicate that the mouse-tracking box in a canvas plot should appear on the bottom of the plot.
Here is what gnuplot outputs with the commands given above: https://gist.github.com/mbaz/c6106679b7c01ce58ab422a5b5dbd025
I have found that there are several different classes in the mousebox CSS, and `mbleft` is the one used in the canvas html. I was hopeful that changing it manually to `mbunder` would help, but it didn't.

I also saw the example canvas demo plots for gnuplot 5.5 (unfortunately, the 5.4 canvas demos are 404). Besides much cleaner html, it uses the `mbunder` class, and disables the "text zoom" button.

I was able to place the mousebox under the plot by copying the layout from gnuplot's demo page. This works: mouse zoom, mouse tracking, printing and clearing coordinates with the left and right mouse buttons, and the zoom reset/restore buttons. This doesn't work: grid on/off button, turning plots on/off.


1
rocksolid light 0.7.2
clearneti2ptor