Ask Your Question
1

Fill the area below/above an x-y curve

asked 2013-12-24 16:43:09 +0200

Erel Segal-Halevi gravatar image

I want to draw a plot with the points:\

y >= f(x)

where f(x) is some function I define.

Using an x-y plot, I can draw only the function:

y = f(x)

Using an area plot, I can draw an area of a single column (i.e. not y as a function of x).

Is there any way I can fill the area above the x-y curve?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2015-02-16 15:53:26 +0200

craig durban gravatar image

There is (as yet) no way to directly shade y >= f(x)

A work-around is possible with the Area graph by plotting two overlaid graphs.

Graph 1 is f(x), showing a curve of your function. Shade below it with 50% transparency. Colour the line the same colour as the are of Graph 2.

Graph 2 is y=max(x), producing a rectangular block of a different colour reaching up to the highest value of f(x)

Some experimenting with colours and transparency will produce a reasonable shaded graph of y >= f(x)

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2013-12-24 16:43:09 +0200

Seen: 1,075 times

Last updated: Feb 16 '15