Filling the region under a line

 Filling the region under a line

I have the following straight line

y[x_] = 4 x - 1;
Plot[y[x], {x, 0, 1}, PlotRange -> {{0, 1}, {0, 2}}]`

I want to highlight the two regions separated by the straight line, such that they look nice and distinct.

1 Answer

Let’s block ads! (Why?)

Recent Questions – Mathematica Stack Exchange