google plots ... was Re: draw3d, multiple plots, different colors



Jaime Villate <villate at fe.up.pt> writes:

> On 12/07/2011 08:00 PM, Jaime Villate wrote:
>> On 12/07/2011 07:39 PM, Mario Rodriguez wrote:
>>> I think it's a html5 canvas. I don't know much of this, but with html5
>>> you can make more or less the same as in flash.
>> It is pure SVG; it does not use the canvas. I have copied the page,
>> extracted the SVG part and played around with it making some
>> changes.
>> Regards,
>> Jaime
>
> By the way, lisp macros can be a very efficient way to create SVG
> files.

In addition to the html libraries, there is also parenscript, which
generates javascript from lisp. I think it is intended for webserving,
which would be one way to serve up these svg files.

> The output given by Maxima's plot2d and plot3d might be put
> into an SVG file rather that the current maxout.gnuplot, and then
> launch a web browser to see the result. I'm currently making some
> experiments with that.

I assume you mean the gnuplot svg terminal? It appears to be buggy.

set_plot_option([gnuplot_ps_term_command,"set terminal svg"]);
plot2d(sin(x),[x,-%pi,%pi],[psfile,"test.svg"]);

produces an svg file that firefox chokes on and epiphany displays up to
the error on the 2nd last line.

I am using gnuplot 4.4 patchlevel 2.

Leo