# How to draw a function image within multiple interval definition domains? [duplicate]

Plot[x^3, {x, -1, 3 || 7, 10}]


Note that the intervals of the function are separated. There are two intervals, (- 1,3) and (7,10)

• Plot[x^3, x ∈ Interval[{-1, 3}, {7, 10}]] Mar 27 at 11:50
• What if a certain interval contains positive or negative infinity? Mar 27 at 12:04
• Plot[x^3, x \[Element] Interval[{-1, 3}, {7, 10}, {20, 22}, {30, Infinity}]]Why can't I draw a function image? Mar 27 at 12:05
• It is impossible to do this by Interval. Now we can only using Plot[x^3, {x, 30, ∞}] Mar 27 at 12:18
• Do not ask questions in comments. If your original question did not adequately describe your problem then edit the question to amplify or clarify what your problem actually is. Ideally give sufficient thought to your question before you ask so that is does not need to be modified. Mar 27 at 14:34

Unless, I completely misunderstood the question:

Show[{Plot[x^3, {x, -1, 3}], Plot[x^3, {x, 7, 10}]},
PlotRange -> Full] Show[{Plot[x^3, {x, -1, 3}], Plot[x^3, {x, 7, 10}]},
PlotRange -> Full] The following range does not play nice with other ranges.

Plot[x^3, {x, 30, Infinity}] Of course, I may have missed ormisunderstood something.