How to Fill Areas Between Curves in Mathematica?

  • Thread starter Thread starter rularn
  • Start date Start date
  • Tags Tags
    Mathematica
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
rularn
Messages
8
Reaction score
0
Hi!

I don't know where to put this but I hope you guys can help me. Its simple.

How do I fill the area in mathematica between:

3/(4 x), 4/(4 x), 1/(4 x^3), 1/(2.7 x^3) ?


Code:
Plot[{3/(4 x), 4/(4 x), 1/(4 x^3), 1/(2.7 x^3)}, {x, 0.45, 0.75}, 
 Ticks -> False, AxesLabel -> {V, P}, PlotRange -> {0.5, 3}]

Thank you
 
Physics news on Phys.org
rularn said:
How do I fill the area in mathematica between:

Why don't you try to add the Filling option? This fills the curves between the 1st and 2nd, and 3rd and 4th function. If you want the strips to be organized differently, you would have to explain what you want more accurately. Try:

Code:
Plot[{3/(4 x), 4/(4 x), 1/(4 x^3), 1/(2.7 x^3)}, {x, 0.45, 0.75}, 
 Ticks -> False, AxesLabel -> {V, P}, PlotRange -> {0.5, 3}, 
 Filling -> {1 -> {2}, 3 -> {4}}]