|
From: Noel F. <noe...@me...> - 2005-03-11 07:25:38
|
Hi all, Is there away to produce 3D histograms in gnuplot? Here's some example data length sp1 TCC TCA TCG sp2 TCC TCA TCG 1 ce 1 2 8 dm 5 6 0 2 ce 2 3 5 dm 5 3 7 3 ce 3 0 6 dm 4 8 10 4 ce 0 6 0 dm 7 0 5 5 ce 0 7 0 dm 0 0 0 6 ce 0 6 0 dm 8 5 6 i.e. there are two series ce and dm. Cheers Noel |
|
From: Hans-Bernhard B. <br...@ph...> - 2005-03-11 19:46:47
|
Noel Faux wrote: > Is there away to produce 3D histograms in gnuplot? [...] > i.e. there are two series ce and dm. Unfortunately that doesn't explain what you want to do with these data sequences, i.e. what you 3D "histogram" is supposed to look like. |
|
From: Noel F. <noe...@me...> - 2005-03-12 03:33:29
Attachments:
noel.faux.vcf
|
Hi Hans-Bernhard, > Noel Faux wrote: > >> Is there away to produce 3D histograms in gnuplot? > > [...] > >> i.e. there are two series ce and dm. > > > Unfortunately that doesn't explain what you want to do with these data > sequences, i.e. what you 3D "histogram" is supposed to look like. x-axis is the lengths (col1), y-axis is the values (cols 3-5, 7-9) z-axis is each series (ce and dm) The front plot would be the 2D histogram of Cols 1,3-5 and directly behind (along the z-axis) it the plot of cols 1, 7-9. length sp1 TCC TCA TCG sp2 TCC TCA TCG 1 ce 1 2 8 dm 5 6 0 2 ce 2 3 5 dm 5 3 7 3 ce 3 0 6 dm 4 8 10 4 ce 0 6 0 dm 7 0 5 5 ce 0 7 0 dm 0 0 0 6 ce 0 6 0 dm 8 5 6 Hope this helps. Many thanks Noel |
|
From: Hans-Bernhard B. <br...@ph...> - 2005-03-13 19:28:27
|
Noel Faux wrote:
> x-axis is the lengths (col1),
> y-axis is the values (cols 3-5, 7-9)
How exactly do you want to show three columns of data on one axis?
> z-axis is each series (ce and dm)
> The front plot would be the 2D histogram of Cols 1,3-5 and directly
> behind (along the z-axis) it the plot of cols 1, 7-9.
Then you'll have to plot your datafile at least twice. A very rough
first approximation might be:
plot 'file' u 1:3:(1.0) title 'ce' with histeps, \
'' u 1:7:(2.0) title 'dm' with histeps
It's still a mystery to me what it might be you want to do with
the other 4 columns of data.
|
|
From: Noel-Monash <noe...@me...> - 2005-03-14 00:22:43
Attachments:
tests.pdf
|
Hi Hans,
Sorry, I'm really not describing what I want well!
There are two major series, each with three sub-series. If I plot each
major series individually as a histogram it would look something like this:
8 | #
7 | #
6 | #
5 | #
4 | # &
3 | # * & # &
2 | # * & * # &
1 |_#_*_&__#_*_&__#_*_&_
1 2 3
Lengths
The y-axis is the 'number of occurrences' at that length.
# sub-series 1
* sub-series 2
& sub-series 3
What I want to do is plot each major series along the z axis (and each
sub-series along the x-axis)
Each sub-series are the same i.e. (TCC, TCA, TCG) but each major series
is different (different species).
I've tried to do this in excel, however it interprets each sub-series an
individual series thus resulting in the graph shown in the attached pdf.
What I want is the first three series grouped together and the next thee
grouped together.
I hope this helps.
Many thanks,
Noel
Hans-Bernhard Broeker wrote:
> Noel Faux wrote:
>
>> x-axis is the lengths (col1),
>> y-axis is the values (cols 3-5, 7-9)
>
>
> How exactly do you want to show three columns of data on one axis?
>
>> z-axis is each series (ce and dm)
>
>
>> The front plot would be the 2D histogram of Cols 1,3-5 and directly
>> behind (along the z-axis) it the plot of cols 1, 7-9.
>
>
> Then you'll have to plot your datafile at least twice. A very rough
> first approximation might be:
>
> plot 'file' u 1:3:(1.0) title 'ce' with histeps, \
> '' u 1:7:(2.0) title 'dm' with histeps
>
> It's still a mystery to me what it might be you want to do with
> the other 4 columns of data.
|
|
From: Hans-Bernhard B. <br...@ph...> - 2005-03-14 15:28:23
|
Noel-Monash wrote: > There are two major series, each with three sub-series. If I plot each > major series individually as a histogram it would look something like this: > > 8 | # > 7 | # > 6 | # > 5 | # > 4 | # & > 3 | # * & # & > 2 | # * & * # & > 1 |_#_*_&__#_*_&__#_*_&_ > 1 2 3 Lengths > The y-axis is the 'number of occurrences' at that length. This part could be done easily using plot 'with boxes, a fixed boxwidth, and x positions a bit shifted as needed: set boxwidth 0.25 plot 'file' u 1:($3-0.25) w boxes, \ '' u 1:($4) w boxes, \ '' u 1:($5+0.25) w boxes Unfortunately, boxes is not a supported plot style in 3D displays. You could still apply the above technique and display the two major series split a bit, but without the actual 3D effect. |
|
From: Noel F. <noe...@me...> - 2005-03-14 22:12:06
|
Hans-Bernhard Broeker wrote: > Noel-Monash wrote: > >> There are two major series, each with three sub-series. If I plot each >> major series individually as a histogram it would look something like >> this: >> >> 8 | # >> 7 | # >> 6 | # >> 5 | # >> 4 | # & >> 3 | # * & # & >> 2 | # * & * # & >> 1 |_#_*_&__#_*_&__#_*_&_ >> 1 2 3 Lengths >> The y-axis is the 'number of occurrences' at that length. > > > This part could be done easily using plot 'with boxes, a fixed boxwidth, > and x positions a bit shifted as needed: > > set boxwidth 0.25 > plot 'file' u 1:($3-0.25) w boxes, \ > '' u 1:($4) w boxes, \ > '' u 1:($5+0.25) w boxes Thanks, for the info. > > Unfortunately, boxes is not a supported plot style in 3D displays. You > could still apply the above technique and display the two major series > split a bit, but without the actual 3D effect. Are there plans for this feature in the future? Cheers Noel |
|
From: Hans-Bernhard B. <br...@ph...> - 2005-03-15 13:07:19
|
Noel Faux wrote: > Hans-Bernhard Broeker wrote: >> Unfortunately, boxes is not a supported plot style in 3D displays. >> You could still apply the above technique and display the two major >> series split a bit, but without the actual 3D effect. > Are there plans for this feature in the future? None that I know of. Ethan did a lot for histogram plots after 4.0 came out, but not in 3D. |