Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

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

share|improve this question

marked as duplicate by Michael E2, Kuba, Mr.Wizard Feb 1 '14 at 7:58

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

All kinds of ways to skin that cat, a quick-n-dirty way is something like this: Plot[Sin[x], {x, 0, 10}, Epilog -> Plot[Sin[x], {x, 3, 5}, PlotStyle -> Thickness[.01]][[1]]] – ciao Feb 1 '14 at 4:54
@MichaelE2: That is a sweet answer from you in that link. – ciao Feb 1 '14 at 5:08
Plot[Sin[x], {x, 0, 2 Pi}, PlotPoints -> 300] /.  Line[x_] :> Line /@ Partition[x, 2, 1] /. 
                                     Line[x_] :> {Thickness[.02 Abs@x[[1, 2]]], Line[x]}

Mathematica graphics

share|improve this answer
You have not only skinned that cat, you've made a fur-covered Bentley out of it. +1 – ciao Feb 1 '14 at 5:09
@rasher Slightly better now – Dr. belisarius Feb 1 '14 at 11:39

Not the answer you're looking for? Browse other questions tagged or ask your own question.