NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: Missing Data Values

Ben:

Usually you can just use Double.NaN (or Float.NaN) for missing values,
but you say you need this to be "indicated" on the graph.  In that case,
you might need/want to make a symbol of some kind?  If you're using
Jython, there's an easy-to-use interface for Shapes or text strings that
would allow you to put little symbols at the points...for example:

   subs.drawString(display, "X", (9321, 101), color="red", center=1)

would draw a red-colored "X" at time=9321, value=101 (assuming time->x
axis and value->y axis).

tom

On Mon, 22 Jul 2002, Ben Monnahan wrote:

> Hi,
>
> I'm creating a simple plotting application.  It uses a simple 2D line
> plot.  Everthing has been going fairly well but I seem to have hit a
> roadblock.  I need missing values to be indicated on the graph.  I found
> the MathType.missingData() method which seems to be a partial answer to
> what I want to do, but I don't know how to use it.  I'm currently using a
> FlatField to store my values. Is this wrong?  It is a really simple graph,
> so I pretty much followed the tutorial.  The function is Time->Value.
>
> Can someone point me in the right direction?
>
>
> Thanks,
> Ben Monnahan
>
>

--
Tom Whittaker
University of Wisconsin-Madison
Space Science and Engineering Center
Cooperative Institute for Meteorological Satellite Studies
Telephone/VoiceMail:  608.262.2759


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