W3C home > Mailing lists > Public > www-svg@w3.org > October 2001

RE: Changing the Y axis

From: <ronan@roasp.com>
Date: Wed, 10 Oct 2001 21:16:39 +0200
To: "albert valls" <albert_nexus@hotmail.com>, "Www-Svg@W3. Org" <www-svg@w3.org>
Message-ID: <EMENJCDHGFFGOCDJOBLMOENKCFAA.ronan@roasp.com>
Hi,

Unfortunately, SVG works from the top, left hand corner. There are two ways
to move the axis back to the bottom left hand.

1/ translate everyting by defining a transformation and using it in all
objects and use y = -y

2/ calculate all the points.

3/ create an svg document and embed it at the position you want using the
$svg->image() method. For this case, you just need to use y=-y.

I use option 2 for the line calculator at
http://roasp.com/svg/lines.html
This is the most reliable and fastest option but the most cumbersome.

Ronan.

§-----Original Message-----
§From: www-svg-request@w3.org [mailto:www-svg-request@w3.org]On Behalf Of
§albert valls
§Sent: Wednesday, October 10, 2001 1:48 PM
§To: www-svg@w3.org
§Subject: Changing the Y axis
§
§
§It's possible to change the coordinate system to make the Y axis work from
§bottom to top instead of top to bottom which is the default??
§
§
§thanks
§
§_________________________________________________________________
§Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp
§
§
Received on Wednesday, 10 October 2001 15:17:32 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:21 GMT