I'm having a bit of trouble understanding the allowed (or rather, intended) range of integers in the argument to plpsty. The docs (on the web) say, "Select one of eight predefined area fill patterns to use". It further says, "Pattern 1 consists of horizontal lines, pattern 2 consists of vertical lines, pattern 3 consists of lines at 45 degrees angle (upward), and so on."
So one might assume that the range is 1 to 8. But there is contradictory use in the examples. For example, x12c.c, x16c.c, and x25c.c have lines plsty(0). But examples x13c.c and x15c.c have the lines plpsty((i + 3) % 8 + 1) and plpsty((i + 2) % 8 + 1), indicating a range of 1 to 8. In writing the Ada bindings, I like to put range checks on things which is why this has turned up. Obviously I could put the range at 0 to 8 but if that is allowed then the docs need to be changed. Jerry ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel