Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1219

how to display mouse tracking box in gnuplot canvas terminal

From jaya choudhary <cse.jaya@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject how to display mouse tracking box in gnuplot canvas terminal
Date 2012-06-22 02:46 -0700
Organization http://groups.google.com
Message-ID <3f292874-db7c-4f06-8a0b-be6479cade21@s6g2000pbi.googlegroups.com> (permalink)

Show all headers | View raw


Hi,
I have installed gnuplot4.6 in my Fedora 15 system. I am trying to
plot a graph using gnuplot canvas terminal and wrap it in an html file
so that a mouse tracking box is visible below the plot. It should
allow tracking mouse movement, zoom in, zoom out etc. as shown on
http://gnuplot.sourceforge.net/demo_canvas_4.6/.

I am using the following file fishplot.html:


<html>
<head>
<script src="canvastext.js"></script>
<script src="gnuplot_common.js"></script>
<script src="gnuplot_mouse.js"></script>
<link rel="stylesheet" type="text/css" href="gnuplot_mouse.css" />
</head>
<body onload="fishplot();">
<script src="fishplot.js"></script>
<canvas id="fishplot" width=600 height=400>
<div id="err_msg">No support for HTML 5 canvas element</div>
</canvas>
</body>
</html>

The gnuplot commands used are:
gnuplot>set term canvas name 'fishplot' standalone mousing
gnuplot>set output 'fishplot.js'
gnuplot>plot sin(x)

When fishplot.html is viewed in browser, only the left click
functionality which marks the current co-ordinates of mouse in
browser is working.

How to make the mouse-tracking toolbox appear in browser and how to
make those functionality work?

Do I need to write additional code for .html and .js files? If yes,
then why is the 'left click ' function working?

Back to comp.graphics.apps.gnuplot | Previous | NextNext in thread | Find similar


Thread

how to display mouse tracking box in gnuplot canvas terminal jaya choudhary <cse.jaya@gmail.com> - 2012-06-22 02:46 -0700
  Re: how to display mouse tracking box in gnuplot canvas terminal sfeam <sfeam@users.sourceforge.net> - 2012-06-22 19:43 -0700
    Re: how to display mouse tracking box in gnuplot canvas terminal jaya choudhary <cse.jaya@gmail.com> - 2012-06-25 00:02 -0700
      Re: how to display mouse tracking box in gnuplot canvas terminal sfeam <eamerritt@gmail.com> - 2012-06-25 07:49 -0700
        Re: how to display mouse tracking box in gnuplot canvas terminal jaya choudhary <cse.jaya@gmail.com> - 2012-06-26 04:03 -0700

csiph-web