|
From: Thomas S. <t.s...@fz...> - 2011-06-25 08:56:47
|
you need to set the xranges for the whole range your x-axis is covering - including the intervall which is use by "the other" plot. if the log. part of the plot should cover 1/4 of the x-axis, then the linear xrange needs to start from -400. the log. range then should end at "10**(4*log(200))". ... set xrange [-400:2000] set xtics 200,100,2000 ... set log x set xrange [1:1.6e9] set xtics 1,10,200 chris1234 wrote: > > 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. > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense.. > http://p.sf.net/sfu/splunk-d2d-c1 > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://old.nabble.com/problem-combining-log-scale-and-linear-scale-on-same-x-axis-tp31924325p31925179.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |