I'm working with pgfplots, and I have a curve on a graph which is basically a rect. I would like to color the part on top of it, not the part under it. I have this code:
\addplot[fill=\sixthplotcolor, fill opacity=0.5, thick, mark=none, color=\sixthplotcolor]
coordinates {
(1, 40)
(10, 400)
(100, 4000)
(150, 6000)
(200, 8000)
(250, 10000)
(300, 12000)
(350, 14000)
(500, 20000)
(750, 30000)
(1000, 40000)
} \closedcycle;
Which colors under the curve, but not over.
Can anyone help me? Sorry for the dumb question, I'm new to pgfplots.

-- (axis cs:0,40000) \closedcycle;and it should fill the upper part. – percusse Jun 14 '12 at 15:32-| (current plot begin);. – Jake Jun 14 '12 at 15:33-- (axis cs:0,40000)and-| (current plot begin);do exactly? – Madhatter Jun 14 '12 at 15:35\documentclassand the appropriate packages so that those trying to help don't have to recreate it. – Peter Grill Jun 14 '12 at 19:24