Mathematica 9 is now available
Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

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

Search the Archive

Re: Changing style in Plot

  • To: mathgroup at
  • Subject: [mg39512] Re: [mg39499] Changing style in Plot
  • From: BobHanlon at
  • Date: Fri, 21 Feb 2003 04:07:26 -0500 (EST)
  • Sender: owner-wri-mathgroup at

In a message dated 2/20/03 5:40:18 AM, thomas.manz at

> I'd like to change the style of a plot in dependency on the x-value. I think
> this WRONG example shows, what I want:
> Plot[3x-1, {x,0,10}, PlotStyle->If[x>4,Thickness[0.1],Thickness[0.2]]]



f[x_] := 3x-1;



     Plot[f[x], {x, 0, xd},

       PlotStyle -> {Blue, Thickness[0.02]}],

     Plot[f[x], {x, xd, 10},

       PlotStyle -> {Red, Thickness[0.01]}]];

Bob Hanlon

  • Prev by Date: Re: series expansions in two variables problem
  • Next by Date: Re: Changing style in Plot
  • Previous by thread: Re: Changing style in Plot
  • Next by thread: Re: Changing style in Plot