|
From: Ethan A M. <merritt@u.washington.edu> - 2009-02-27 05:35:11
|
On Thursday 26 February 2009, Tatsuro MATSUOKA wrote: > Hello > > > I have misled about CANVAS_JSDIR, CANVAS_ENH, CANVAS_NOENH, and CANVAS_OTHER. > The location /usr/local/share/gnuplot/<version>/js only for unixy environments. > > I could like to confirm the following > > 1. Files in the directry ...../js are to be placed in the suitable place in the distribution. > For the example, windows distribution ...../share/js like as .../share/postscript seems to be > suitable. > > 2.The directriy where the javascript library files and gnuplot.css are located in the document of the > distribution. > > 3.In makefile.xxx, operations for installing javascript library files and gnuplot.css to > $(DESTDIR)/$(GNUPLOT_CANVAS_JSDIR) are to be described. > > Are my recognition right? It is a little bit different. The PostScript files are needed when the program is run, so they must be stored in a directory that is convenient at run-time so that the gnuplot program can find them. The javascript files, however, are only needed when the plot is viewed. They need to be stored in a directory that is accessible to the intended viewer. I think that the primary use for the canvas driver will be to make web pages for remote machines to view. That means that the javascript files should be in a directory that is part of the web site, so that the web server can export them. Gnuplot itself does not need to see these files. However, it is good to keep also a local copy of the javascript files so that the user can test out the plots locally before placing them on a web site. For this purpose it makes sense to put copies in a directory parallel to the PostScript files. Ethan > I will wait comments on this matter. > > Regards > > Tatsuro > > > --- Tatsuro MATSUOKA wrote: > > > Hello > > > > In the gnuplot help, > > > > The default standalonemode creates an html page containing javascript code that renders the plot > > using > > the HTML 5 canvas element.The html page links to a javascript library 'canvastext.js'.By default > > this > > is a link to a local file,usually in directory /usr/local/share/gnuplot/<version>/js.You can > > change > > this by using the jsdiroption to set the directory to either a local file or a general URL.The > > latter > > is usually appropriate if the plot is exported for viewing on remote client machines. > > > > are described. > > > > The above description : > > > > The html page links to a javascript library 'canvastext.js'. By default this is a link to a > > local > > file,usually in directory /usr/local/share/gnuplot/<version>/js. > > > > seems to be effective for binaries generated through configure script. > > > > Binaries generarted by directly through the platform dependent make file (e.g. makefile.mgw, > > makefile.dj2, and so on) seems to not be considered concerning the directry of > > > > 'canvastext.js' > > > > I think that each makefile should be modified from this point > > > > I have a look at canvas.trm > > > > The below > > CANVAS_JSDIR > > CANVAS_ENH > > CANVAS_NOENH > > CANVAS_OTHER > > > > should be defined in the makefile ? right > > > > Can the 'CANVAS_JSDIR' be treat as that of GNUPLOT_PS_DIR? Yes, but also the installation instructions should explain about placing these on a web server directory if the canvas terminal plots will be viewed over the web. > > How other flags CANVAS_ENH, CANVAS_NOENH, CANVAS_OTHER be treated? They are used only inside the file canvas.trm, and should not be defined in the makefile. > > > > Regards > > > > Tatsuro > > > > > > -------------------------------------- > > Power up the Internet with Yahoo! Toolbar. > > http://pr.mail.yahoo.co.jp/toolbar/ > > > > > -------------------------------------- > Power up the Internet with Yahoo! Toolbar. > http://pr.mail.yahoo.co.jp/toolbar/ > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > gnuplot-beta mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta > -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle 98195-7742 |