• Post Reply Bookmark Topic Watch Topic
  • New Topic

Graphing program question  RSS feed

 
Adam Wilkins
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone suggest a good method of graphing data that will fall outside the range of the X and Y resolution of my window?

Let's say I had a parabola with x and y values over 2000. How could I put that in an X/Y coordinate system in a window that is only 300x300 using the drawLine() for each point? I have tried some division to scale it down, but I don't quite get the results I want.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, what results do you get? Scaling down by a factor would be the approach to take. Maybe you can post a snippet of code that shows what you're doing, and describe for us what you were expecting, and what you are actually observing.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!