From: Alan W. I. <ir...@be...> - 2015-05-04 18:22:34
|
On 2015-05-04 15:59+0100 Sergej Scherbina wrote: > Dear Alan, > > You developed excellent software! I use it for scientific researching of seismic records of any seismic stations. > For example, I use of your plplot for 3D plots. But is one small problem - I can't use of the format for real time > Y-m-d H:M:S by axe X for example, where is the time. How to be with this task? Maybe it is my mistake? Hi Sergey: On behalf of the team of PLplot developers thanks for your kind words about that software. I have CC'd to the plplot-general list because others there will likely be interested in this discussion. I strongly suggest since you have an interest in using PLplot you should subscribe to that mailing list if you have not done so already. That's a pretty interesting looking 3D plot you have sent (which I have also attached in this reply so the others on this list can see it). But there are obvious problems with the time formatting, and let's see if we can straighten those out. The first question is can you replicate the results from examples/c/x29c.c that are displayed at <http://plplot.sourceforge.net/examples.php?demo=29>? That example (if it works on your platform) should demonstrate how to use pltimefmt to format times before they are displayed (e.g., with the plbox command using the "d" suboption for xopt and/or yopt. See also <http://plplot.sourceforge.net/docbook-manual/plplot-html-5.11.0/pltimefmt.html> and <http://plplot.sourceforge.net/docbook-manual/plplot-html-5.11.0/plbox.html>. To try example 29 yourself, please do the equivalent of the following on your own platform (the instructions below are for Unix): cmake <cmake options including -DBUILD_TEST=ON> <path to top of source tree> make x29c #Build example 29 and its prerequisities make ps # Build the PostScript device driver and its prerequisites examples/c/x29c -dev psc -o test.psc # Run the example Then view those PostScript results to see if they are the equivalent of the ones in the first URL above. Once we establish that example 29 works on your platform, then the remaining question is whether the same sort of idea works for a 3d analog of that 2d example using pltimefmt and plbox3. The documentation at <http://plplot.sourceforge.net/docbook-manual/plplot-html-5.11.0/plbox3.html> does not mention a "d" suboption for either xopt or yopt to achieve time formatting, but I think that documentation needs updating since the code does support that suboption for xopt and yopt. (That documentation does mention a d suboption for zopt, but that is for something entirely different so therefore time formatting is not allowed for the Z axis. However, I don't think that is much of an issue since usually time formatting is only required for the independent X and Y variables in a 3D plot and not the dependent Z variable.) So for your own example, please try pltimefmt followed by a call to plbox3 with a d suboption in xopt and/or yopt and let us know the results. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |