Re: log scale

Hi Julius,

I am not the expert on AxisScale, but it looks like its:

  public void setMinorTickSpacing(double spacing)
  public void setMajorTickSpacing(double spacing)

should do what you want.

Good luck,
Bill
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html


On Wed, 8 May 2002, julius wrote:

> Hi Bill,
>
> Thank you for the sample code, it helped us get started.
> Since auto-scaling is important for us, we are working on some small methods
> which allows auto-scaling in log-log and semi-log plots, and calculates the
> coordinates of minor and major ticks for the logarithmic axis.
>
> I can not see any other way to put ticks on a log axis (if I want more ticks
> than at the powers of 10) then modify the AxisScale class and add these
> mothods to the AxisScale class. I would appreciate if you could confirm this,
> since if there is another way, I would prefer not to modify any VisAD class.
>
> Julius
>
>
>
>
>
> >Hi Julius,
> >
> >
> >See:
> >
> >  http://www.unidata.ucar.edu/glimpse/visad-list/1983
> >
> >which includes a sample program for doing this. It isn't just
> >a simple widget, but it does get the job done using a custom
> >LogCoordinateSystem and explcitly setting axis labels.
> >
> >Good luck,
> >Bill
>
>
>


  • 2002 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: