cldarcy / simile-widgets

Automatically exported from code.google.com/p/simile-widgets
0 stars 0 forks source link

TIMEPLOT: Scaling is broken when all values of an axis are negative #80

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When you have an axis where all values are negative (below zero), then
scaling is broken.
min: and max: are also ignored then.

Examples:
The Plot looks like shown in this image when all values are negative:
http://loxiadev.percom.at/bugreports/scaling_bug.png

If i add one positive Value, the Graph is drawn correctly:
http://loxiadev.percom.at/bugreports/no_scaling_bug.png

Here are my DataRows:

Data which produces the erroneous graph:
2007-08-01 00:00:00,-0.0185,0.0208,-0.0264
2007-08-01 12:00:00,-0.0185,0.0228,-0.0264
2007-08-02 00:00:00,-0.0195,0.0218,-0.0224
2007-08-02 12:00:00,-0.0175,0.0198,-0.0304

Data which produces the correct graph:
2007-07-31 23:59:59,0.001,0.001,0.001
2007-08-01 00:00:00,-0.0185,0.0208,-0.0264
2007-08-01 12:00:00,-0.0185,0.0228,-0.0264
2007-08-02 00:00:00,-0.0195,0.0218,-0.0224
2007-08-02 12:00:00,-0.0175,0.0198,-0.0304

What can i do to get the scaling working correctly, without modifying my data?

[Submitted by Christian Reiter on simile.mit.edu]

Original issue reported on code.google.com by stefano.mazzocchi@gmail.com on 25 Mar 2009 at 5:55

GoogleCodeExporter commented 8 years ago

Original comment by stefano.mazzocchi@gmail.com on 25 Mar 2009 at 6:42