Re: drawPolyLine
From: Paul Lutus (nospam_at_nosite.zzz)
Date: 10/01/04
- Next message: Ann: "Re: Can HTML be translated to XHTML perfectly?!"
- Previous message: Taji: "drawPolyLine"
- In reply to: Taji: "drawPolyLine"
- Next in thread: Taji: "Re: drawPolyLine"
- Reply: Taji: "Re: drawPolyLine"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 01 Oct 2004 11:34:00 -0700
Taji wrote:
> Does anyone have a servlet that draws a poly-line graph that I can
> use? I have one but it draws the graph with the origin at the top left
> corner of the image object. I just need to know how to translate the
> graph so that the origin is at the bottom left corner so it looks like
> a normal graph with x and y coordinates.
Very briefly:
1. Find the height of the drawing surface.
2. Subtract all y coordinates from the height established in (1).
In other words, instead of plotting x,y, plot x,h-y.
-- Paul Lutus http://www.arachnoid.com
- Next message: Ann: "Re: Can HTML be translated to XHTML perfectly?!"
- Previous message: Taji: "drawPolyLine"
- In reply to: Taji: "drawPolyLine"
- Next in thread: Taji: "Re: drawPolyLine"
- Reply: Taji: "Re: drawPolyLine"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|