aspose file tools*
The moose likes Beginning Java and the fly likes Graphing program question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Graphing program question" Watch "Graphing program question" New topic
Author

Graphing program question

Adam Wilkins
Greenhorn

Joined: Oct 19, 2005
Posts: 24
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
Marshal

Joined: Mar 22, 2005
Posts: 42635
    
  65
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.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Graphing program question