|
From: christophe p. <chr...@gm...> - 2011-06-25 03:11:02
|
Hello, i tried to inspire me from this post :" http://old.nabble.com/How-to-combine-a-linear-range-and-log-scale-range-in-the-same-X-axis--td31481340.html" in order to have a log scale for a range of my data between 1:200 and a linear scale for a range between 200:2000. I still can't get it, here is the script i use : ----------------------------------------------------------- set multiplot set xrange [200:2000] set xtics 200,100,2000 set style line 1 linecolor rgb "black" set key width 1.5 height 1 box linestyle 1 plot './test_scalCls_Om_0.3_Ol_07.dat' u ($1>=200?$1:0/0):2 w l ti "{/Symbol W}_{m}=0.3 {/Symbol W}_{/Symbol L}=0.7",\ "./test_neutrino_scalCls.dat" u ($1>=200?$1:0/0):2 w l ti "{/Symbol W}_{/Symbol n}=0.12",\ "./test_a_little_quintessence_scalCls.dat" u ($1>=200?$1:0/0):2 w l ti "{/Symbol W}_{Q}=0.12",\ "./wmap_7y.dat" u ($1>=200?$1:0/0):2 w l ti "wmap data"; set xrange [1:200] set log x set xtics 1,10 plot './test_scalCls_Om_0.3_Ol_07.dat' u ($1<=200?$1:0/0):2 w l ti "{/Symbol W}_{m}=0.3 {/Symbol W}_{/Symbol L}=0.7",\ "./test_neutrino_scalCls.dat" u ($1<=200?$1:0/0):2 w l ti "{/Symbol W}_{/Symbol n}=0.12",\ "./test_a_little_quintessence_scalCls.dat" u ($1<=200?$1:0/0):2 w l ti "{/Symbol W}_{Q}=0.12",\ "./wmap_7y.dat" u ($1<=200?$1:0/0):2 w l ti "wmap data"; unset multiplot ------------------------------------------------- the problem is these two scales are mixing each others, i have only the total range from 1 to 2000, and the two plots overlap. I tried to plot firstly the log scale ( from 1 to 200) and after the linear scale ( from 200 to 2000) but it still doesn't work. If someone could help me ... Regards. |