Member Avatar for iamthwee

How can I plot graphs in java? I mean to say is there any API I can use for plotting stuff like
y = 5x^2 + 3x - 3: with the x and y axis ...and with units?

ThanQ

Recommended Answers

All 4 Replies

I had a really awesome piece of code that would plot ANY order of polynomial virtually with no work and virtually no real utility methods. I may have it and may not :) I'll look for it though.

I might also add that you should use the drawPolyLine or whatever the methods called instead of continously drawing lines. It makes it a full line instead of having the dots.

Member Avatar for iamthwee

Thanx I've just downloaded the swingx package. The screeny here looks impressive.
http://www.jroller.com/page/gfx?entry=jxgraph_in_swingx

Need to figure out how to use it now :)

However, I'll have a go at doing this myself first, drawpolyline you say...I'll look into that. ThanQ

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.