|
From: Nigel N. <nN...@au...> - 2005-11-03 12:47:57
|
On 3 Nov 2005 Hernan Gonzalo Asorey wrote > Hi! You could do this in C or C++ using some of the avalaibles > libraries for c-gnuplot (try to look in google), or using fopen. > Otherwise, you can do it the same in perl, printing the gnuplot > script, and execute gnuplot using "exec". >=20 >=20 > On 11/2/05 <br...@ph...> wrote: > Max Velasques wrote: > > > I need to make some plots in 3D where I want to let the gnuplot=20 > > to find the better range for the X and Y axis, and after that=20 > > if the Xrange is bigger than Yrange I need to set Yrange=3DXrange. > > Or if Yrange is bigger than Xrange I need to set Xrange=3DYrange. > >=20 > > Exist some way of doing this? > > No. If you need to do this, be prepared to do it from outside=20 > gnuplot. A few changes to the main driver in plot.c allows one to build=20 gnuplot as a library, then one can drive gnuplot from a thread=20 within the address space of a sophisticated GUI, setting ranges=20 programmatically. Add a list box to store command history and=20 you get a native, lightweight, in-proc replacement for ye olde=20 console. Only hitch to this solution is (was?) the existence=20 of a few globals that in effect limit the GUI to manipulating=20 a single plot. I hope to get back to exploring this (using wxWidgets) over=20 the Christmas period. Nigel |