[Date Prev][Date Next][Index][Thread] [SGT Mail Archive] [SGT Main Page]

Plotting Scatter Graphs



*************************************************
Message from the sgt mail list.
*************************************************

Hi,

I've succesfully use JPlotLayout to create a series of time based and non-time 
based graphs. However, i now need to plot scatter graphs.

If i have two arrays of doubles, one with the x values and one with the y 
values, what do i need to do to put this into a scatter plot using 
JPlotLayout?

I've tried:

 o use SimpleTuple( x, y, "title")
 o initialise a JPlotLayout with parameters:
     new JPlotLayout( 0, false, false, "graph name", null, false)
 o then, set this to a SGTData object called data_ and do a 
   JPlotLayout.addData( data_, "keytext") on the JPlotLayout object.

(which works for SimpleLine objects)

Any help is much appreciated! :)

Yee.


*************************************************
To remove yourself from this mailing list,
send mail to <Majordomo@epic.noaa.gov> with
"unsubscribe sgt" in the message body.