On 03/30/2011 04:03 PM, Alan W. Irwin wrote:
> On 2011-03-30 20:08+0200 Mark Fink wrote:
>
>> Hi there,
>>
>> since you mention "ultimate" and "cross-platform" in your claim I assume you 
>> are already targeting node.js and the v8 engine as a
>> platform.
>> I would be interested in any attempt past or ongoing to provide a Javascript 
>> wrapper for your plotting tool. I guess I could personally
>> support such a initiative. It currently looks that I will have a student 
>> working on that during this summer, too.
>>
>> In case it turns out that there is not such thing yet. I could need some 
>> ideas from you experts on how to approach that topic. I noticed
>> that there are already many wrappers available and my first naive attempt 
>> would be to port the Python wrapper to Javascript using py2js.
>> Maybe you would like to share some thoughts on that or already have a better 
>> idea.
>>
>
> Hi Mark:
>
> Thanks for your interest in PLplot.  To answer your question about
> javascript bindings, you might want to consider using swig to generate
> the needed bindings.  Currently we use swig with a lot of success to
> do this for Python, Java, Lua, and Octave.  According to
> http://swig.org/compat.html#SupportedLanguages, javascript is also
> supported by swig so I would recommend evaluating that option, at
> least.

Mark,
Could you elaborate a little more about what you are trying to do? If 
you want to embed graphs in a web page, then I think it would probably 
be easier to use one of the existing language bindings on the server 
side to generate an image or svg file. I think that it will be quite 
difficult to combine PLplot with javascript to generate graphs on the 
client side.

Alan,
Hmm, I don't see javascript listed as one of the languages supported by 
swig. Are you sure? The page you suggest mentions something called 
SwigJS, but a Google search suggests that this project is no longer 
under active development.

-Hazen

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to