Re: Changing style in Plot
- To: mathgroup at smc.vnet.net
- Subject: [mg39515] Re: [mg39499] Changing style in Plot
- From: "milkcart" <milkcart at m17.alpha-net.ne.jp>
- Date: Fri, 21 Feb 2003 04:07:35 -0500 (EST)
- References: <200302201013.FAA11260@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
You can draw two Graphics with different Plotstyle and diferent range, then draw them in a graph ,using "Show". h[y_] := {Plot[3 x - 1, {x, 0, y}, PlotStyle -> Thickness[0.01`], DisplayFunction -> Identity], Plot[3 x + 4, {x, y, 10}, PlotStyle -> Thickness[0.05`], DisplayFunction -> Identity]} Show[h[7], DisplayFunction -> $DisplayFunction] ----- Original Message ----- From: "Thomas Manz" <thomas.manz at physik.uni-regensburg.de> To: mathgroup at smc.vnet.net Subject: [mg39515] [mg39499] Changing style in Plot > Hello, > > 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]]] > > Does anyone have an idea how to do this?? > > Thanks a lot > Thomas > >
- References:
- Changing style in Plot
- From: Thomas Manz<thomas.manz@physik.uni-regensburg.de>
- Changing style in Plot