Fix some string, off-by-one, and other logic errors so that this example gives results that are consistent (except for upper-case hexadecimal output which I haven't solved yet) with the corresponding C example.
Fix some string, off-by-one, and other logic errors so that this example
gives results that are consistent (except for upper-case hexadecimal output
which I haven't solved yet) with the corresponding C example.

svn path=/trunk/; revision=6524

FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot