Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #4368 > unrolled thread
| Started by | MBaz <eorlinga@gmail.com> |
|---|---|
| First post | 2020-11-18 18:14 -0800 |
| Last post | 2020-11-19 20:27 +0100 |
| Articles | 5 — 2 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
Canvas mouse tracking box location MBaz <eorlinga@gmail.com> - 2020-11-18 18:14 -0800
Re: Canvas mouse tracking box location MBaz <eorlinga@gmail.com> - 2020-11-18 18:55 -0800
Re: Canvas mouse tracking box location MBaz <eorlinga@gmail.com> - 2020-11-19 10:43 -0800
Re: Canvas mouse tracking box location MBaz <eorlinga@gmail.com> - 2020-11-19 18:20 -0800
Re: Canvas mouse tracking box location Karl Ratzsch <mail.kfr@gmx.net> - 2020-11-19 20:27 +0100
| From | MBaz <eorlinga@gmail.com> |
|---|---|
| Date | 2020-11-18 18:14 -0800 |
| Subject | Canvas mouse tracking box location |
| Message-ID | <2dd11773-95c6-4989-8bcb-11ce83fa11d1n@googlegroups.com> |
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?
[toc] | [next] | [standalone]
| From | MBaz <eorlinga@gmail.com> |
|---|---|
| Date | 2020-11-18 18:55 -0800 |
| Message-ID | <8ba019e8-c495-4cef-a81f-68ca201892b8n@googlegroups.com> |
| In reply to | #4368 |
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
[toc] | [prev] | [next] | [standalone]
| From | MBaz <eorlinga@gmail.com> |
|---|---|
| Date | 2020-11-19 10:43 -0800 |
| Message-ID | <695cd004-bb52-410f-87c6-9d48532811e6n@googlegroups.com> |
| In reply to | #4369 |
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.
[toc] | [prev] | [next] | [standalone]
| From | MBaz <eorlinga@gmail.com> |
|---|---|
| Date | 2020-11-19 18:20 -0800 |
| Message-ID | <2a3d1c20-4bf4-4278-8b74-00432a7debfdn@googlegroups.com> |
| In reply to | #4370 |
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.
[toc] | [prev] | [next] | [standalone]
| From | Karl Ratzsch <mail.kfr@gmx.net> |
|---|---|
| Date | 2020-11-19 20:27 +0100 |
| Message-ID | <rp6gud$ckt$1@solani.org> |
| In reply to | #4368 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web