scattering / ipeek

Public display of datastreams from XPeek sources. Specific to NCNR. Based on static data objects that are frequently updated (not event-based)
The Unlicense
1 stars 1 forks source link

Limit y-axis to min zero when showing counts #1

Open pkienzle opened 10 years ago

bmaranville commented 10 years ago

I'm not sure I agree with this... if negative axis values are ever shown for counts, they will necessarily be in the expected "marginal" region of the graph. Forcing zero as the lower limit will lead to some ugly graphs with points stuck to the bottom axis. I don't think anyone will find it strange to see axis values less than zero, as long as there are no data points there...

pkienzle commented 10 years ago

The problem is that the graphs are not making full use of the space available.

In the past I've used borders of [min-(max-min)_0.05, max+(max-min)_0.05] around the data points, and that works pretty well. For log scale, this is [min/(max/min)*0.05, max(max/min)**0.05]. How hard would it be to set these as the autoaxis defaults for jqplot?

On Mon, Sep 23, 2013 at 4:16 PM, bmaranville notifications@github.comwrote:

I'm not sure I agree with this... if negative axis values are ever shown for counts, they will necessarily be in the expected "marginal" region of the graph. Forcing zero as the lower limit will lead to some ugly graphs with points stuck to the bottom axis. I don't think anyone will find it strange to see axis values less than zero, as long as there are no data points there...

— Reply to this email directly or view it on GitHubhttps://github.com/scattering/ipeek/issues/1#issuecomment-24950573 .

bmaranville commented 10 years ago

I think we are agreeing... we just need to make the unused margins smaller. Shouldn't be too bad. I think jqplot does 10% by default, but we can probably change to 5%.

Brian Maranville NIST Center For Neutron Research 100 Bureau Drive MS 6102 Gaithersburg, MD 20899 (301) 975-6034 http://www.ncnr.nist.gov/instruments/magik/

On 09/24/2013 09:04 AM, Paul Kienzle wrote:

The problem is that the graphs are not making full use of the space available.

In the past I've used borders of [min-(max-min)_0.05, max+(max-min)_0.05] around the data points, and that works pretty well. For log scale, this is [min/(max/min)*0.05, max(max/min)**0.05]. How hard would it be to set these as the autoaxis defaults for jqplot?

On Mon, Sep 23, 2013 at 4:16 PM, bmaranville notifications@github.comwrote:

I'm not sure I agree with this... if negative axis values are ever shown for counts, they will necessarily be in the expected "marginal" region of the graph. Forcing zero as the lower limit will lead to some ugly graphs with points stuck to the bottom axis. I don't think anyone will find it strange to see axis values less than zero, as long as there are no data points there...

— Reply to this email directly or view it on GitHubhttps://github.com/scattering/ipeek/issues/1#issuecomment-24950573 .

— Reply to this email directly or view it on GitHub https://github.com/scattering/ipeek/issues/1#issuecomment-25000698.