gnuplot

Splitting a line in gnuplot based on a column

ぃ、小莉子 提交于 2020-01-06 02:41:09
问题 I have a bunch of data like this: 0 0 50.5 -3.39358e-05 0 0 150.5 5.11472e-06 0 0 250.5 -3.87604e-06 0 0 350.5 -2.54219e-05 0 0 450.5 3.92257e-06 0 0 550.5 0.00198317 0 0 650.5 -4.96953e-05 0 0 750.5 -3.60458e-05 0 0 850.5 -2.30878e-05 0 0 950.5 1.67545e-07 1 0 126.5 4.17028e-05 1 0 226.5 -1.43637e-05 1 0 326.5 1.42918e-06 1 0 426.5 1.18147e-05 1 0 526.5 0.0020478 1 0 626.5 1.58651e-06 1 0 726.5 3.18537e-05 1 0 826.5 2.47536e-05 1 0 926.5 -4.20655e-05 I want to plot something like this on

python gnuplot read csv file to plot time in x-axis in the read order or row order

与世无争的帅哥 提交于 2020-01-05 18:52:55
问题 I have csv file in the below format with more than 3k rows and 20 columns 21:46:12 82748 5356864 22:47:33 82748 5352768 23:47:43 82748 5356864 00:47:53 82748 5356864 01:48:03 82748 5352768 02:48:13 82748 5356864 03:48:23 82748 5352768 04:48:33 82748 5356864 When i tried to draw graph, the time is getting ordered from 04 to 21 where as my requirement is to draw in the same row order i.e 21 to 04 (i don't have date entry to order). is there any mechanism to maintain the same order to draw the

GNUPlot Draw label on x2y2 axes

旧街凉风 提交于 2020-01-05 17:30:12
问题 I want to place a label on a plot which uses autoscale. To keep the label at the same position i want to use alternative axis which don't use autoscale to get an absolute location. How can I choose the uses axis of a "set label" statement? set y2range [0:10] set x2range [0:100] set label "FooBar" at 10, 5 Line 3: something is missing here. "axes x2y2" wont work (used in plot label functions) Thanks for helping me out here :-) 回答1: There are different coordinate systems which you can use to

gnuplot how to zoom y & y2 axis

耗尽温柔 提交于 2020-01-05 12:18:17
问题 I have a plot like this using wgnuplot: the green and blue are on y2 axis. Question 1: When I zoom using right mouse button I get: The black line on yaxis is to compressed near top. How can I get the y scale to fit the data for this window at this point AUTOMATICALLY. I.e.e without me having to type range commands? Questions 2: Again, is there anyway to rescale/zoom the y2axis ALONE, by mouse? 回答1: Just press 'a' or click the autoscale button to adjust the y-scale. Maybe you want to use set

gnuplot how to zoom y & y2 axis

[亡魂溺海] 提交于 2020-01-05 12:17:51
问题 I have a plot like this using wgnuplot: the green and blue are on y2 axis. Question 1: When I zoom using right mouse button I get: The black line on yaxis is to compressed near top. How can I get the y scale to fit the data for this window at this point AUTOMATICALLY. I.e.e without me having to type range commands? Questions 2: Again, is there anyway to rescale/zoom the y2axis ALONE, by mouse? 回答1: Just press 'a' or click the autoscale button to adjust the y-scale. Maybe you want to use set

How to plot data with lines like “<text> <datetime>”, with gnuplot?

柔情痞子 提交于 2020-01-05 11:04:26
问题 My data is a typical CSV-like text where each line consists of two columns where the first is text and the second a unix timestamp, as follows: Mom 1441008169 Dad 1442516527 Ken 1441783871 ... <text> <unix-timestamp> I thought I could arrange the data along a timeline, drawing dots/shapes of color corresponding to the text in the line, at a point along the x axis corresponding to the timestamp. At best I got gnuplot to tell me: line 0: Need using spec for y time data when I tell it to: set

gnuplot, two y-ranges far apart

不问归期 提交于 2020-01-05 08:54:35
问题 Is it possible to plot two ranges which are far apart each other? I mean, if I have a dataset like [ 1, 2, 3, 1001, 1001, 1003 ], can I draw a plot like this? | 1003 | x 1002 | x 1001 | x 1000 | | ===================== omission | 4 | 3 | x 2 | x 1 | x ------------- 回答1: You may want to check out this link: Gnuplot surprising - Broken axes graph in gnuplot. The author presents three examples of plotting a grqph with a broken x axis. 回答2: Three helpful examples: http://gnuplot-surprising

Is there a way to have gnuplot use xaxis time data, but skip certain intervals (e.g. non-trading hours)

前提是你 提交于 2020-01-05 08:39:15
问题 I'm collecting pricing data on stocks and options during trading hours and appending them to a data file that I plot with gnuplot. The file looks like: 2013-01-30--15:58:14 38.68 0.64 2013-01-30--15:58:44 38.70 0.64 2013-01-30--15:59:15 38.70 0.64 2013-01-30--15:59:45 38.69 0.64 I end up with large periods of time that I don't collect any data for since the markets are closed. When I plot this data with gnuplot, using xdata as timefmt, it displays large gaps from the end of one day to the

Inversed logarithmic scale in gnuplot

大兔子大兔子 提交于 2020-01-05 08:27:07
问题 When plotting data which are very dense in small ranges of y, the logarithmic scale of gnuplot is the right scale to use. But what scale to use when the opposite is the case? let's say most y values of different curves are between 90 and 100. In this case I want to use something like a inversed logarithmic scale. I tried a log scale between 0 and 1 but gnuplot wants me to choose a scale greater than 1 How can I achieve this? 回答1: You are right, you can use the inverse of the logarithmic

Repeating y-axis tick labels

杀马特。学长 韩版系。学妹 提交于 2020-01-05 08:14:50
问题 I found this strange behaviour when using gnuplot (ver 4.4), it repeats the same y-axis ticks labels when set format y "%10.0f" command is used and y range is relatively low. If I set it up to "%10.5f" the numbers don't repeat but the "0.5" rounding isn't logical in my case. So I'm looking for a solution with minimal changes to the following script, any help appreciated! Example with repeating y-axis ticks labels: Data: 0.5 - 1 3.000 2 4.000 3 4.000 4 2.000 5 1.000 Script: set encoding cp1250