I want to plot a line defined IMPLICITLY by the intersection of an equality and an inequality, i.e. a line that you can't easily simplify (and therefore take advantage of its form). Consider for instance the simple example
R=x > 0 && y == -((5 x)/3)
but assume you don't know which equalities and inequalities it involves (although you know it's a line and not a 2D region).
How can I plot the set R? I can't use RegionPlot as it only consider regions defined by inequalities, but at the same time ContourPlot
ContourPlot[R, {x, -2, 2}, {y, -2, 2}]
does not work.
I know there is the function ImplicitRegion, but
ContourPlot[ImplicitRegion[R, {x, y}], {x, -2, 2}, {y, -2, 2}]
does not work either.
I repeat, do not take advantage of the expressions in R - if you could a solution is to use ContourPlot with RegionFunction.
PS this question is related to Integration over a (non-parametric) curve defined by indicator function





RegionPlotuseful ? – b.gates.you.know.what Oct 28 '14 at 12:18RegionPlot+ImplicitRegionworks for me. http://i.stack.imgur.com/e4C9m.png – Oct 28 '14 at 12:25RegionPlot[R, PlotRange -> {{-10, 10}, {-10, 10}}]works, but
RegionPlot[R, {x, -10, 10}, {y, -10, 10}]doesn't. Any idea why?
– Nicola Oct 28 '14 at 12:32ContourPlotwork here. Before the region functionality of V10,RegionPlotwould have failed miserably on such a problem. To satisfy the OP's constraint is difficult withContourPlot. – Michael E2 Feb 17 '16 at 14:14ContourPlotcould be the correct tool to display a region considering thatRegionPlotexists. I'm still not sure what should be done here, but I guess it's better to err in the safe side. Vote retracted. – rhermans Feb 17 '16 at 16:07RegionPlotthe best approach. It seems to me that if one looks at an object as a contour, one would naturally considerContourPlot. If other plotters work with regions, why notContourPlot? (It's not a ground-breaking question to be sure, but I think it passes muster.) Thanks, in any case. – Michael E2 Feb 17 '16 at 22:01