MathGroup Archive 2003

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

Search the Archive

Re: Changing style in Plot

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

In a message dated 2/20/03 5:40:18 AM, thomas.manz at physik.uni-regensburg.de
writes:


> 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]]]
>
>

Needs["Graphics`Graphics`"];

Needs["Graphics`Colors`"];



f[x_] := 3x-1;


xd=4;


DisplayTogether[

     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