Re: xyplot ticks in 0.86 - WHAT HAS HAPPENED?

Dr. T.C. Zhao (zhao@bragg.phys.uwm.edu)
Sun, 30 Mar 1997 18:20:34 -0600

To subscribers of the xforms list from "Dr. T.C. Zhao" <zhao@bragg.phys.uwm.edu> :

To subscribers of the xforms list from msz@ogle.ctio.noao.edu (Michal Szymanski) :
>with bounds and ticks set with:

> fl_set_xyplot_xbounds(plot, -0.3, 8.3);
> fl_set_xyplot_ybounds(plot, -1554.2, 14960.2); /* computed values !!! */
> fl_set_xyplot_xtics(plot, 9, 1);
> fl_set_xyplot_ytics(plot, 8, 1);

>XForms 0.86: X: -0.3 0.7 1.7 ... 7.7
> Y: -2e+03 4e+02 2e+03 4e+03 6e+03 8e+03 10445.8 12445.8 14445.8

>I have never understood why it is writing 2e+03 instead of 2000

I didn't either. Actually I did't even know it writes the label
this way. Turns out "%.0g" was the culprit. It is my fault
though, the label generator should've been "%g" for large integer tics.

Now for the problems with V0.86, looks like the generator needs to be
fixed so it performs better in all cases. For you specific case,
if you make the tic finer, say, set_ytic(8,2), things will
be the way V0.81 was.

_________________________________________________
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/