Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

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.


  • Prev by Date: Re: why the overflow problems when using assigned values a,b,c vs. actual numbers?
  • Next by Date: Re: Expanding $Path
  • Previous by thread: Re: Abs function & question about version 5
  • Next by thread: Re: change PlotStyle in Graphics object after the fact?