From: <ai...@us...> - 2009-02-28 21:03:11
|
Revision: 9644 http://plplot.svn.sourceforge.net/plplot/?rev=9644&view=rev Author: airwin Date: 2009-02-28 21:03:02 +0000 (Sat, 28 Feb 2009) Log Message: ----------- Make new time API available to our swig-generated interfaces, and update the 29th python example to use this new time API. The python example 29 results remain unchanged. Modified Paths: -------------- trunk/bindings/swig-support/plplotcapi.i trunk/examples/python/xw29.py Modified: trunk/bindings/swig-support/plplotcapi.i =================================================================== --- trunk/bindings/swig-support/plplotcapi.i 2009-02-28 20:59:11 UTC (rev 9643) +++ trunk/bindings/swig-support/plplotcapi.i 2009-02-28 21:03:02 UTC (rev 9644) @@ -248,6 +248,10 @@ void plbin(PLINT n, PLFLT *Array, PLFLT *ArrayCk, PLINT center); +%feature("autodoc", "Calculate broken-down time from continuous time for current stream.") plbtime; +void +plbtime(PLINT *OUTPUT, PLINT *OUTPUT, PLINT *OUTPUT, PLINT *OUTPUT, PLINT *OUTPUT, PLFLT *OUTPUT, PLFLT ctime); + %feature("autodoc", "Start new page. Should only be used with pleop().") plbop; void plbop(void); @@ -279,6 +283,10 @@ void plcol1(PLFLT col1); +%feature("autodoc", "Configure transformation between continuous and broken-down time (and vice versa) for current stream.") plconfigtime; +void +plconfigtime(PLFLT scale, PLFLT offset1, PLFLT offset2, PLINT ccontrol, PLBOOL ifbtime_offset, PLINT year, PLINT month, PLINT day, PLINT hour, PLINT min, PLFLT sec); + %feature("autodoc", "Draw a contour plot.") plcont; void plcont(PLFLT **Matrix, PLINT nx, PLINT ny, PLINT kx, PLINT lx, @@ -287,6 +295,10 @@ PLPointer SWIG_OBJECT_DATA); +%feature("autodoc", "Calculate continuous time from broken-down time for current stream.") plctime; +void +plctime(PLINT year, PLINT month, PLINT day, PLINT hour, PLINT min, PLFLT sec, PLFLT *OUTPUT); + %feature("autodoc", "Copy state parameters from the reference stream to the current stream.") plcpstrm; void plcpstrm(PLINT iplsr, PLBOOL flags); Modified: trunk/examples/python/xw29.py =================================================================== --- trunk/examples/python/xw29.py 2009-02-28 20:59:11 UTC (rev 9643) +++ trunk/examples/python/xw29.py 2009-02-28 21:03:02 UTC (rev 9644) @@ -137,11 +137,10 @@ # number of seconds elapsed since the Unix epoch (1970-01-01, UTC) for # 2005-12-01, UTC. - tstart = calendar.timegm((2005,12,1,0,0,0)) + xmin = plctime(2005,11,1,0,0,0.) npts = 62 - xmin = float(tstart) xmax = xmin + npts*60.0*60.0*24.0 ymin = 0.0 ymax = 5.0 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |