you could define the x2tic labels by hand (or generate them with a
program.
e.g. for a xaxis range [1:100] you could set:
set x2range [1:100]
set x2tics (sprintf("%.4f",1./10.) 10, sprintf("%.4f",1./20.) 20, \
sprintf("%.4f",1./30.) 30, sprintf("%.4f",1./40.) 40, \
sprintf("%.4f",1./50.) 50, sprintf("%.4f",1./60.) 60, \
sprintf("%.4f",1./70.) 70, sprintf("%.4f",1./80.) 80, \
sprintf("%.4f",1./90.) 90, sprintf("%.4f",1./100.) 100)
fredfriend wrote:
>
> Hi,
>
> Is there a way within gnuplot (>=4.3) to put the inverse of the x axis
> values on the x2 axis?
>
> set x2range [1/xmin : 1xmax] doesn't work, because it still does a
> linear relation of the points in between these two extremes. I would need
> THE WHOLE x2 axis as an inverse.
>
> The only work around I can think of is to add another column to the data
> file with a value of 1/x for all the rows (i.e. all x axis values) and do
> a plot "datafile" u 1:2:x2ticlabels(column) but this can only put
> tickmarks where the data points are, and nothing in between.
>
> any suggestions?
>
> thanks!
>
>
--
View this message in context: http://www.nabble.com/temperature-on-x-axis-and-corresponding-inverse-temperature-on-x2-axis-tp23619762p23623974.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|