How to plot contours using radial cordinates?

Hello

I want to plot contours with radial cordinates i.e. THETA (angle value) and radius value (distance vale) around a point.

I will be having values in following format:

THETA DISTANCE VALUE

NOW i need to plot contours. HOW to proceed?

I am new to SWING or AWT, please guide me how to start?

Sandeep Arya
[363 byte] By [d0153030] at [2007-11-19 6:41:07]
# 1 Re: How to plot contours using radial cordinates?
I don't know if there is a plotting method in the java api for polar coordinates. I want to think I saw one but here is the formula for converting between.

// polar to Cartesian
double x = Math.cos( angleInRadians ) * radius;
double y = Math.sin( angleInRadians ) * radius;

// Cartesian to polar.
double radius = Math.sqrt( x * x + y * y );
double angleInRadians = Math.acos( x / radius );
Joe Nellis at 2007-11-10 2:24:27 >
# 2 Re: How to plot contours using radial cordinates?
Thanks a lot for feedback.

Well what about the next step i.e. HOW TO PLOT CONTOURS?

I am interested in plotting 2D contours only either line contour or colour contour.

Sandeep
d0153030 at 2007-11-10 2:25:35 >