|
From: Petr M. <mi...@ph...> - 2006-10-04 12:06:29
|
> I'm trying to experiment with 'linked axes' in gnuplot. Rather than
> delving straight into the code (right away) I first want to test a few
> things by making a 'linked axes' simple script that controls gnuplot. To
> make it work, I need to know the positions at which gnuplot will (or has
> chosen to) place tics marks on the x1 axis. Is is possible to extract this
> data using gnuplot?
Would it suffice to have GPVAL_X_TICS_FROM, GPVAL_X_TICS_TO,
GPVAL_Y_TICS_FROM, etc.?
> Alternatively a more general approach: is there a command line function
> were I can pass in a column of data (text file) upon which it will return
> the location of where gnuplot with place tic marks? Would such a funciton
> be simple for anyone here to quickly pull together. It would take me quite
> a while to get use to the gnuplot code base to do so.
set macros
a=system("echo '1,2,4,8,16,32,64,128,256,512,1024'") # or cat a file
set xtics (@a)
plot x
---
PM
|