Hi all,
I'm experiencing some odd behaviour with autoscaling of charts.
First, I create an ordinary bar chart:
foo = fl_add_chart(FL_BAR_CHART,10,10,150,150,"");
Then, if I insert two _equal_ values:
fl_add_chart_value(foo, 1.00, "", FL_RED);
fl_add_chart_value(foo, 1.00, "", FL_RED);
the chart is not scaled, i.e., the bars are not scaled to fill the full
height.
However, if I insert two _different_ values:
fl_add_chart_value(foo, 1.00, "", FL_RED);
fl_add_chart_value(foo, 1.01, "", FL_RED);
the vertical scaling occurs.
Now, this is a problem for me, since I put rather small numbers in my
chart (~0.001). Sometimes it happens that all the numbers I add are
equal, resulting in an unreadable "flat" chart.
I guess a work-around with fl_set_charts_bounds() could be a solution,
but should it be necessary?
Now, the documentation does not specify that autoscaling will occur
every time, only that all values will be displayed. However, I find it
inconsistent that (1.00, 1.01) is scaled and (1.00, 1.00) is not.
Any opinions?
Sindre
-- Sindre Mehus __ mailto:mehus@darmstadt.gmd.de GMD-IPSI /\_\ http://www.cs.uit.no/~sindrem/ Dolivostr. 15 \/_/ Tel: +49 6151 869 902 D-64293 Darmstadt, Germany Fax: +49 6151 869 966 _________________________________________________ To unsubscribe, send the message "unsubscribe" to xforms-request@bob.usuf2.usuhs.mil or see http://bob.usuf2.usuhs.mil/mailserv/xforms.html Xforms Home Page: http://bragg.phys.uwm.edu/xforms List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/xforms-archive/