gnuplot

How to set grid (vector or arrows) lines in gnuplot

一世执手 提交于 2020-06-09 06:29:49
问题 The location of the grid lines (parallel to Y-axis) at X-axis are defined at third row of a files, for example the third lines has the points # 0.00000000 0.08329780 0.11683890 0.20013670 0.23367770 I can get the Ymax from another file defined as FILE with set table $Dummy plot FILE u ($0==1?(Ymax=$2): NaN) w table # i have updated this line. This will be used only for height of the grid line. Here FILE is a data file with two coloum only which will be plotted in X-Y format. unset table How I

How to set grid (vector or arrows) lines in gnuplot

元气小坏坏 提交于 2020-06-09 06:27:53
问题 The location of the grid lines (parallel to Y-axis) at X-axis are defined at third row of a files, for example the third lines has the points # 0.00000000 0.08329780 0.11683890 0.20013670 0.23367770 I can get the Ymax from another file defined as FILE with set table $Dummy plot FILE u ($0==1?(Ymax=$2): NaN) w table # i have updated this line. This will be used only for height of the grid line. Here FILE is a data file with two coloum only which will be plotted in X-Y format. unset table How I

How to set grid (vector or arrows) lines in gnuplot

删除回忆录丶 提交于 2020-06-09 06:27:09
问题 The location of the grid lines (parallel to Y-axis) at X-axis are defined at third row of a files, for example the third lines has the points # 0.00000000 0.08329780 0.11683890 0.20013670 0.23367770 I can get the Ymax from another file defined as FILE with set table $Dummy plot FILE u ($0==1?(Ymax=$2): NaN) w table # i have updated this line. This will be used only for height of the grid line. Here FILE is a data file with two coloum only which will be plotted in X-Y format. unset table How I

How to set a variable line width when plotting?

情到浓时终转凉″ 提交于 2020-05-29 07:16:23
问题 I would like to plot a curve with a variable line width. I normally would do the following if I wanted to use points instead of a line: gnuplot> plot 'curve.dat' u ($1):($2):($1) ps var where curve.dat is filled with: 0 0 1 1 2 4 3 9 4 16 5 25 and so on. Now if I try something similar for the line width : gnuplot> plot 'curve.dat' u ($1):($2):($1) lw var I get the error message: undefined variable: var Or is this something that cannot be done with gnuplot? 回答1: You're right that linewidth

Line plot in GnuPlot where line width is a third column in my data file?

你。 提交于 2020-05-29 04:08:09
问题 I have a datafile that has three columns : 1 1.0 1 2 1.5 2 3 0.0 3 4 1.2 2.5 5 1.0 1 6 1.1 5 where the first column is my X value, the second column is my Y value, and the third column is the line width. I'd like for each line segment to be plotted according to the third column line width. I tried: plot 'file1.dat' using 1:2:3 with lines lw var But I get undefined variable: var error. Is this possible in gnuplot? Thanks. 回答1: If you define column 3 as the linewidth between points n and n+1

Line plot in GnuPlot where line width is a third column in my data file?

為{幸葍}努か 提交于 2020-05-29 04:07:06
问题 I have a datafile that has three columns : 1 1.0 1 2 1.5 2 3 0.0 3 4 1.2 2.5 5 1.0 1 6 1.1 5 where the first column is my X value, the second column is my Y value, and the third column is the line width. I'd like for each line segment to be plotted according to the third column line width. I tried: plot 'file1.dat' using 1:2:3 with lines lw var But I get undefined variable: var error. Is this possible in gnuplot? Thanks. 回答1: If you define column 3 as the linewidth between points n and n+1

Gnuplot: line opacity / transparency?

风流意气都作罢 提交于 2020-05-24 21:24:09
问题 I am using Gnuplot to successfully plot some time series data. However, the series are fairly dense (10,000's of samples in about 5 inches of space), and when I plot multiple series, it is hard to see underneath the series that was plotted on top. Is there any way to make the lines have a bit of opacity or transparency (i.e. make the line transparent so underneath lines are visible)? Excel has this capability, but I would much prefer to use Gnuplot. Below is a sample of what I'm talking about

Gnuplot: transparency of data points when using palette

夙愿已清 提交于 2020-05-23 09:33:10
问题 Is there a way to plot transparent data points when using palette? I currently have the following code: set style fill transparent solid 0.2 noborder set palette rgb 22,13,-22 plot 'mydata.dat' u 1:2:3 ps 0.3 palette My feeling is that transparency is overwritten by the arguments of the plot command. 回答1: Is there a way to plot transparent data points when using palette? If you check help palette you will not find (or I overlooked) a statement about transparency in the palette. It looks like

gnuplot: why is linewidth 0 not zero in width?

痞子三分冷 提交于 2020-05-15 09:27:12
问题 What is the reason that lw 0 doesn't have zero linewidth, i.e. invisible? What I find in the gnuplot manual: The line width and point size are multipliers for the current terminal's default width ... Ok, if lw 0 is a multiplier then the resulting linewidth should be zero independent of the terminal's default linewidth. The reason for asking is to eventually have the possibility to use with linespoints and programmatically switch within a loop between with lines and with points . Code: ###

gnuplot: how to correctly interpret negative times?

廉价感情. 提交于 2020-04-16 05:47:30
问题 I have some issue with negative times in gnuplot. Basically, I would like to write a negative time, e.g. as -00:01:00 , but gnuplot is not interpreting it as -60 seconds, but as +60 seconds. I can somehow understand why: because -00 hours is equal to +00 hours and then 01 minutes are counted positive. Did I overlook something? Is there maybe an easy workaround? More examples are given below. Let's convert some times in the format %H:%M:%S (actually %tH:%tM:%tS ). I'm fine with all lines,