1

How to plot the function f(x) so that one part be a ticker line than another depending on the value x? (Curve is efficient frontier - portfolio optimization)

  • Combine several plots using Show. Choose the range of x for each Plot. Set the line width for the plot you want. You may need to include a PlotRange with the first plot so that Show will include the full range even though each plot only covers part of the range – Bill Feb 01 '14 at 04:42
  • See this: http://mathematica.stackexchange.com/q/28202/121 – Mr.Wizard Feb 02 '14 at 08:50

1 Answers1

1
f[x_] := x^2;
Show[
  Plot[f[x], {x, -1, 1}, PlotRange -> {{-1, 2}, {-1, 4}}], 
  Plot[f[x], {x, 1, 2}, PlotStyle -> Thickness[.02]]
]
Bill
  • 3,664
  • 1
  • 12
  • 9