start of X series

[亡魂溺海] 提交于 2020-01-15 10:59:12

问题


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)


回答1:


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.



来源:https://stackoverflow.com/questions/6089293/start-of-x-series

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!