Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #807
| From | Sophie Sperner <sophie.sperner@gmail.com> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | How to plot from the discrete data? |
| Date | 2012-01-03 08:43 -0800 |
| Organization | http://groups.google.com |
| Message-ID | <518fcb77-233c-429e-b2f1-3584e2c41731@o14g2000vbo.googlegroups.com> (permalink) |
Dear gnuplot society,
I was writing my article and came to a desire to see my data
graphically to have better picture of the process.
Very bad that I can't post an attachment - I painted up my data and
could show you to ease your understanding.
I will try to write it here using gnuplot terms with some comments:
gnuplot> set title "Life as it is" \\
gnuplot> set xlabel "Jobs, thousands" \\
gnuplot> set ylabel "Time, seconds" \\
gnuplot> set xrange [1:200] \\
gnuplot> set xtics 25 \\
gnuplot> set xtics add(1, 10, 25, 50, 100, 150, 175, 200) \\
gnuplot> set yrange [0:60] \\
gnuplot> set ytics 5 \\
gnuplot> set ytics add(0.6, 2, 4.8, 12, 29.8, 41.4, 52.4, 55) \\
gnuplot> plot ..
Let me know comment please: I have a graph with two discrete functions
(or data sets) of the same domain (axe x):
X axe is called "Jobs, thousands", it ranges between 0 and 250. It has
the following points: {0, 1, 10, 25, 50, 100, 150, 175, 200}
The range of values of both functions (data sets) is from 0 to 60
(measured in seconds).
Now the two mentioned functions has such values:
f1(0) = 0 = f2(0)
f1(1) = 0.6 = f2(1)
f1(10) = 2; f2(10) = 3.2
f1(25) = 4.8; f2(25) = 9
f1(50) = 12; f2(50) = 16.6
f1(100) = 29.8; f2(100) = 34.6
f1(150) = 41.4; f2(150) = 51.2
f1(175) = 52.4; f2(175) = 59.2
f1(200) = 55; f2(200) = no value
I wan to draw all these points using two colours for appropriate
function.
And then I want to connect points to see lines which establish the
graphical imagination - the picture.
Could you please tell me how to do this?
Yours,
Sophie
Back to comp.graphics.apps.gnuplot | Previous | Next | Find similar
How to plot from the discrete data? Sophie Sperner <sophie.sperner@gmail.com> - 2012-01-03 08:43 -0800
csiph-web