1

I have the following excel data and corresponding line chart enter image description here

I wanted to plot it using gnuplot script

set term postscript eps enhanced monochrome     
set output "r-all-float-case4.eps"          
set size 1.0,1.0                    
set pointsize 1.75                  
set xlabel "X-values" font "Times-Roman,24"         
set title "Irregular intervals"
set  key ins vert left top
set key spacing 1.5
set key font ",14"
set size 1.0,1.0             
set ylabel "time" font "Times-Roman,24" 
set log y
plot \
"mydata" using 1:2 title "Y1" with lp lt 1 lw 3 , \
"mydata" using 1:3 title "Y2" with  lp lt 2 lw 3 

and it gave me the following output

enter image description here

How can I make the x-axis look the same like the excel one (data points with fixed interval)?

closed as off-topic by egreg, Paul Gessler, Sean Allred, David Carlisle, Adam Liter Dec 30 '14 at 22:19

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center." – egreg, Paul Gessler, Sean Allred, David Carlisle, Adam Liter
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    I'm afraid this is off-topic on the site. Stack Overflow has a gnuplot tag with more than 2500 questions. – egreg Dec 30 '14 at 22:00
  • From the discussion in chat: a question on how to use gnuplot with TeX or related software would be on-topic, but this is purely a gnuplot question – Sean Allred Dec 30 '14 at 22:05

Browse other questions tagged or ask your own question.