Re: minimum number of contours levels

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Wed, 31 Oct 2007 12:48:01 -0600

Hi Ivan,

No there is not currently a way to explicitly specify a minimum
number of contour levels.
As you are probably already aware, you can set a maximum number of
levels using
cnMaxLevelCount. The automatic level picking algorithm tries to pick
a "nice" level spacing
that gives a number of levels that is close to but does not exceed
I realize that with a series of plots, different data max/min values
can result in different level spacings
that make the number of levels vary substantially between plots.

You can, while still using automatic mode, set the level spacing to a
specific value using
cnLevelSpacingF. To create a series of similar looking plots
automatically you could try retrieving
the level spacing after the first plot, then set it to that value for
the subsequent plots.

We could possibly consider having a lower limit on the number of
levels in a future release.

On Oct 31, 2007, at 11:57 AM, Ivan Lima wrote:

> Hello all,
> Is there a way to set the minimum number of contours levels in
> a contour plot without setting them explicitly (still using
> cnLevelSelectionMode=AutomaticLevels)?
> Thanks,
> - Ivan
> --
> Ivan Lima
> Woods Hole Oceanographic Institution, MC&G MS #25
> 360 Woods Hole Road, Woods Hole, MA 02543-1543 USA
> _______________________________________________
> pyngl-talk mailing list

pyngl-talk mailing list
Received on Wed Oct 31 2007 - 12:48:01 MDT

This archive was generated by hypermail 2.2.0 : Thu Nov 01 2007 - 07:23:55 MDT