hey, I have a litle problem in visualizing my data. I am trying to make a stacked histogram. I compare bactera. One group has so view reads, that the historgam simply do not show them (I think it is because they are so view (only around 10, while the other groups have something about several hundrets). Does anyone has a solution? Here is the source code I used:
unset xtics
set ylabel 'Number of reads'
set border 3 front linetype -1 linewidth 1.000
set boxwidth 0.75 absolute
set style fill solid 1.00 border -1
set grid nopolar
set grid noxtics nomxtics ytics nomytics noztics nomztics \
nox2tics nomx2tics noy2tics nomy2tics nocbtics nomcbtics
set grid layerdefault linetype 0 linewidth 1.000, linetype 0 linewidth 1.000
set style histogram columnstacked title offset character 0, 0, 0
set style data histograms
set key outside right top vertical Left reverse noenhanced autotitles columnhead box linetype -1 linewidth 1.000
set terminal postscript enhanced color solid
set output 'output.eps'
set encoding iso_8859_15
can I somehow force gnuplot to show data? I am thankfull vor every help...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hey, I have a litle problem in visualizing my data. I am trying to make a
stacked histogram. I compare bactera. One group has so view reads, that the
historgam simply do not show them (I think it is because they are so view
(only around 10, while the other groups have something about several
hundrets). Does anyone has a solution? Here is the source code I used:
unset xtics
set ylabel 'Number of reads'
set border 3 front linetype -1 linewidth 1.000
set boxwidth 0.75 absolute
set style fill solid 1.00 border -1
set grid nopolar
set grid noxtics nomxtics ytics nomytics noztics nomztics \ nox2tics
nomx2tics noy2tics nomy2tics nocbtics nomcbtics
set grid layerdefault linetype 0 linewidth 1.000, linetype 0 linewidth
1.000
set style histogram columnstacked title offset character 0, 0, 0
set style data histograms
set key outside right top vertical Left reverse noenhanced autotitles
columnhead box linetype -1 linewidth 1.000
set terminal postscript enhanced color solid
set output 'output.eps'
set encoding iso_8859_15
can I somehow force gnuplot to show data? I am thankfull vor every help...
One group has so view reads, that the historgam simply do not show them (I think it is
because they are so view (only around 10, while the other groups have something about
several hundrets). Does anyone has a solution?
Stacking data of such wildly different sizes is not going to achieve anything useful. The smaller one will always be invisible, and that's correctly reflecting the fact that its contribution to the total is, indeed, negligible.
If that's not what you wanted to show, you probably should not stack those histograms to begin with.
You have to decide what your plot is supposed to show, and what it can afford to make hard to discern, or even invisible. If you have multiple datasets with wildly diferent y ranges, regardless whether they're histograms or other types of data, you have to decide which is more important to you: showing the relative factors between different datasets, or showing them on an easily understood scale each. In one case, you may profit from a logarithmic axis. In the other, a separate scale on the secondary y axis, or simply rescaling one set of data, may be better.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hey, I have a litle problem in visualizing my data. I am trying to make a stacked histogram. I compare bactera. One group has so view reads, that the historgam simply do not show them (I think it is because they are so view (only around 10, while the other groups have something about several hundrets). Does anyone has a solution? Here is the source code I used:
unset xtics
set ylabel 'Number of reads'
set border 3 front linetype -1 linewidth 1.000
set boxwidth 0.75 absolute
set style fill solid 1.00 border -1
set grid nopolar
set grid noxtics nomxtics ytics nomytics noztics nomztics \ nox2tics nomx2tics noy2tics nomy2tics nocbtics nomcbtics
set grid layerdefault linetype 0 linewidth 1.000, linetype 0 linewidth 1.000
set style histogram columnstacked title offset character 0, 0, 0
set style data histograms
set key outside right top vertical Left reverse noenhanced autotitles columnhead box linetype -1 linewidth 1.000
set terminal postscript enhanced color solid
set output 'output.eps'
set encoding iso_8859_15
can I somehow force gnuplot to show data? I am thankfull vor every help...
there is no 'plot' command in your pasted code.
Edo
On Mon, Apr 28, 2014 at 2:20 PM, christian christian1986@users.sf.netwrote:
--
Edo
weblog http://edo.imanetti.net/wordpress
podcast http://sieegiueeaccaso.blogspot.com
cooking http://edo.imanetti.net/cucina
:wq
Stacking data of such wildly different sizes is not going to achieve anything useful. The smaller one will always be invisible, and that's correctly reflecting the fact that its contribution to the total is, indeed, negligible.
If that's not what you wanted to show, you probably should not stack those histograms to begin with.
You have to decide what your plot is supposed to show, and what it can afford to make hard to discern, or even invisible. If you have multiple datasets with wildly diferent y ranges, regardless whether they're histograms or other types of data, you have to decide which is more important to you: showing the relative factors between different datasets, or showing them on an easily understood scale each. In one case, you may profit from a logarithmic axis. In the other, a separate scale on the secondary y axis, or simply rescaling one set of data, may be better.