|
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.
|