|
From: Daniel J S. <dan...@ie...> - 2006-01-01 04:45:12
|
Ethan A Merritt wrote: I said wait. :-) Read on... > On Saturday 31 December 2005 06:43 pm, Daniel J Sebald wrote: > > >>1) It would be nice if looping could be done without requiring two >>files. > > > It can, although the lack of if/else/endif blocks makes it ugly: > > if (!defined(i)) foo = foo0 > if (!defined(i)) baz = baz0 > if (!defined(i)) i = 0 > i = i + 1 > ... do lots of stuff > reread OK, that sort of works. I didn't think of defined(). But what if i happens to be defined already upon loading such a script and the user doesn't realize it? It could run without complaints but not produce the desired results. > > >>2) Modulo (%) doesn't seem to work with negative numbers. Shouldn't it? > > > Works for me: > > gnuplot> > gnuplot> print 9 % 8 > 1 > gnuplot> print -9 % 8 > -1 > gnuplot> > > Or were you expecting -9 % 8 to be 7? Yes, I guess that is what I was expecting--something in the set of integers [0,7], related to modular arithmetic. Also, Octave generates 7. The reason this came about is that to get the globe from your world2.dem demo to rotate in the right direction requires a -10 increment in the z rotation. The modular math as it is means eventually a negative value results and gnuplot complains about that view angle "must be between 0 and 360". I solved this of course by making the increment 350 degrees. > > >>3) We've got to combine the layout and border behavior for 2D and 3D >>plots. > > > Good luck! I don't think it should be too difficult to do that anymore. I seem to recall unifying those a bit already. Definitely post 4.1. Dan |