How to Fill Areas Between Curves in Mathematica?

  • Thread starter Thread starter rularn
  • Start date Start date
  • Tags Tags
    Mathematica
AI Thread Summary
To fill the area between curves in Mathematica, the Filling option can be utilized. By adding Filling to the Plot function, users can specify which curves to fill between. For example, using Filling -> {1 -> {2}, 3 -> {4}} will fill the area between the first and second curves, as well as the third and fourth. This approach allows for customization of the filled areas based on user preferences. Properly defining the desired areas will yield the best results in visual representation.
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}}]
 
Thread 'Have I solved this structural engineering equation correctly?'
Hi all, I have a structural engineering book from 1979. I am trying to follow it as best as I can. I have come to a formula that calculates the rotations in radians at the rigid joint that requires an iterative procedure. This equation comes in the form of: $$ x_i = \frac {Q_ih_i + Q_{i+1}h_{i+1}}{4K} + \frac {C}{K}x_{i-1} + \frac {C}{K}x_{i+1} $$ Where: ## Q ## is the horizontal storey shear ## h ## is the storey height ## K = (6G_i + C_i + C_{i+1}) ## ## G = \frac {I_g}{h} ## ## C...

Similar threads

Back
Top