|
From: Praedor A. <pr...@ya...> - 2007-06-23 22:35:34
|
I have gnuplot 4.2 installed and have been trying to figure out how
to plot my experimental data output. The data is in the form of 2=20
columns, the first column labeled "prescan" and the second column=20
labeled "postscan". Beneath these labels in each column are numbers,
something like this:
prescan postscan
0.55 0.62
0.51 0.64
0.53 0.64
and so on. What I need to do is plot these numbers over the x-axis
over its appropriate label (prescan or postscan) and that's it. I
have been going over the gnuplot docs and demos but have not yet=20
found what I'm looking for (it is slow going). What I want is akin
to this:
1.0 |
|
|
| *
| * *
| *
0.5 | * *
|
|
|
|
|________________________________
| |
prescan postscan
How do I do this? How do I get gnuplot to simply take my two column
header/labels and place them as the points on the x-axis and then plot
the datapoints over them? I have been going over the documentation and=20
various web FAQs and tutorials, and though I find many examples that are=20
close to what I am after, nothing ever actually gets me to above graph (the=
y=20
points may at times be plotted as linespoints or as histograms too but that=
I=20
can handle).
I would be most grateful for aid here.
Praedor
=2D-=20
Reichstag fire is to Hitler as 9/11 is to Bush
|
|
From: Thomas S. <t.s...@fz...> - 2007-06-24 15:16:19
|
set xrange [0:3]
set yrange [0:1]
set xtics ("prescan" 1, "postscan" 2)
plot "datafilename" using (1):1, "" using (2):2
Praedor Atrebates wrote:
>
> I have gnuplot 4.2 installed and have been trying to figure out how
> to plot my experimental data output. The data is in the form of 2
> columns, the first column labeled "prescan" and the second column
> labeled "postscan". Beneath these labels in each column are numbers,
> something like this:
>
> prescan postscan
> 0.55 0.62
> 0.51 0.64
> 0.53 0.64
>
> and so on. What I need to do is plot these numbers over the x-axis
> over its appropriate label (prescan or postscan) and that's it. I
> have been going over the gnuplot docs and demos but have not yet
> found what I'm looking for (it is slow going). What I want is akin
> to this:
>
> 1.0 |
> |
> |
> | *
> | * *
> | *
> 0.5 | * *
> |
> |
> |
> |
> |________________________________
> | |
> prescan postscan
>
> How do I do this? How do I get gnuplot to simply take my two column
> header/labels and place them as the points on the x-axis and then plot
> the datapoints over them? I have been going over the documentation and
> various web FAQs and tutorials, and though I find many examples that are
> close to what I am after, nothing ever actually gets me to above graph
> (they
> points may at times be plotted as linespoints or as histograms too but
> that I
> can handle).
>
> I would be most grateful for aid here.
>
> Praedor
> --
> Reichstag fire is to Hitler as 9/11 is to Bush
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Gnuplot-info mailing list
> Gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
>
--
View this message in context: http://www.nabble.com/Plotting-y-data-vs-two-x-axis-points--tf3970663.html#a11275586
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|
|
From: Praedor A. <pr...@ya...> - 2007-06-25 15:40:41
|
Thank you for the fast response.
I have another question to build from the previous and one question on gene=
ral=20
usage. First, now that I can plot each column separately and above the=20
appropriate x-axis label, if I then wanted to connect the two points with a=
=20
line how would I do this? They are in separate columns...
=46inal question relates to adding error bars to the plots. I have been ab=
le to=20
get error bars plotted with the points but so far I had to do so in a=20
separate plot overlay, ie:
plot './datafile.csv' using 2:3 with points pointtype 6 pointsize 2, '' usi=
ng=20
2:3:5 with yerr
I have tried what SEEMED natural but it errors out:
plot 'datafile' using 2:3:5 with points pointtype 6 pointsize 2 yerr
When you need to plot data using multiple parameters that use the "with"=20
command, how do you do it when the gnuplot commandline wont accept them all=
=20
in one line/command string?
>From: Thomas Sefzick <t.s...@fz...>
>To: gnu...@li...
>set xrange [0:3]
>set yrange [0:1]
>set xtics ("prescan" 1, "postscan" 2)
>plot "datafilename" using (1):1, "" using (2):2
>Praedor Atrebates wrote:=20
>> I have gnuplot 4.2 installed and have been trying to figure out how
>> to plot my experimental data output. =A0The data is in the form of 2=20
>> columns, the first column labeled "prescan" and the second column=20
>> labeled "postscan". =A0Beneath these labels in each column are numbers,
>> something like this:
>>=20
>> prescan postscan
>> 0.55 =A0 =A00.62
>> 0.51 =A0 =A00.64
>> 0.53 =A0 =A00.64
=2D-=20
Reichstag fire is to Hitler as 9/11 is to Bush
|