Hi sfeam,
Thanks for the reply. The zoom operation is not working. When I rt.
click the mouse and drag a certain area gets highlighted and then the
entire plot disappears.
I copied mousebox.template into fishplot.html, now the mouse tracking
box appears in the browser. But, the box is not working i.e. it
does'nt display the mouse (x,y) co-ordinates when the mouse is
positioned on canvas. The fishplot.html is as shown below:
<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();gnuplot.init();" oncontextmenu="return
false;">
<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>
<table class="mbright" tabindex=0>
<tr>
<td class="mb0">x </td> <td class="mb1"><span
id="ACTIVE_PLOT_NAME_x"> </span></td>
<td class="mb0">y </td> <td class="mb1"><span
id="ACTIVE_PLOT_NAME_y"> </span></td>
<td class="icon"></td>
<td class="icon" onclick="gnuplot.toggle_grid();"><img
src="grid.png" id="gnuplot_grid_icon" class="icon-image" alt="#"
title="toggle grid"></td>
<td class="icon" onclick="gnuplot.unzoom();"><img
src="previouszoom.png" id="gnuplot_unzoom_icon" class="icon-image"
alt="unzoom" title="unzoom"></td>
<td class="icon" onclick="gnuplot.rezoom();"><img src="nextzoom.png"
id="gnuplot_rezoom_icon" class="icon-image" alt="rezoom"
title="rezoom"></td>
<td class="icon" onclick="gnuplot.toggle_zoom_text();"><img
src="textzoom.png" id="gnuplot_textzoom_icon" class="icon-image"
alt="zoom text" title="zoom text with plot"></td>
<td class="icon" onclick="gnuplot.popup_help();"><img src="help.png"
id="gnuplot_help_icon" class="icon-image" alt="?" title="help"></td>
</tr>
<tr>
<td class="blank"> </td>
<td class="blank"> </td>
<td class="icon"> </td>
<td class="icon"
onclick='gnuplot.toggle_plot("ACTIVE_PLOT_NAME_plot_1")'>①</td>
<td class="icon"
onclick='gnuplot.toggle_plot("ACTIVE_PLOT_NAME_plot_2")'>②</td>
<td class="icon"
onclick='gnuplot.toggle_plot("ACTIVE_PLOT_NAME_plot_3")'>③</td>
<td class="icon"
onclick='gnuplot.toggle_plot("ACTIVE_PLOT_NAME_plot_4")'>④</td>
<td class="icon"
onclick='gnuplot.toggle_plot("ACTIVE_PLOT_NAME_plot_5")'>⑤</td>
<td class="icon"
onclick='gnuplot.toggle_plot("ACTIVE_PLOT_NAME_plot_6")'>⑥</td>
<td class="icon"
onclick='gnuplot.toggle_plot("ACTIVE_PLOT_NAME_plot_7")'>⑦</td>
</tr>
</table>
</body>
</html>
>make -f Makefile.canvas fishplot.html
I copied fishplot.js to ...demo/html
and ran the given command . I get the following error
make: *** No rule to make target `fishplot.html'. Stop.
>Also, I am not clear about how to use webify?
Jaya