From: Geoffrey F. <fu...@ga...> - 2002-05-19 04:52:24
|
Hi, I looked at this tonight, but I'm afraid I don't see clearly what you are driving at. What would you like to be able to write? Java has an ArrayList which may be what you're after, if I'm guessing right. I have not every written back-end JNI code to extract data from an ArrayList. But I probably need to work through this exercise at some point. Alan W. Irwin writes: > Update of /cvsroot/plplot/plplot/examples/java > In directory usw-pr-cvs1:/tmp/cvs-serv31421 > > Modified Files: > x09.java > Log Message: > Make this example (using nowrap approach) give consistent results with > the equivalent python example, xw09.py. > > Also work around long-standing clevelpos and clevelneg problem where their > size was not correct. The workaround is to allocate the correct size in > advance (an extremely clumsy and error-prone method since the number of > positive and negative contours depends very much on the data range), but the > proper solution is to use a dynamically allocated array. I think those are > probably called vectors in java, but I know no more than that. > > Geoffrey, can you fix this properly? Look for "Geoffrey" in comments! > > This nowrap approach gives identical results to python example, but the > plan is to change to the wrap approach as soon as wrap is debugged in > javabind.c. > > > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > the hardware. You get the recognition. Email Us: ban...@so... > _______________________________________________ > Plplot-cvs mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-cvs |