gnuplot - values at x-axis fall in between xtics -


i trying plot graph x-values fall in between xtics.

for example, want xtics

c72 c73 c74 c75 c76 c77 c78 c79 c80 c81

and points fall in between c72 c73 ; c73 c74 ; c74 c75 ; , on.

my data points

>  2.5  0.17509   c72   >  3.5  0.220434  c73    >  4.5  0.164918  c74   >  5.5  0.172477  c75    >  6.5  0.156145  c76   >  7.5  0.171699  c77    >  8.5  0.165199  c78    >  9.5  0.191207  c79    > 10.5  0.211656  c80   > 11.5  0.202233  c81   

i used xticlabels() in script definitions below:

#output     set terminal pngcairo size 650,450 enhanced dash set output "xplot_gauche_malto-thermo.png" set style line 4 lt 4 lw 10 # please disable pause -1   #micro set macro labelfont="font 'arial,22'" scalefont="font 'arial,18'" scalefont2="font 'arial,18'" keyfont="font 'arial,18'"  # axis definitions set xrange [0:12] set yrange [0:0.8] set xtic (2,3,4,5,6,7,8,9,10,11)                @scalefont2  set ytic                                        @scalefont                       set boxwidth 0.8 set size square    #plot   plot "all_dihedrals_in_layers_malto.dat" using 1:2:xticlabels(3) linespoints lw 2 linecolor rgb "black" pointtype 1 pointsize 2 title "" 

if use code above, plot using column 1 , 2 data file (as given above) points fall in between 2-3, 3-4, 4-5 , on.

unfortunately if use "xticlabels()", don't graph wanted point supposed fall in between c72-c73, c73-c74, c74-c75 , on.

appreciate in advance help.

try this.. (untested dont have gnuplot on machine..)

plot "all_dihedrals_in_layers_malto.dat" using 1:2 linespoints \         lw 2   linecolor rgb "black" pointtype 1 pointsize 2 title "" ,\      "all_dihedrals_in_layers_malto.dat" using ($1-.5):0/0:xticlabels(3)  

of course alternately manually key in labels on set xtics line..

edit..had chance toi try it, 0/0 or (0/0) not work. need plot value out of range.. eg:

set yrange [0:] plot "all_dihedrals_in_layers_malto.dat" using 1:2 linespoints \         lw 2   linecolor rgb "black" pointtype 1 pointsize 2 title "" ,\      "all_dihedrals_in_layers_malto.dat" using ($1-.5):-1:xticlabels(3) notitle  

Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -