From: Geoffrey F. <fu...@ga...> - 2001-10-24 23:39:14
|
Alan W. Irwin writes: > On Wed, 24 Oct 2001, Geoffrey Furnish wrote: > > > ....thanks for offering. If you would Java-ize the > > remaining unimplemented C examples, perhaps just leaving the > > unimplemented PLplot calls commented out, and check them in, then I > > could just focus on implementing the needed API functions, uncomment > > one or two lines, and see the examples fully implemented. That would > > definitely be a big help. > > OK. > > Geoffrey, while looking at the current java examples to see what I could do, > I noticed a lot of floats. Won't those give us intermachine comparison > trouble unless they are all changed to double? I plead ignorance. If you think they should be doubles, feel free to make them doubles. That would certainly allow elilmination of some hideous casts, which is why some of the later examples have things in double instead of float. I'm just blundering along on this one. > I looked at x09.java, but it is currently too tough for me to infer > what to do. That may change as I gain a bit more experience with other, > hopefully easier examples. > > Finally, I did find an easy one I could do; x11.java was just a > straightforward modification of x08.java. Note, I know virtually nothing > about java programming (total programming time in java is now up to one half > hour...;-)), but I inferred what had to be done from x08.java and a context > diff between x08c.c and x11c.c, and the x11.java result I just checked in > seems to work well. To finish it, you only need to define the pls.mesh API > and change x11.java to replace the temporary use of pls.plot3d with > pls.mesh. It's easy going. Think of C++-- and you'll get the basic idea. |