Re: How can I creat a user coordinate system for my routine?

• To: mathgroup at smc.vnet.net
• Subject: [mg27023] Re: How can I creat a user coordinate system for my routine?
• From: Brian Higgins <bghiggins at ucdavis.edu>
• Date: Tue, 30 Jan 2001 23:22:39 -0500 (EST)
• References: <94r8bq\$ii1@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```Lewen, In my previous post the solution I gave changes the sign of the
ticks on the x-axis. Here is a function that keeps the ticks with the
correct sign.

UCS[f_, xmin_, xmax_] :=
Show[Plot[f, {x, xmin, xmax}, DisplayFunction -> Identity,
AxesOrigin -> {0, 0}] /. {x_, y_} -> {-x, y},
DisplayFunction -> \$DisplayFunction,
Ticks -> {Transpose[{-Range[xmin, xmax], Range[xmin, xmax]}],
Automatic}]

Then evaluate the function UCS with appropriate arguments

UCS[Cos[x], -3, 2.5\[Pi]]

Brian

In article <94r8bq\$ii1 at smc.vnet.net>,
liwen liwen <gzgear at yahoo.com> wrote:
> Dear friend,
> In mathematica4,the default coordinate system is world
> coordinate system(WCS),for example,on the XOY
> plane,the point pt={10,0} is on the right side of
> original poins {0,0}.Now I want to turn the WCS to be
> a user coordinate system(UCS) in which the direction
> of the Y axis is not changed but that of X axis is
> reversed,what should I do?The UCS must be created
> before running my routines because my routines are
> based on the the UCS but not WCS.
>
>  Best Regards,
>                 Liwen    1/26/2001
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great prices.
> http://auctions.yahoo.com/
>

Sent via Deja.com
http://www.deja.com/

```

• Prev by Date: Re: Unevaluated Expression
• Next by Date: Re: Queries: notebook, matrices
• Previous by thread: Re: How can I creat a user coordinate system for my routine?
• Next by thread: Functions and Packages