While trying to produce some research plots of my own I discovered that plstyl does not work correctly in the octave bindings. The definition of the function bindings/octave/plplot_octave.h.in is wrong. As a result the mark and space arguments are not treated as arrays and you have to explicitly pass the nms parameter. Of course this works fine for cases where nms is 0 or 1 and so mark and space are not arrays. Unfortunately this covers all the plplot examples and so this has not been picked up before.
The change to "fix" this is relatively simple - just add //%input mark(nms), space(nms) to the end of the function definition, however 1) It removes the nms argument so this is an interface change. 2) It is no longer possible to pass zero length arrays of mark / space lengths, which is the recommended way to reset to a continuous line. I tried it but the octave bindings don't seem to treat [] as of zero length. I don't understand this since size([]) in octave does produce 0. Any octave gurus out there able to help? Any similar problems with other bindings which use array length to get dimensions? Andrew P.S. As an aside, it would be nice to include an example of using plstyl with an array in the demos to test this feature. I would also be useful to illustrate it's use. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel