Menu

GNUPLOT with date format on X-axis

2017-11-10
2022-08-08
  • Sudheer Kumar

    Sudheer Kumar - 2017-11-10

    Hello All,

    I have a requirement to plot the graph to display the date of the month on X-axis if my Xaxis data is shown as below. While i was trying to plot the data i was facing follow error 'Need full using spec for x time data'.

    010211 10000. 0. 10009.
    010911 10000. 0. 9935.
    011611 10000. 0. 9912.
    012311 10000. 0. 9937.
    013011 10000. 0. 9999.
    020611 10000. 0. 10025.
    021311 10000. 0. 10066.
    022011 10000. 0. 10122.
    022711 10000. 0. 10114.
    030611 10000. 0. 10145.
    031311 10000. 0. 10183.
    032011 10000. 0. 10130.
    032711 10000. 0. 10083.
    040311 10000. 0. 9926.
    041011 10000. 0. 9870.
    041711 10000. 0. 9860.
    042411 10000. 0. 9896.
    050111 10000. 0. 9993.
    050811 10000. 0. 10040.
    051511 10000. 0. 10086.
    052211 10000. 0. 10117.
    052911 10000. 0. 10116.
    060511 10000. 0. 10132.
    061211 10000. 0. 10140.
    061911 10000. 0. 10130.
    062611 10000. 0. 10133.
    070311 10000. 0. 8969.
    071011 10000. 0. 8914.
    071711 10000. 0. 9966.
    072411 10000. 0. 12133.
    073111 20000. 0. 18503.
    080711 20000. 0. 21341.

    Please note my current x-axis date format is ddmmyy. Kindly give me some idea in resolving this issue.

    Thanks,
    Sudheer.

     
    • Miguel

      Miguel - 2022-08-08

      Hi, have you designed such type of graph. If yes then kindly share the ideas how you designed it. Because we have to make such graph for best washer under 500. So that we could easily flot the data for our customers.

       
  • Sudheer Kumar

    Sudheer Kumar - 2017-11-10

    Please find the attachment for sample graph

     
  • R. J. Mathar

    R. J. Mathar - 2018-12-05

    The format of the time in the data file must be specified in the style of

    set xdata time
    set timefmt "%d%m%y"
    set format x "%B"  # "%b" seems to be broken
    plot "datafile" using 1:4 notitle
    
     

Log in to post a comment.