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: [mg39515] Re: [mg39499] Changing style in Plot
  • From: "milkcart" <milkcart at>
  • Date: Fri, 21 Feb 2003 04:07:35 -0500 (EST)
  • References: <>
  • Sender: owner-wri-mathgroup at

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>
To: mathgroup at
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

  • Prev by Date: Re: Converting Animations to QuickTime Movies Using iView MediaPro
  • Next by Date: Re: Changing style in Plot
  • Previous by thread: Changing style in Plot
  • Next by thread: Re: Changing style in Plot