# How to fill region between two graphs using different styles or patterns?

How to fill region between two graphs using different styles or patterns?

How to fill region between two graphs using different styles or patterns?

How to fill region between two graphs using different styles or patterns?

add a comment

1

For more details, you should go to the plotting documentation and search for "fill " - in particular, you can even fill between different functions using the function itself as the key value. And example from there:

```
sage: plot(1.13*log(x), 1, 100, fill = lambda x: nth_prime(x)/floor(x), fillcolor = 'red')
```

1

Are you looking for something like this:

```
f(x) = -1/8*x^3+x
g(x) = 1/2*x
h(x) = 1/4*x^2
plot([f,g,h],-2,3,fill={0:g,1:h,2:0})
```

Please start posting anonymously - your entry will be published after you log in or create a new account.

Asked: ** 2014-01-11 14:17:07 +0200 **

Seen: **659 times**

Last updated: **Jan 11 '14**

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.