RE: Re: Eliminating a "Unit"
- To: mathgroup at smc.vnet.net
- Subject: [mg16693] RE: [mg16580] Re: Eliminating a "Unit"
- From: "Tomas Garza" <tgarza at mail.internet.com.mx>
- Date: Sat, 20 Mar 1999 02:09:03 -0500
- Sender: owner-wri-mathgroup at wolfram.com
> Robert B. Love wrote
>
> >My problem stems from a function that returns a list of angles with
> >some built in label like this:
> >
> >data={92.123 Degree, 94.444 Degree, ...}
> >
> >When I go to graph the data it seems that ListPlot converts it to
> >Radians. Ideally I would like a way to strip the "Degree" units off
> >of the list. Alternatively, how do I make ListPlot graph the data the
> >way I supply it?
> >
>
> Use this trick:
>
> data=data/.Degree->1
>
> Hope that helps,
> Peltio
> peltioNOS at PAMusa.net
Peltio,
I'd rather use
In[11]:=
data/.{x_,y_}->{180 x/Pi,180y/Pi}
Out[11]=
{92.123,94.444}
Tomas Garza
Mexico City