Re: change PlotStyle in Graphics object after the fact?
- To: mathgroup at smc.vnet.net
- Subject: [mg47269] Re: change PlotStyle in Graphics object after the fact?
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Fri, 2 Apr 2004 03:30:12 -0500 (EST)
- Organization: Universitaet Leipzig
- References: <c4ggg8$3kb$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi, a Graphics[] object has not option PlotStyle and so you can't change it. When plot is evaluated the resulting graphics will only include a Line[] and p1 /. l_Line :> {RGBColor[1, 0, 0], l} will work. Regards Jens jose flanigan wrote: > > Hi, > > I have a number of graphics objects created like > > p1=Plot[f[x],{x,-1,1}] > p2=Plot[g[x], {x,-1,2}] > > and I was wondering if I can change the PlotStyle on p1 and p2 by > doing something like > > p2/.PlotStyle->{new plot style options} > > Any ideas? > > Thanks in advance. > > PS. Please reply to this group. Spammers have destroyed this e-mail > address.