Leonardo M. Ramé
Leonardo M. Ramé

Reputation: 451

start of X series

I would like to know how to set x axis to start drawing at the first point of data, instead of the first day of date-range?.

(too bad I can't post pictures because I don't have the 10 points)

Upvotes: 1

Views: 606

Answers (1)

Tom
Tom

Reputation: 5299

From your question it seems that you want to set the x-range in a time-series (this is a guess - it would help if you wrote the gnuplot code that you are using).

You can do this like so:

set xdata time
set timefmt "%d/%m/%Y %H:%M:%S" 
set xrange["26/10/2010 13:00:00":"26/10/2010 14:00:00"]

Notice that the xrange must be written in the same way as the timefmt.

See gnuplot v4.4: Problem plotting using timeseries x axis for more info.

Upvotes: 1

Related Questions