File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes help in plotting points Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "help in plotting points" Watch "help in plotting points" New topic
Author

help in plotting points

Abhi Chat
Ranch Hand

Joined: Oct 10, 2004
Posts: 57
Hi,

could somebody help me in ploting some values in a in a specifies axis.
Suppose I have file

cond 1 val1 val2 val2 val3

1 2 5 6 7
2 5 6 -1 1
3 4 5 5 7
4 1 1 6 10

Now I have to plot the conditions according to the values

Like plot cond1 with values 2, 5, 6, 7
Then plot cond2 with values 5,6,-1, 1 and in the same axis

Im uisng swing for the entire apps
Could u suggest how I would do that..is there any plotting functions´┐Ż.

[EJFH Everyone feels their question is urgent. No need to say so in your subject line. ]
[ October 19, 2004: Message edited by: Ernest Friedman-Hill ]

SCJP 1.4<br />Preparing for <br />SCJD and SCWCD
Rachel Swailes
Ranch Hand

Joined: May 18, 2004
Posts: 434
Have you had a look at the Graphics object? There are methods there to draw lines when given a series of points.

Cheers,
Rachel
Abhi Chat
Ranch Hand

Joined: Oct 10, 2004
Posts: 57
actually i dont want lines to join the points..is there a way to join them by curves..or smooth lines...
Rachel Swailes
Ranch Hand

Joined: May 18, 2004
Posts: 434
Graphics also has methods to draw arcs and you can set the line to look however you want. You will just have to do some calculations to work out the angles.

Rachel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help in plotting points
 
Similar Threads
Line chart problem
Comparing arrays
Game Programming Problem! J2ME
urgent help in plotting points
Struts ActionMessage not displaying multiple dynamic values