From: <ai...@us...> - 2014-03-04 19:12:00
|
Revision: 13035 http://sourceforge.net/p/plplot/code/13035 Author: airwin Date: 2014-03-04 19:11:54 +0000 (Tue, 04 Mar 2014) Log Message: ----------- Update Python and Octave documentation strings consistent with doc/docbook/src/api.xml. This update includes the following interrelated components. Update api2swigdoc.pl by forming a rename hash to keep track of the renaming that occurs in bindings/octave/plplot_octave.i, and using the renamed documentation names for the Octave documentation case. This solves a bug that occurred in the previous version where documentation of the renamed octave functions was lost. Propagate the improved results from api2swigdoc.pl using the check_swig_documentation target and copying the comparison file generated with api2swigdoc.pl to bindings/swig-support/swig_documentation.i. This is a major change to that latter file not only because of the api2swigdoc.pl changes but also because api.xml has been updated extensively since the last time the check_swig_documentation target was run. For example, api.xml includes UTF-8 characters now so those have been propagated to bindings/swig-support/swig_documentation.i. The UTF-8 characters in swig_documentation.i trigger an Octave bug where help strings which include UTF-8 characters are displayed in a truncated fashion, i.e., only displayed up to the first such character. Such truncated display is not a showstopper bug, but it is an annoyance. We have now made an extremely simple test case not involving PLplot which shows the display bug, and Andrew is investigating that test case further. The UTF-8 characters in swig_documentation.i end up in the swig-generated file bindings/python/plplotc.py which causes run-time problems since that file has no encoding string on the first or second line (which is demanded by Python standards). Swig should give users control of the encoding of that file, but to work around that swig bug, I have created the _plplotcmodule_fixed custom target which uses sed (now required to build the Python binding of PLplot) to append " It uses coding: utf-8" to the first line of that file. Changed target depends (just in the build tree since the fixed plplotc.py is automatically installed with no further action required in the installed examples tree) from _plplotcmodule to _plplotcmodule_fixed. The result has been tested on Linux using the test_noninteractive and test_interactive targets in the build tree and also (using the CMake-based build system) for the installed examples tree. Modified Paths: -------------- trunk/bindings/octave/plplot_octave.i trunk/bindings/python/CMakeLists.txt trunk/bindings/swig-support/CMakeLists.txt trunk/bindings/swig-support/swig_documentation.i trunk/cmake/modules/python.cmake trunk/doc/docbook/bin/api2swigdoc.pl trunk/examples/CMakeLists.txt trunk/examples/python/CMakeLists.txt Modified: trunk/bindings/octave/plplot_octave.i =================================================================== --- trunk/bindings/octave/plplot_octave.i 2014-03-04 17:52:01 UTC (rev 13034) +++ trunk/bindings/octave/plplot_octave.i 2014-03-04 19:11:54 UTC (rev 13035) @@ -1182,6 +1182,10 @@ } } +// %feature commands supporting swig-generated documentation for the bindings. +// Must occur before any %ignore directives or %rename directives. +%include swig_documentation.i + // This test function should be removed when we are confident of our // dealings with all types of octave string arrays. void testppchar( PLINT n, const PLINT *Array, const char **ArrayCk ); @@ -1881,7 +1885,6 @@ // Probably never deal with this one. %ignore plMinMax2dGrid; -//%feature commands supporting swig-generated documentation for the bindings. -%include swig_documentation.i + // swig-compatible common PLplot API definitions from here on. %include plplotcapi.i Modified: trunk/bindings/python/CMakeLists.txt =================================================================== --- trunk/bindings/python/CMakeLists.txt 2014-03-04 17:52:01 UTC (rev 13034) +++ trunk/bindings/python/CMakeLists.txt 2014-03-04 19:11:54 UTC (rev 13035) @@ -102,6 +102,31 @@ ) endif(WIN32_AND_NOT_CYGWIN) + # Fixup required to deal with UTF-8 help strings. Note the DEPENDS + # only brings in a file dependency on the shared object and + # not ${CMAKE_CURRENT_BINARY_DIR}/plplotc.py that is also built + # by swig. Therefore, when the _plplotcmodule_fixed target is run the + # following command is only executed if + # ${CMAKE_CURRENT_BINARY_DIR}/plplotc_fixed.py is outdated relative + # to the shared object and it ignores the dating of + # ${CMAKE_CURRENT_BINARY_DIR}/plplotc.py. Thus, that file + # can be overwritten by the command below without affecting whether + # the custom command is run or not. + add_custom_command( + OUTPUT + ${CMAKE_CURRENT_BINARY_DIR}/plplotc_fixed.py + COMMAND ${SED_EXECUTABLE} -e "1s?^\\(.*\\)\$?\\1 It uses coding: utf-8?" < ${CMAKE_CURRENT_BINARY_DIR}/plplotc.py > ${CMAKE_CURRENT_BINARY_DIR}/plplotc_fixed.py + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/plplotc_fixed.py ${CMAKE_CURRENT_BINARY_DIR}/plplotc.py + DEPENDS _plplotcmodule + VERBATIM + ) + add_custom_target( + _plplotcmodule_fixed ALL + DEPENDS + ${CMAKE_CURRENT_BINARY_DIR}/plplotc_fixed.py + ) + add_dependencies(_plplotcmodule_fixed _plplotcmodule) + add_library(plplot_widgetmodule MODULE plplot_widgetmodule.c) set_target_properties(plplot_widgetmodule PROPERTIES PREFIX "") set_source_files_properties( Modified: trunk/bindings/swig-support/CMakeLists.txt =================================================================== --- trunk/bindings/swig-support/CMakeLists.txt 2014-03-04 17:52:01 UTC (rev 13034) +++ trunk/bindings/swig-support/CMakeLists.txt 2014-03-04 19:11:54 UTC (rev 13035) @@ -29,6 +29,7 @@ ${CMAKE_CURRENT_BINARY_DIR}/swig_documentation.i_compare COMMAND ${PERL_EXECUTABLE} ${CMAKE_SOURCE_DIR}/doc/docbook/bin/api2swigdoc.pl + ${CMAKE_SOURCE_DIR}/bindings/octave/plplot_octave.i ${CMAKE_SOURCE_DIR}/doc/docbook/src/plplotdoc.xml.in ${CMAKE_SOURCE_DIR}/doc/docbook/src/api.xml ${CMAKE_CURRENT_BINARY_DIR}/swig_documentation.i_compare Modified: trunk/bindings/swig-support/swig_documentation.i =================================================================== --- trunk/bindings/swig-support/swig_documentation.i 2014-03-04 17:52:01 UTC (rev 13034) +++ trunk/bindings/swig-support/swig_documentation.i 2014-03-04 19:11:54 UTC (rev 13035) @@ -68,15 +68,15 @@ Advances to the next subpage if sub=0, performing a page advance if there are no remaining subpages on the current page. If subpages - aren't being used, pladv(0) will always advance the page. If sub>0, + aren't being used, pladv(0) will always advance the page. If page>0, PLplot switches to the specified subpage. Note that this allows you to overwrite a plot on the specified subpage; if this is not what you intended, use pleop followed by plbop to first advance the page. This - routine is called automatically (with sub=0) by plenv, but if plenv is - not used, pladv must be called after initializing PLplot but before + routine is called automatically (with page=0) by plenv, but if plenv + is not used, pladv must be called after initializing PLplot but before defining the viewport. - Redacted form: pladv(sub) + Redacted form: pladv(page) This function is used in examples 1,2,4,6-12,14-18,20,21,23-27,29,31. @@ -84,13 +84,14 @@ SYNOPSIS: -pladv(sub) +pladv(page) ARGUMENTS: - sub (PLINT, input) : Specifies the subpage number (starting from 1 + page (PLINT, input) : Specifies the subpage number (starting from 1 in the top left corner and increasing along the rows) to which to - advance. Set to zero to advance to the next subpage. + advance. Set to zero to advance to the next subpage (or to the + next page if subpages are not being used). ") pladv; @@ -260,12 +261,13 @@ nbin (PLINT, input) : Number of bins (i.e., number of values in x and y arrays.) - x (PLFLT *, input) : Pointer to array containing values associated - with bins. These must form a strictly increasing sequence. + x (const PLFLT *, input) : Pointer to array containing values + associated with bins. These must form a strictly increasing + sequence. - y (PLFLT *, input) : Pointer to array containing number of points - in bin. This is a PLFLT (instead of PLINT) array so as to allow - histograms of probabilities, etc. + y (const PLFLT *, input) : Pointer to array containing number of + points in bin. This is a PLFLT (instead of PLINT) array so as to + allow histograms of probabilities, etc. opt (PLINT, input) : Is a combination of several flags: opt=PL_BIN_DEFAULT: The x represent the lower bin boundaries, the @@ -515,6 +517,57 @@ ") plbox3; +%feature( "docstring", "Calculate broken-down time from continuous time for the current stream + +DESCRIPTION: + + Calculate broken-down time; year, month, day, hour, min, sec; from + continuous time, ctime for the current stream. This function is the + inverse of plctime. + + The PLplot definition of broken-down time is a calendar time that + completely ignores all time zone offsets, i.e., it is the user's + responsibility to apply those offsets (if so desired) before using the + PLplot time API. By default broken-down time is defined using the + proleptic Gregorian calendar without the insertion of leap seconds and + continuous time is defined as the number of seconds since the Unix + epoch of 1970-01-01T00:00:00Z. However, other definitions of + broken-down and continuous time are possible, see plconfigtime. + + Redacted form: General: plbtime(year, month, day, hour, min, sec, + ctime) + Perl/PDL: Not available? + + + This function is used in example 29. + + + +SYNOPSIS: + +plbtime(year, month, day, hour, min, sec, ctime) + +ARGUMENTS: + + year (PLINT *, output) : Output year. + + month (PLINT *, output) : Output month in range from 0 (January) to + 11 (December). + + day (PLINT *, output) : Output day in range from 1 to 31. + + hour (PLINT *, output) : Output hour in range from 0 to 23. + + min (PLINT *, output) : Output minute in range from 0 to 59 + + sec (PLFLT *, output) : Output second in floating range from 0. to + 60. + + ctime (PLFLT, input) : Continous time from which the broken-down + time is calculated. +") +plbtime; + %feature( "docstring", "Calculate world coordinates and corresponding window index from relative device coordinates DESCRIPTION: @@ -594,13 +647,13 @@ ") plclear; -%feature( "docstring", "Set color, map0 +%feature( "docstring", "Set color, cmap0 DESCRIPTION: - Sets the color for color map0 (see the PLplot documentation). + Sets the color index for cmap0 (see the PLplot documentation). - Redacted form: plcol0(color) + Redacted form: plcol0(icol0) This function is used in examples 1-9,11-16,18-27,29. @@ -608,11 +661,11 @@ SYNOPSIS: -plcol0(color) +plcol0(icol0) ARGUMENTS: - color (PLINT, input) : Integer representing the color. The + icol0 (PLINT, input) : Integer representing the color. The defaults at present are (these may change): 0 black (default background) 1 red (default foreground) @@ -636,11 +689,11 @@ ") plcol0; -%feature( "docstring", "Set color, map1 +%feature( "docstring", "Set color, cmap1 DESCRIPTION: - Sets the color for color map1 (see the PLplot documentation). + Sets the color for cmap1 (see the PLplot documentation). Redacted form: plcol1(col1) @@ -803,7 +856,7 @@ label_opts (const PLINT *, input) : Options for each of n_labels labels. - labels (const char *const *, input) : n_labels text labels for the + labels (const char * const *, input) : n_labels text labels for the color bar. No label is drawn if no label position is specified with one of the PL_COLORBAR_LABEL_RIGHT, PL_COLORBAR_LABEL_TOP, PL_COLORBAR_LABEL_LEFT, or PL_COLORBAR_LABEL_BOTTOM bits in the @@ -815,40 +868,134 @@ but it can be larger if multiple numerical axis labels for the long edges of the color bar are desired. - axis_opts (const char *const *, input) : An array of n_axes axis + axis_opts (const char * const *, input) : An array of n_axes axis options (interpreted as for plbox) for the color bar's axis definitions. - ticks (PLFLT *, input) : An array of n_axes values of the spacing - of the major tick marks (interpreted as for plbox) for the color - bar's axis definitions. + ticks (const PLFLT *, input) : An array of n_axes values of the + spacing of the major tick marks (interpreted as for plbox) for the + color bar's axis definitions. - sub_ticks (PLINT *, input) : An array of n_axes values of the + sub_ticks (const PLINT *, input) : An array of n_axes values of the number of subticks (interpreted as for plbox) for the color bar's axis definitions. - n_values (PLINT, input) : An array containing the number of + n_values (const PLINT *, input) : An array containing the number of elements in each of the n_axes rows of the two-dimensional values array. - values (PLFLT *const *, input) : A two-dimensional array containing - the numeric values for the data range represented by the color - bar. For a row index of i_axis (where 0 < i_axis < n_axes), the - number of elements in the row is specified by n_values[i_axis]. - For PL_COLORBAR_IMAGE and PL_COLORBAR_GRADIENT the number of - elements is 2, and the corresponding row elements of the values - array are the minimum and maximum value represented by the - colorbar. For PL_COLORBAR_SHADE, the number and values of the + values (const PLFLT * const *, input) : A two-dimensional array + containing the numeric values for the data range represented by + the color bar. For a row index of i_axis (where 0 < i_axis < + n_axes), the number of elements in the row is specified by + n_values[i_axis]. For PL_COLORBAR_IMAGE and PL_COLORBAR_GRADIENT + the number of elements is 2, and the corresponding row elements of + the values array are the minimum and maximum value represented by + the colorbar. For PL_COLORBAR_SHADE, the number and values of the elements of a row of the values array is interpreted the same as the nlevel and clevel arguments of plshades. ") +#ifdef SWIG_OCTAVE +my_plcolorbar; +#else plcolorbar; +#endif +%feature( "docstring", "Configure the transformation between continuous and broken-down time for the current stream + +DESCRIPTION: + + Configure the transformation between continuous and broken-down time + for the current stream. This transformation is used by both plbtime + and plctime. + + Redacted form: General: plconfigtime(scale, offset1, offset2, + ccontrol, ifbtime_offset, year, month, day, hour, min, sec) + Perl/PDL: Not available? + + + This function is used in example 29. + + + +SYNOPSIS: + +plconfigtime(scale, offset1, offset2, ccontrol, ifbtime_offset, year, month, day, hour, min, sec) + +ARGUMENTS: + + scale (PLFLT, input) : The number of days per continuous time unit. + As a special case, if + scale is 0., then all other arguments are ignored, and the result (the + default used by PLplot) is the equivalent of a call to + plconfigtime(1./86400., 0., 0., 0x0, 1, 1970, 0, 1, 0, 0, 0.). + That is, for this special case broken-down time is calculated with + the proleptic Gregorian calendar with no leap seconds inserted, + and the continuous time is defined as the number of seconds since + the Unix epoch of 1970-01-01T00:00:00Z. + + offset1 (PLFLT, input) : If + ifbtime_offset is true, the parameters + offset1 and + offset2 are completely ignored. Otherwise, the sum of these parameters + (with units in days) specify the epoch of the continuous time + relative to the MJD epoch corresponding to the Gregorian calendar + date of 1858-11-17T00:00:00Z or JD = 2400000.5. Two PLFLT numbers + are used to specify the origin to allow users (by specifying + offset1 as an integer that can be exactly represented by a + floating-point variable and specifying + offset2 as a number in the range from 0. to 1) the chance to minimize + the numerical errors of the continuous time representation. + + offset2 (PLFLT, input) : See documentation of + offset1. + + ccontrol (PLINT, input) : ccontrol contains bits controlling the + transformation. If the 0x1 bit is set, then the proleptic Julian + calendar is used for broken-down time rather than the proleptic + Gregorian calendar. If the 0x2 bit is set, then leap seconds that + have been historically used to define UTC are inserted into the + broken-down time. Other possibilities for additional control bits + for ccontrol exist such as making the historical time corrections + in the broken-down time corresponding to ET (ephemeris time) or + making the (slightly non-constant) corrections from international + atomic time (TAI) to what astronomers define as terrestrial time + (TT). But those additional possibilities have not been + implemented yet in the qsastime library (one of the PLplot utility + libraries). + + ifbtime_offset (PLBOOL, input) : ifbtime_offset controls how the + epoch of the continuous time scale is specified by the user. If + ifbtime_offset is false, then + offset1 and + offset2 are used to specify the epoch, and the following broken-down + time parameters are completely ignored. If + ifbtime_offset is true, then + offset1 and + offset2 are completely ignored, and the following broken-down time + parameters are used to specify the epoch. + + year (PLINT, input) : Year of epoch. + + month (PLINT, input) : Month of epoch in range from 0 (January) to + 11 (December). + + day (PLINT, input) : Day of epoch in range from 1 to 31. + + hour (PLINT, input) : Hour of epoch in range from 0 to 23 + + min (PLINT, input) : Minute of epoch in range from 0 to 59. + + sec (PLFLT, input) : Second of epoch in floating range from 0. to + 60. +") +plconfigtime; + %feature( "docstring", "Contour plot DESCRIPTION: - Draws a contour plot of the data in z[ + Draws a contour plot of the data in f[ nx][ ny], using the nlevel contour levels specified by clevel. Only the region of the array from kx to lx and from ky to ly is plotted out. A @@ -859,11 +1006,11 @@ information. Redacted form: [PLEASE UPDATE! ONLY PERL INFO IS LIKELY CORRECT!] F95: - plcont(z, kx, lx, ky, ly, clevel, tr?) or plcont(z, kx, lx, ky, ly, + plcont(f, kx, lx, ky, ly, clevel, tr?) or plcont(f, kx, lx, ky, ly, clevel, xgrid, ygrid) - Java: pls.cont(z, kx, lx, ky, ly, clevel, xgrid, ygrid) - Perl/PDL: plcont(z, kx, lx, ky, ly, clevel, pltr, pltr_data) - Python: plcont2(z, kx, lx, ky, ly, clevel) + Java: pls.cont(f, kx, lx, ky, ly, clevel, xgrid, ygrid) + Perl/PDL: plcont(f, kx, lx, ky, ly, clevel, pltr, pltr_data) + Python: plcont2(f, kx, lx, ky, ly, clevel) This function is used in examples 9,14,16,22. @@ -872,27 +1019,27 @@ SYNOPSIS: -plcont(z, nx, ny, kx, lx, ky, ly, clevel, nlevel, pltr, pltr_data) +plcont(f, nx, ny, kx, lx, ky, ly, clevel, nlevel, pltr, pltr_data) ARGUMENTS: - z (PLFLT **, input) : Pointer to a vectored two-dimensional array - containing data to be contoured. + f (const PLFLT * const *, input) : Pointer to a vectored + two-dimensional array containing data to be contoured. - nx, ny (PLINT, input) : Physical dimensions of array z. + nx, ny (PLINT, input) : Physical dimensions of array f. kx, lx (PLINT, input) : Range of x indices to consider. ky, ly (PLINT, input) : Range of y indices to consider. - clevel (PLFLT *, input) : Pointer to array specifying levels at - which to draw contours. + clevel (const PLFLT *, input) : Pointer to array specifying levels + at which to draw contours. nlevel (PLINT, input) : Number of contour levels to draw. pltr (void (*) (PLFLT, PLFLT, PLFLT *, PLFLT *, PLPointer) , input) : Pointer to function that defines transformation between indices - in array z and the world coordinates (C only). Transformation + in array f and the world coordinates (C only). Transformation functions are provided in the PLplot library: pltr0 for identity mapping, and pltr1 and pltr2 for arbitrary mappings respectively defined by one- and two-dimensional arrays. In addition, @@ -908,7 +1055,11 @@ information to pltr0, pltr1, pltr2, or whatever routine that is externally supplied. ") +#ifdef SWIG_OCTAVE +my_plcont; +#else plcont; +#endif %feature( "docstring", "Copy state parameters from the reference stream to the current stream @@ -944,6 +1095,58 @@ ") plcpstrm; +%feature( "docstring", "Calculate continuous time from broken-down time for the current stream + +DESCRIPTION: + + Calculate continuous time, ctime, from broken-down time for the + current stream. The broken-down + time is specified by the following parameters: year, month, day, hour, + min, and sec. This function is the inverse of plbtime. + + The PLplot definition of broken-down time is a calendar time that + completely ignores all time zone offsets, i.e., it is the user's + responsibility to apply those offsets (if so desired) before using the + PLplot time API. By default broken-down time is defined using the + proleptic Gregorian calendar without the insertion of leap seconds and + continuous time is defined as the number of seconds since the Unix + epoch of 1970-01-01T00:00:00Z. However, other definitions of + broken-down and continuous time are possible, see plconfigtime which + specifies that transformation for the current stream. + + Redacted form: General: plctime(year, month, day, hour, min, sec, + ctime) + Perl/PDL: Not available? + + + This function is used in example 29. + + + +SYNOPSIS: + +plctime(year, month, day, hour, min, sec, ctime) + +ARGUMENTS: + + year (PLINT, input) : Input year. + + month (PLINT, input) : Input month in range from 0 (January) to 11 + (December). + + day (PLINT, input) : Input day in range from 1 to 31. + + hour (PLINT, input) : Input hour in range from 0 to 23 + + min (PLINT, input) : Input minute in range from 0 to 59. + + sec (PLFLT, input) : Input second in floating range from 0. to 60. + + ctime (PLFLT *, output) : Continous time calculated from the + broken-down time specified by the previous parameters. +") +plctime; + %feature( "docstring", "End plotting session DESCRIPTION: @@ -987,7 +1190,7 @@ ") plend1; -%feature( "docstring", "Same as plenv but if in multiplot mode does not advance the subpage, instead clears it. +%feature( "docstring", "Same as plenv but if in multiplot mode does not advance the subpage, instead clears it DESCRIPTION: @@ -1225,14 +1428,14 @@ n (PLINT, input) : Number of error bars to draw. - xmin (PLFLT *, input) : Pointer to array with x coordinates of - left-hand endpoint of error bars. + xmin (const PLFLT *, input) : Pointer to array with x coordinates + of left-hand endpoint of error bars. - xmax (PLFLT *, input) : Pointer to array with x coordinates of - right-hand endpoint of error bars. + xmax (const PLFLT *, input) : Pointer to array with x coordinates + of right-hand endpoint of error bars. - y (PLFLT *, input) : Pointer to array with y coordinates of error - bar. + y (const PLFLT *, input) : Pointer to array with y coordinates of + error bar. ") plerrx; @@ -1261,14 +1464,14 @@ n (PLINT, input) : Number of error bars to draw. - x (PLFLT *, input) : Pointer to array with x coordinates of error - bars. + x (const PLFLT *, input) : Pointer to array with x coordinates of + error bars. - ymin (PLFLT *, input) : Pointer to array with y coordinates of - lower endpoint of error bars. + ymin (const PLFLT *, input) : Pointer to array with y coordinates + of lower endpoint of error bars. - ymax (PLFLT *, input) : Pointer to array with y coordinate of upper - endpoint of error bar. + ymax (const PLFLT *, input) : Pointer to array with y coordinate of + upper endpoint of error bar. ") plerry; @@ -1315,10 +1518,10 @@ n (PLINT, input) : Number of vertices in polygon. - x (PLFLT *, input) : Pointer to array with x coordinates of + x (const PLFLT *, input) : Pointer to array with x coordinates of vertices. - y (PLFLT *, input) : Pointer to array with y coordinates of + y (const PLFLT *, input) : Pointer to array with y coordinates of vertices. ") plfill; @@ -1349,13 +1552,13 @@ n (PLINT, input) : Number of vertices in polygon. - x (PLFLT *, input) : Pointer to array with x coordinates of + x (const PLFLT *, input) : Pointer to array with x coordinates of vertices. - y (PLFLT *, input) : Pointer to array with y coordinates of + y (const PLFLT *, input) : Pointer to array with y coordinates of vertices. - z (PLFLT *, input) : Pointer to array with z coordinates of + z (const PLFLT *, input) : Pointer to array with z coordinates of vertices. ") plfill3; @@ -1386,7 +1589,7 @@ affects symbols produced by plpoin. This routine has no effect unless the extended character set is loaded (see plfontld). - Redacted form: plfont(font) + Redacted form: plfont(ifont) This function is used in examples 1,2,4,7,13,24,26. @@ -1394,11 +1597,11 @@ SYNOPSIS: -plfont(font) +plfont(ifont) ARGUMENTS: - font (PLINT, input) : Specifies the font: 1: Normal font (simplest + ifont (PLINT, input) : Specifies the font: 1: Normal font (simplest and fastest) 2: Roman font 3: Italic font @@ -1413,7 +1616,7 @@ Sets the character set to use for subsequent character drawing. May be called before initializing PLplot. - Redacted form: plfontld(set) + Redacted form: plfontld(fnt) This function is used in examples 1,7. @@ -1421,11 +1624,11 @@ SYNOPSIS: -plfontld(set) +plfontld(fnt) ARGUMENTS: - set (PLINT, input) : Specifies the character set to load: 0: + fnt (PLINT, input) : Specifies the character set to load: 0: Standard character set 1: Extended character set ") @@ -1456,14 +1659,41 @@ ") plgchr; -%feature( "docstring", "Returns 8-bit RGB values for given color from color map0 +%feature( "docstring", "Get the cmap1 argument range for continuous color plots DESCRIPTION: - Returns 8-bit RGB values (0-255) for given color from color map0 (see - the PLplot documentation). Values are negative if an invalid color id - is given. + Get the cmap1 argument range for continuous color plots. (Use + plgsmap1_range to set the cmap1 argument range.) + Redacted form: plgcmap1_range(min_color, max_color) + + This function is currently not used in any example. + + + +SYNOPSIS: + +plgcmap1_range(min_color, max_color) + +ARGUMENTS: + + min_color (PLFLT *, output) : Pointer to the current minimum cmap1 + floating point argument. + + max_color (PLFLT *, output) : Pointer to the current maximum cmap1 + floating point argument. +") +plgcmap1_range; + +%feature( "docstring", "Returns 8-bit RGB values for given color index from cmap0 + +DESCRIPTION: + + Returns 8-bit RGB values (0-255) for given color from cmap0 (see the + PLplot documentation). Values are negative if an invalid color id is + given. + Redacted form: plgcol0(icol0, r, g, b) This function is used in example 2. @@ -1486,13 +1716,13 @@ ") plgcol0; -%feature( "docstring", "Returns 8-bit RGB values and double alpha value for given color from color map0. +%feature( "docstring", "Returns 8-bit RGB values and double alpha transparency value for given color index from cmap0 DESCRIPTION: - Returns 8-bit RGB values (0-255) and double alpha value (0.0 - 1.0) - for given color from color map0 (see the PLplot documentation). - Values are negative if an invalid color id is given. + Returns 8-bit RGB values (0-255) and double alpha transparency value + (0.0 - 1.0) for given color from cmap0 (see the PLplot + documentation). Values are negative if an invalid color id is given. This function is used in example 30. @@ -1500,7 +1730,7 @@ SYNOPSIS: -plgcol0a(icol0, r, g, b, a) +plgcol0a(icol0, r, g, b, alpha) ARGUMENTS: @@ -1512,7 +1742,8 @@ b (PLINT *, output) : Pointer to 8-bit blue value. - a (PLFLT *, output) : Pointer to PLFLT alpha value. + alpha (PLFLT *, output) : Pointer to PLFLT alpha transparency + value. ") plgcol0a; @@ -1545,12 +1776,12 @@ ") plgcolbg; -%feature( "docstring", " Returns the background color (cmap0[0]) by 8-bit RGB value and double alpha value. +%feature( "docstring", " Returns the background color (cmap0[0]) by 8-bit RGB value and double alpha transparency value DESCRIPTION: Returns the background color (cmap0[0]) by 8-bit RGB value and double - alpha value. + alpha transparency value. This function is used in example 31. @@ -1558,7 +1789,7 @@ SYNOPSIS: -plgcolbga(r, g, b, a) +plgcolbga(r, g, b, alpha) ARGUMENTS: @@ -1571,7 +1802,8 @@ b (PLINT *, output) : Pointer to an unsigned 8-bit integer (0-255) representing the degree of blue in the color. - a (PLFLT *, output) : Pointer to PLFLT alpha value. + alpha (PLFLT *, output) : Pointer to PLFLT alpha transparency + value. ") plgcolbga; @@ -1711,6 +1943,30 @@ ") plgdiplt; +%feature( "docstring", "Get drawing mode (depends on +device support!) + +DESCRIPTION: + + Get drawing mode. Note only one device driver (cairo) currently + supports this at the moment, and for that case the PLINT value + returned by this function is one of PL_DRAWMODE_DEFAULT, + PL_DRAWMODE_REPLACE, PL_DRAWMODE_XOR, or PL_DRAWMODE_UNKNOWN. This + function returns PL_DRAWMODE_UNKNOWN for the rest of the device + drivers. See also plsdrawmode. + + Redacted form: plgdrawmode() + + This function is used in example 34. + + + +SYNOPSIS: + +plgdrawmode() +") +plgdrawmode; + %feature( "docstring", "Get family file parameters DESCRIPTION: @@ -1718,7 +1974,7 @@ Gets information about current family file, if familying is enabled. See the PLplot documentation for more information. - Redacted form: plgfam(fam, num, bmax) + Redacted form: plgfam(p_fam, p_num, p_bmax) This function is used in examples 14,31. @@ -1726,18 +1982,18 @@ SYNOPSIS: -plgfam(fam, num, bmax) +plgfam(p_fam, p_num, p_bmax) ARGUMENTS: - fam (PLINT *, output) : Pointer to variable with the Boolean family - flag value. If nonzero, familying is enabled. + p_fam (PLINT *, output) : Pointer to variable with the Boolean + family flag value. If nonzero, familying is enabled. - num (PLINT *, output) : Pointer to variable with the current family - file number. + p_num (PLINT *, output) : Pointer to variable with the current + family file number. - bmax (PLINT *, output) : Pointer to variable with the maximum file - size (in bytes) for a family file. + p_bmax (PLINT *, output) : Pointer to variable with the maximum + file size (in bytes) for a family file. ") plgfam; @@ -1748,7 +2004,7 @@ Gets information about the current font using the FCI approach. See the PLplot documentation for more information. - Redacted form: plgfci(fci) + Redacted form: plgfci(p_fci) This function is used in example 23. @@ -1756,11 +2012,11 @@ SYNOPSIS: -plgfci(fci) +plgfci(p_fci) ARGUMENTS: - fci (PLUNICODE *, output) : Pointer to PLUNICODE (unsigned 32-bit + p_fci (PLUNICODE *, output) : Pointer to PLUNICODE (unsigned 32-bit integer) variable which is updated with current FCI value. ") plgfci; @@ -1862,7 +2118,7 @@ instance: screen drivers will usually interpret them as number of pixels, whereas printer drivers will usually use mm. - Redacted form: plgpage(xp, yp, xleng, yleng, xoff, yoff) + Redacted form: plgpage(p_xp, p_yp, p_xleng, p_yleng, p_xoff, p_yoff) This function is used in examples 14 and 31. @@ -1870,21 +2126,22 @@ SYNOPSIS: -plgpage(xp, yp, xleng, yleng, xoff, yoff) +plgpage(p_xp, p_yp, p_xleng, p_yleng, p_xoff, p_yoff) ARGUMENTS: - xp (PLFLT *, output) : Pointer to number of pixels/inch (DPI), x. + p_xp (PLFLT *, output) : Pointer to number of pixels/inch (DPI), x. - yp (PLFLT *, output) : Pointer to number of pixels/inch (DPI) in y. + p_yp (PLFLT *, output) : Pointer to number of pixels/inch (DPI) in + y. - xleng (PLINT *, output) : Pointer to x page length value. + p_xleng (PLINT *, output) : Pointer to x page length value. - yleng (PLINT *, output) : Pointer to y page length value. + p_yleng (PLINT *, output) : Pointer to y page length value. - xoff (PLINT *, output) : Pointer to x page offset. + p_xoff (PLINT *, output) : Pointer to x page offset. - yoff (PLINT *, output) : Pointer to y page offset. + p_yoff (PLINT *, output) : Pointer to y page offset. ") plgpage; @@ -1948,10 +2205,10 @@ n (PLINT, input) : Number of vertices in polygon. - x (PLFLT *, input) : Pointer to array with x coordinates of + x (const PLFLT *, input) : Pointer to array with x coordinates of vertices. - y (PLFLT *, input) : Pointer to array with y coordinates of + y (const PLFLT *, input) : Pointer to array with y coordinates of vertices. angle (PLFLT, input) : Angle (degrees) of gradient vector from x @@ -1983,28 +2240,28 @@ SYNOPSIS: -plggriddata(x, y, z, npts, xg, nptsx, yg, nptsy, zg, type, data) +plgriddata(x, y, z, npts, xg, nptsx, yg, nptsy, zg, type, data) ARGUMENTS: - x (PLFLT *, input) : The input x array. + x (const PLFLT *, input) : The input x array. - y (PLFLT *, input) : The input y array. + y (const PLFLT *, input) : The input y array. - z (PLFLT *, input) : The input z array. Each triple x[i], y[i], - z[i] represents one data sample coordinate. + z (const PLFLT *, input) : The input z array. Each triple x[i], + y[i], z[i] represents one data sample coordinate. npts (PLINT, input) : The number of data samples in the x, y and z arrays. - xg (PLFLT *, input) : The input array that specifies the grid + xg (const PLFLT *, input) : The input array that specifies the grid spacing in the x direction. Usually xg has nptsx equally spaced values from the minimum to the maximum values of the x input array. nptsx (PLINT, input) : The number of points in the xg array. - yg (PLFLT *, input) : The input array that specifies the grid + yg (const PLFLT *, input) : The input array that specifies the grid spacing in the y direction. Similar to the xg parameter. nptsy (PLINT, input) : The number of points in the yg array. @@ -2036,7 +2293,11 @@ GRID_NNI, only weights greater than data will be accepted. If 0, all weights will be accepted. ") +#ifdef SWIG_OCTAVE +my_plgriddata; +#else plgriddata; +#endif %feature( "docstring", "Get current subpage parameters @@ -2079,7 +2340,7 @@ Gets the number of the current output stream. See also plsstrm. - Redacted form: plgstrm(strm) + Redacted form: plgstrm(p_strm) This function is used in example 1,20. @@ -2087,11 +2348,11 @@ SYNOPSIS: -plgstrm(strm) +plgstrm(p_strm) ARGUMENTS: - strm (PLINT *, output) : Pointer to current stream value. + p_strm (PLINT *, output) : Pointer to current stream value. ") plgstrm; @@ -2191,12 +2452,12 @@ DESCRIPTION: - Returns current values of the digmax and digits flags for the x axis. - digits is updated after the plot is drawn, so this routine should only - be called after the call to plbox (or plbox3) is complete. See the - PLplot documentation for more information. + Returns current values of the p_digmax and p_digits flags for the x + axis. p_digits is updated after the plot is drawn, so this routine + should only be called after the call to plbox (or plbox3) is complete. + See the PLplot documentation for more information. - Redacted form: plgxax(digmax, digits) + Redacted form: plgxax(p_digmax, p_digits) This function is used in example 31. @@ -2204,16 +2465,16 @@ SYNOPSIS: -plgxax(digmax, digits) +plgxax(p_digmax, p_digits) ARGUMENTS: - digmax (PLINT *, output) : Pointer to variable with the maximum + p_digmax (PLINT *, output) : Pointer to variable with the maximum number of digits for the x axis. If nonzero, the printed label has been switched to a floating point representation when the - number of digits exceeds digmax. + number of digits exceeds p_digmax. - digits (PLINT *, output) : Pointer to variable with the actual + p_digits (PLINT *, output) : Pointer to variable with the actual number of digits for the numeric labels (x axis) from the last plot. ") @@ -2226,7 +2487,7 @@ Identical to plgxax, except that arguments are flags for y axis. See the description of plgxax for more detail. - Redacted form: plgyax(digmax, digits) + Redacted form: plgyax(p_digmax, p_digits) This function is used in example 31. @@ -2234,16 +2495,16 @@ SYNOPSIS: -plgyax(digmax, digits) +plgyax(p_digmax, p_digits) ARGUMENTS: - digmax (PLINT *, output) : Pointer to variable with the maximum + p_digmax (PLINT *, output) : Pointer to variable with the maximum number of digits for the y axis. If nonzero, the printed label has been switched to a floating point representation when the - number of digits exceeds digmax. + number of digits exceeds p_digmax. - digits (PLINT *, output) : Pointer to variable with the actual + p_digits (PLINT *, output) : Pointer to variable with the actual number of digits for the numeric labels (y axis) from the last plot. ") @@ -2256,7 +2517,7 @@ Identical to plgxax, except that arguments are flags for z axis. See the description of plgxax for more detail. - Redacted form: plgzax(digmax, digits) + Redacted form: plgzax(p_digmax, p_digits) This function is used in example 31. @@ -2264,16 +2525,16 @@ SYNOPSIS: -plgzax(digmax, digits) +plgzax(p_digmax, p_digits) ARGUMENTS: - digmax (PLINT *, output) : Pointer to variable with the maximum + p_digmax (PLINT *, output) : Pointer to variable with the maximum number of digits for the z axis. If nonzero, the printed label has been switched to a floating point representation when the - number of digits exceeds digmax. + number of digits exceeds p_digmax. - digits (PLINT *, output) : Pointer to variable with the actual + p_digits (PLINT *, output) : Pointer to variable with the actual number of digits for the numeric labels (z axis) from the last plot. ") @@ -2304,8 +2565,8 @@ n (PLINT, input) : Number of data points. - data (PLFLT *, input) : Pointer to array with values of the n data - points. + data (const PLFLT *, input) : Pointer to array with values of the n + data points. datmin (PLFLT, input) : Left-hand edge of lowest-valued bin. @@ -2372,11 +2633,11 @@ ") plhlsrgb; -%feature( "docstring", "Plot a 2D matrix using color map1 +%feature( "docstring", "Plot a 2D matrix using cmap1 DESCRIPTION: - Plot a 2D matrix using color map1. + Plot a 2D matrix using cmap1. Redacted form: General: plimagefr(idata, xmin, xmax, ymin, ymax, zmin, zmax, valuemin, valuemax, pltr, pltr_data) @@ -2392,8 +2653,8 @@ ARGUMENTS: - idata (PLFLT**, input) : A 2D array of values (intensities) to - plot. Should have dimensions idata[nx][ny]. + idata (const PLFLT * const *, input) : A 2D array of values + (intensities) to plot. Should have dimensions idata[nx][ny]. nx, ny (PLINT, input) : Dimensions of idata @@ -2428,9 +2689,13 @@ information to pltr0, pltr1, pltr2, or whatever routine is externally supplied. ") +#ifdef SWIG_OCTAVE +my_plimagefr; +#else plimagefr; +#endif -%feature( "docstring", "Plot a 2D matrix using color map1 with automatic colour adjustment +%feature( "docstring", "Plot a 2D matrix using cmap1 with automatic colour adjustment DESCRIPTION: @@ -2452,8 +2717,8 @@ ARGUMENTS: - idata (PLFLT**, input) : A 2D array of values (intensities) to - plot. Should have dimensions idata[nx][ny]. + idata (const PLFLT * const *, input) : A 2D array of values + (intensities) to plot. Should have dimensions idata[nx][ny]. nx, ny (PLINT, input) : Dimensions of idata @@ -2721,7 +2986,7 @@ text_colors (const PLINT *, input) : Array of nlegend cmap0 text colors. - text (const char *const *, input) : Array of nlegend text string + text (const char * const *, input) : Array of nlegend text string annotations. box_colors (const PLINT *, input) : Array of nlegend cmap0 colors @@ -2764,7 +3029,7 @@ symbols to be drawn across the width of the plotted area ( PL_LEGEND_SYMBOL). - symbols (const char *const *, input) : Array of nlegend symbols + symbols (const char * const *, input) : Array of nlegend symbols (plpoin indices) ( PL_LEGEND_SYMBOL). ") @@ -2816,9 +3081,11 @@ n (PLINT, input) : Number of points defining line. - x (PLFLT *, input) : Pointer to array with x coordinates of points. + x (const PLFLT *, input) : Pointer to array with x coordinates of + points. - y (PLFLT *, input) : Pointer to array with y coordinates of points. + y (const PLFLT *, input) : Pointer to array with y coordinates of + points. ") plline; @@ -2845,11 +3112,14 @@ n (PLINT, input) : Number of points defining line. - x (PLFLT *, input) : Pointer to array with x coordinates of points. + x (const PLFLT *, input) : Pointer to array with x coordinates of + points. - y (PLFLT *, input) : Pointer to array with y coordinates of points. + y (const PLFLT *, input) : Pointer to array with y coordinates of + points. - z (PLFLT *, input) : Pointer to array with z coordinates of points. + z (const PLFLT *, input) : Pointer to array with z coordinates of + points. ") plline3; @@ -2860,7 +3130,7 @@ This sets the line style according to one of eight predefined patterns (also see plstyl). - Redacted form: pllsty(n) + Redacted form: pllsty(lin) This function is used in examples 9,12,22,25. @@ -2868,18 +3138,18 @@ SYNOPSIS: -pllsty(n) +pllsty(lin) ARGUMENTS: - n (PLINT, input) : Integer value between 1 and 8. Line style 1 is a - continuous line, line style 2 is a line with short dashes and + lin (PLINT, input) : Integer value between 1 and 8. Line style 1 is + a continuous line, line style 2 is a line with short dashes and gaps, line style 3 is a line with long dashes and gaps, line style 4 has long dashes and short gaps and so on. ") pllsty; -%feature( "docstring", "Plot continental outline in world coordinates. +%feature( "docstring", "Plot continental outline in world coordinates DESCRIPTION: @@ -2912,8 +3182,8 @@ the corresponding plot coordinates. If no transform is desired, mapform can be replaced by NULL. - type (char *, input) : type is a character string. The value of - this parameter determines the type of background. The possible + type (const char *, input) : type is a character string. The value + of this parameter determines the type of background. The possible values are: \"globe\" -- continental outlines \"usa\" -- USA and state boundaries \"cglobe\" -- continental outlines and countries @@ -2940,7 +3210,7 @@ ") plmap; -%feature( "docstring", "Plot latitude and longitude lines. +%feature( "docstring", "Plot latitude and longitude lines DESCRIPTION: @@ -3024,14 +3294,14 @@ ARGUMENTS: - x (PLFLT *, input) : Pointer to set of x coordinate values at which - the function is evaluated. + x (const PLFLT *, input) : Pointer to set of x coordinate values at + which the function is evaluated. - y (PLFLT *, input) : Pointer to set of y coordinate values at which - the function is evaluated. + y (const PLFLT *, input) : Pointer to set of y coordinate values at + which the function is evaluated. - z (PLFLT **, input) : Pointer to a vectored two-dimensional array - with set of function values. + z (const PLFLT * const *, input) : Pointer to a vectored + two-dimensional array with set of function values. nx (PLINT, input) : Number of x values at which function is evaluated. @@ -3047,16 +3317,20 @@ opt=DRAW_LINEXY: Network of lines is drawn connecting points at which function is defined. ") +#ifdef SWIG_OCTAVE +my_plmesh; +#else plmesh; +#endif -%feature( "docstring", "Magnitude colored plot surface mesh with contour. +%feature( "docstring", "Magnitude colored plot surface mesh with contour DESCRIPTION: - Identical to plmesh but with extra functionalities: the surface mesh - can be colored accordingly to the current z value being plotted, a - contour plot can be drawn at the base XY plane, and a curtain can be - drawn between the plotted function border and the base XY plane. + A more powerful form of plmesh: the surface mesh can be colored + accordingly to the current z value being plotted, a contour plot can + be drawn at the base XY plane, and a curtain can be drawn between the + plotted function border and the base XY plane. Redacted form: plmeshc(x, y, z, opt, clevel) @@ -3070,14 +3344,14 @@ ARGUMENTS: - x (PLFLT *, input) : Pointer to set of x coordinate values at which - the function is evaluated. + x (const PLFLT *, input) : Pointer to set of x coordinate values at + which the function is evaluated. - y (PLFLT *, input) : Pointer to set of y coordinate values at which - the function is evaluated. + y (const PLFLT *, input) : Pointer to set of y coordinate values at + which the function is evaluated. - z (PLFLT **, input) : Pointer to a vectored two-dimensional array - with set of function values. + z (const PLFLT * const *, input) : Pointer to a vectored + two-dimensional array with set of function values. nx (PLINT, input) : Number of x values at which function is evaluated. @@ -3104,12 +3378,16 @@ the borders of the plotted function. - clevel (PLFLT *, input) : Pointer to the array that defines the - contour level spacing. + clevel (const PLFLT *, input) : Pointer to the array that defines + the contour level spacing. nlevel (PLINT, input) : Number of elements in the clevel array. ") +#ifdef SWIG_OCTAVE +my_plmeshc; +#else plmeshc; +#endif %feature( "docstring", "Creates a new stream and makes it the default @@ -3196,7 +3474,7 @@ ") plmtex; -%feature( "docstring", "Write text relative to viewport boundaries in 3D plots. +%feature( "docstring", "Write text relative to viewport boundaries in 3D plots DESCRIPTION: @@ -3280,14 +3558,14 @@ ARGUMENTS: - x (PLFLT *, input) : Pointer to set of x coordinate values at which - the function is evaluated. + x (const PLFLT *, input) : Pointer to set of x coordinate values at + which the function is evaluated. - y (PLFLT *, input) : Pointer to set of y coordinate values at which - the function is evaluated. + y (const PLFLT *, input) : Pointer to set of y coordinate values at + which the function is evaluated. - z (PLFLT **, input) : Pointer to a vectored two-dimensional array - with set of function values. + z (const PLFLT * const *, input) : Pointer to a vectored + two-dimensional array with set of function values. nx (PLINT, input) : Number of x values at which function is evaluated. @@ -3308,19 +3586,25 @@ should be draw on the figure. If side is true sides are drawn, otherwise no sides are drawn. ") +#ifdef SWIG_OCTAVE +my_plot3d; +#else plot3d; +#endif -%feature( "docstring", "Magnitude colored plot surface with contour. +%feature( "docstring", "Magnitude colored plot surface with contour DESCRIPTION: - Identical to plot3d but with extra functionalities: the surface mesh - can be colored accordingly to the current z value being plotted, a - contour plot can be drawn at the base XY plane, and a curtain can be + Aside from dropping the + side functionality this is a more powerful form of plot3d: the surface + mesh can be colored accordingly to the current z value being plotted, + a contour plot can be drawn at the base XY plane, and a curtain can be drawn between the plotted function border and the base XY plane. The - arguments are identical to plmeshc. The only difference between - plmeshc and plot3dc is that plmeshc draws the bottom side of the - surface, while plot3dc only draws the surface as viewed from the top. + arguments are identical to those of plmeshc. The only difference + between plmeshc and plot3dc is that plmeshc draws the bottom side of + the surface, while plot3dc only draws the surface as viewed from the + top. Redacted form: General: plot3dc(x, y, z, opt, clevel) Perl/PDL: Not available? @@ -3333,9 +3617,140 @@ SYNOPSIS: plot3dc(x, y, z, nx, ny, opt, clevel, nlevel) + +ARGUMENTS: + + x (const PLFLT *, input) : Pointer to set of x coordinate values at + which the function is evaluated. + + y (const PLFLT *, input) : Pointer to set of y coordinate values at + which the function is evaluated. + + z (const PLFLT * const *, input) : Pointer to a vectored + two-dimensional array with set of function values. + + nx (PLINT, input) : Number of x values at which function is + evaluated. + + ny (PLINT, input) : Number of y values at which function is + evaluated. + + opt (PLINT, input) : Determines the way in which the surface is + represented. To specify more than one option just add the options, + e.g. DRAW_LINEXY + MAG_COLOR opt=DRAW_LINEX: Lines are drawn + showing z as a function of x for each value of y[j]. + opt=DRAW_LINEY: Lines are drawn showing z as a function of y + for each value of x[i]. + opt=DRAW_LINEXY: Network of lines is drawn connecting points + at which function is defined. + opt=MAG_COLOR: Each line in the mesh is colored according to + the z value being plotted. The color is used from the current + color map 1. + opt=BASE_CONT: A contour plot is drawn at the base XY plane + using parameters + nlevel and + clevel. + opt=DRAW_SIDES: draws a curtain between the base XY plane and + the borders of the plotted function. + + + clevel (const PLFLT *, input) : Pointer to the array that defines + the contour level spacing. + + nlevel (PLINT, input) : Number of elements in the clevel array. ") +#ifdef SWIG_OCTAVE +my_plot3dc; +#else plot3dc; +#endif +%feature( "docstring", "Magnitude colored plot surface with contour for z[x][y] with y index limits + +DESCRIPTION: + + When the implementation is completed this variant of plot3dc (see that + function's documentation for more details) should be suitable for the + case where the area of the x, y coordinate grid where z is defined can + be non-rectangular. The implementation is incomplete so the last 4 + parameters of plot3dcl; indexxmin, indexxmax, indexymin, and + indexymax; are currently ignored and the functionality is otherwise + identical to that of plot3dc. + + Redacted form: General: plot3dcl(x, y, z, opt, clevel, indexxmin, + indexymin, indexymax) + Perl/PDL: Not available? + + + This function is not used in any example. + + + +SYNOPSIS: + +plot3dcl(x, y, z, nx, ny, opt, clevel, nlevel, indexxmin, indexxmax, indexymin, indexymax) + +ARGUMENTS: + + x (const PLFLT *, input) : Pointer to set of x coordinate values at + which the function is evaluated. + + y (const PLFLT *, input) : Pointer to set of y coordinate values at + which the function is evaluated. + + z (const PLFLT * const *, input) : Pointer to a vectored + two-dimensional array with set of function values. + + nx (PLINT, input) : Number of x values at which the function is + evaluated. + + ny (PLINT, input) : Number of y values at which the function is + evaluated. + + opt (PLINT, input) : Determines the way in which the surface is + represented. To specify more than one option just add the options, + e.g. DRAW_LINEXY + MAG_COLOR opt=DRAW_LINEX: Lines are drawn + showing z as a function of x for each value of y[j]. + opt=DRAW_LINEY: Lines are drawn showing z as a function of y + for each value of x[i]. + opt=DRAW_LINEXY: Network of lines is drawn connecting points + at which function is defined. + opt=MAG_COLOR: Each line in the mesh is colored according to + the z value being plotted. The color is used from the current + color map 1. + opt=BASE_CONT: A contour plot is drawn at the base XY plane + using parameters + nlevel and + clevel. + opt=DRAW_SIDES: draws a curtain between the base XY plane and + the borders of the plotted function. + + + clevel (const PLFLT *, input) : Pointer to the array that defines + the contour level spacing. + + nlevel (PLINT, input) : Number of elements in the clevel array. + + indexxmin (PLINT, input) : The index value (which must be ≥ 0) that + corresponds to the first x index where z is defined. + + indexxmax (PLINT, input) : The index value (which must be ≤ nx) + which corresponds (by convention) to one more than the last x + index value where z is defined. + + indexymin (const PLINT *, input) : Array of y index values which + all must be ≥ 0. These values are the first y index where z is + defined for a particular x index in the range from indexxmin to + indexxmax - 1. The dimension of indexymin is indexxmax. + + indexymax (const PLINT *, input) : Array of y index values which + all must be ≤ ny. These values correspond (by convention) to one + more than the last y index where z is defined for a particular x + index in the range from indexxmin to indexxmax - 1. The dimension + of indexymax is indexxmax. +") +plot3dcl; + %feature( "docstring", "Parse command-line arguments DESCRIPTION: @@ -3381,7 +3796,7 @@ p_argc (int *, input) : pointer to number of arguments. - argv (char **, input) : Pointer to character array containing + argv (const char **, input) : Pointer to character array containing *p_argc command-line arguments. mode (PLINT, input) : Parsing mode with the following @@ -3430,17 +3845,17 @@ nlin (PLINT, input) : Number of sets of lines making up the pattern, either 1 or 2. - inc (PLINT *, input) : Pointer to array with nlin elements. + inc (const PLINT *, input) : Pointer to array with nlin elements. Specifies the line inclination in tenths of a degree. (Should be between -900 and 900). - del (PLINT *, input) : Pointer to array with nlin elements. + del (const PLINT *, input) : Pointer to array with nlin elements. Specifies the spacing in micrometers between the lines making up the pattern. ") plpat; -%feature( "docstring", "Draw a line between two points, accounting for coordinate transforms. +%feature( "docstring", "Draw a line between two points, accounting for coordinate transforms DESCRIPTION: @@ -3505,11 +3920,11 @@ n (PLINT, input) : Number of points in the x and y arrays. - x (PLFLT *, input) : Pointer to an array with X coordinates of - points. + x (const PLFLT *, input) : Pointer to an array with X coordinates + of points. - y (PLFLT *, input) : Pointer to an array with Y coordinates of - points. + y (const PLFLT *, input) : Pointer to an array with Y coordinates + of points. code (PLINT, input) : Hershey symbol code (in \"ascii-indexed\" form with -1 <= code <= 127) corresponding to a glyph to be plotted at @@ -3547,14 +3962,14 @@ n (PLINT, input) : Number of points in the x and y arrays. - x (PLFLT *, input) : Pointer to an array with X coordinates of - points. + x (const PLFLT *, input) : Pointer to an array with X coordinates + of points. - y (PLFLT *, input) : Pointer to an array with Y coordinates of - points. + y (const PLFLT *, input) : Pointer to an array with Y coordinates + of points. - z (PLFLT *, input) : Pointer to an array with Z coordinates of - points. + z (const PLFLT *, input) : Pointer to an array with Z coordinates + of points. code (PLINT, input) : Hershey symbol code (in \"ascii-indexed\" form with -1 <= code <= 127) corresponding to a glyph to be plotted at @@ -3600,15 +4015,18 @@ n (PLINT, input) : Number of points defining line. - x (PLFLT *, input) : Pointer to array with x coordinates of points. + x (const PLFLT *, input) : Pointer to array with x coordinates of + points. - y (PLFLT *, input) : Pointer to array with y coordinates of points. + y (const PLFLT *, input) : Pointer to array with y coordinates of + points. - z (PLFLT *, input) : Pointer to array with z coordinates of points. + z (const PLFLT *, input) : Pointer to array with z coordinates of + points. - draw (PLBOOL *, input) : Pointer to array which controls drawing - the segments of the polygon. If draw[i] is true, then the polygon - segment from index [i] to [i+1] is drawn, otherwise, not. + draw (const PLBOOL *, input) : Pointer to array which controls + drawing the segments of the polygon. If draw[i] is true, then the + polygon segment from index [i] to [i+1] is drawn, otherwise, not. ifcc (PLBOOL, input) : If ifcc is true the directionality of the polygon is determined by assuming the points are laid out in a @@ -3624,7 +4042,7 @@ Sets the number of places after the decimal point in numeric labels. - Redacted form: plprec(set, prec) + Redacted form: plprec(setp, prec) This function is used in example 29. @@ -3632,14 +4050,14 @@ SYNOPSIS: -plprec(set, prec) +plprec(setp, prec) ARGUMENTS: - set (PLINT, input) : If set is equal to 0 then PLplot automatically - determines the number of places to use after the decimal point in - numeric labels (like those used to label axes). If set is 1 then - prec se... [truncated message content] |