• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help in plotting points

 
Abhi Chat
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Rachel Swailes
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic