English 中文(简体)
档次
原标题:gnuplot timestamp conversion

1. 范围 [0:]

Set timestamp format for x-axis set xdata time set timefmt "%s" # Specify the input time format as Unix timestamp set xlabel "Time"

set format x " %d/%m/%y %H:%M" # Use for newline

set timestamp " %d/%m/%y %H:%M" at graph 0.5,0.02 font "Helvetica"

土地“C:/Users/dhaval_tarapra/Desktop/Code/2degree/Kalt_extracted_ Values.csv”使用2美元:4 页: 1

DATA IN CSV FILE:

*** 参照标准。

4165,1324055753,4640,,5000,,,,4640,464,,,1190,119 4168,1324055753,,469,,11910,4022,402.2,,,11900,119,, 4171,1324055753,4640,,5000,,,,4640,464,,,1190,119 4173,1324055753,,469,,11910,4022,402.2,,,11900,119,, 4178,1324055753,4640,,5000,,,,4640,464,,,1190,119 4180,1324055753,,469,,11910,4025,402.5,,,11899,118.99,,


I used above script and got a below graph. On x Axis there are a time starting from 5:56 but in my .csv data file the time is starting from 6:56 so I want to set it. If any one have solution then please help me!



  [1]: https://i.stack.imgur.com/DGqhG.png
  [2]: https://i.stack.imgur.com/IvI8c.png
问题回答

你们没有显示数据,我不知道你会再走什么时间。 我不清楚我是否正确理解你的问题,但我不能重复,X轴线上的时间比数据档案中的时间长1小时。

但是,如果问题涉及时间范围,那么在图表中似乎有不同的时间点。 www.un.org/chinese/ga/president

参考文件(<代码>求助时间/日期)

The conversion to and from seconds assumes Universal Time (which is the same as Greenwich Standard Time). There is no provision for changing the time zone or for daylight savings. If all your data refer to the same time zone (and are all either daylight or standard) you don t need to worry about these things. But if the absolute time is crucial for your application, you ll need to convert to UT yourself.

But then I don t understand and it hasn t yet become clear to me from the documentation why in the example below timestamp shows 08:22 and with time() and strftime() it shows 07:22. I m confused whether it takes UT (GMT) time or local PC system time. (By the way, I m in timezone GMT+1 and on Windows. Not sure if the latter might also play a role).

无论如何,你可以通过添加<条码>7*3600seconds至<条码>时(0),将条码转换为7小时。 因此,我建议通过<条码>的标签和<条码>实时()添加必要的内容。

www.un.org/Depts/DGACM/index_french.htm

### different ways of placing a timestamp
reset session

myTimeFmt = "%d/%m/%y
%H:%M"

set timestamp myTimeFmt
set label 1 strftime(myTimeFmt,time(0))        at graph 0.5, graph 0.7
set label 2     time(myTimeFmt)                at graph 0.5, graph 0.5
set label 3 strftime(myTimeFmt,time(0)+7*3600) at graph 0.5, graph 0.3

plot x**2
### end of script

<>Result>:

enter image description here





相关问题
Styling rows in table that uses CSV data through PHP

I ve been working on this simple code that puts a CSV file into a nice table. But because the data is imported, styling ODD rows is a pretty hard thing to do. All I need would be a method to address ...

PHP - Sanitise a comma separated string

What would be the most efficient way to clean a user input that is a comma separated string made entirely on numbers - e.g 2,40,23,11,55 I use this function on a lot of my inputs function clean($...

marking duplicates in a csv file

I m stumped with a problem illustrated in the sample below: "ID","NAME","PHONE","REF","DISCARD" 1,"JOHN",12345,, 2,"PETER",6232,, 3,"JON",12345,, 4,"PETERSON",6232,, 5,"ALEX",7854,, 6,"JON",12345,, ...

Interactive heat map in Flex

I’m at a very basic level with Flex and with programming in general. I am working on a project where I have data in an Excel (.csv) format, it’s a large Excel plot/matrix where each cell has a ...

热门标签