2

enter image description here How to draw 2d graph with y-axis, x-axis which begin with 0,0 coordinates and all values in positive direction?

It must be started at left bottom of canvas. y-axis and x-axis also need to draw in the canvas.

1 Answers1

2

Use an AffineTransform (or combination of them) to flip the y value, and shift 0,0 to the bottom left of the component.

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
  • @Andrew, see the attachment,I'm creating an object(with predefined width and height) in the canvas. also that object might be rotate with angle in the canvas. any suggestion to handle it with coordination? – pradeekrathnayaka Jun 12 '13 at 03:54