i want to print ot my data of the last seven days with gnuplot.
in a script i put my gnuplot-script and at the top i generate my date-variable.
It give me the grafik, but over the complete month. My idea is, that
will not work properly. i tried allready to put it into brackets but without success. Maybe an alternetiv spefication of the time-variable?
Can someone help me?
I could be wrong, but the last line looks problematic:
Quote:
Originally Posted by IMPe
You create some variables (D, M, Da, Ma) but you never use them. Instead you use fixed strings ("D", "M", ...).
If you want to use a variables content (as opposed to its name) you have to prepend it with "$". To avoid ambiguity you can also enclose the variables name with curly braces ("{}"). So the last line should probably look like this:
Further, you should not use the backticks, even if they work. Backticks are an ancient construct and only supported for legacy purposes. Use the "$(...)" instead. That means change:
I could be wrong, but the last line looks problematic:
If you want to use a variables content (as opposed to its name) you have to prepend it with "$". To avoid ambiguity you can also enclose the variables name with curly braces ("{}"). So the last line should probably look like this:
Further, you should not use the backticks, even if they work. Backticks are an ancient construct and only supported for legacy purposes. Use the "$(...)" instead. That means change:
to
and accordingly with similar lines.
I hope this helps.
bakunin
Thanks a lot - you dedect all my failures!
It helps a lot!
Hello
I have a text file with tens of thousands of rows
The format is
x y
where both x and y can be anything between -100 and +100.
What I would like to do is have a 3d gnuplot where there are 10,000 squared or bins and each bin will count how many rows have a value that would be... (1 Reply)
Hi!
Let's say I have these two columns in file.txt
0 1
1 5
2 10
3 15
4 20
5 25
in gnuplot, i would plot usingplot 'file.txt' u 1:2
If I wanted to add a label to the y-axis I would useset label "Ef" at 0.0,7.0
However, I want the label Ef to be on the otherside of the y-axis. Not... (0 Replies)
Hi
I am plotting a series of CDFs using gnuplot using
plot "data" u 1:(1./x.) smooth cumulative
I am doing this over many files and I need to tune the x value to the number of lines that meets a particular condition.
Is it possible to get the line count from shell using
cat file | grep... (7 Replies)
I am having a bit of trouble plotting a histogram in gnuplot. I am trying to use it to draw bars side by side. The first bar is from column five in my data file. The second bar is actually three bars stacked on top of each other and should be as tall as the first bar. The data is from the 2nd,... (0 Replies)
I would like to ask if I have already plot a graph using gnuplot, the setting(made by others) is in "gnuplot.defaults":
gnuplot> load '<ParadisDir>/inputs/gnuplot.defaults'
gnuplot> splot 'box.in' with lines, '0t0001' w lines
How to transform it to bmp file? (or other types of pictures?)
... (2 Replies)
Hi,
I am trying to make a plot of an ASCII file using GNUplot, but I keep getting error msg:
for example plot filename.txt
It says that (.txt ) is not identified ... I tried to write it without the .txt part, but I also get the error msg.
Any idea why? :confused: (1 Reply)
Hi, I am a beginner using UNIX, and was wondering how to use gnuplot from UNIX on my pc. I am connected remotely to my work's UNIX server using Secure Shell Client, and gnuplot won't open a new window when I use the plot command. How do I do this?
Moreover, is it possible to save things from the... (0 Replies)