Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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]]] –  rasher Feb 1 '14 at 4:54
@MichaelE2: That is a sweet answer from you in that link. –  rasher Feb 1 '14 at 5:08

1 Answer 1

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 –  rasher Feb 1 '14 at 5:09
@rasher Slightly better now –  belisarius Feb 1 '14 at 11:39

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