I have the following plot:
Plot[Table[C*r^2 + 2 C, {C, {25, 100, 150, 300}}] // Evaluate,
{r, 0, 1000},
PlotLegends ->LineLegend[{25, 100, 150, 300}, LegendLabel -> C,
LabelStyle -> {GrayLevel[0.2], Bold, 10}, LegendFunction -> "Frame"],
AxesLabel -> {r, Plot},
PlotLabel -> "Plot"]
But I need to include a constraint: r >= C.
So when C
is 300
, the plot should show only for r = 300
to r = 1000
.
How should I modify this code?
Table
toConditionalExpression[C*r^2 + 2 C, r >= C]
? $\endgroup$