Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I am writing some code in which I combine a ParametricPlot[] with a RegionPlot[]. Mathematica is very good at figuring out appropriate bounds for the ParametricPlot[], and I would like to reuse the same bounds for creating the RegionPlot[]. How can I tell Mathematica to reuse the bounds?

share|improve this question
    
If you mean PlotRange, then the function completePlotRange in this answer to How to get the real PlotRange using AbsoluteOptions? might be of interest. –  Michael E2 Nov 23 '13 at 22:22
    
@MichaelE2 Doesn't seem necessary in this particular case –  belisarius Nov 23 '13 at 22:34
    
@belisarius I noticed, but I still thought it was a good reference for others, as well as a possible duplicate. –  Michael E2 Nov 24 '13 at 0:15

1 Answer 1

up vote 2 down vote accepted
Show[RegionPlot[x + y < 1/2, Evaluate[Sequence @@ MapThread[Join, {{{x}, {y}}, (PlotRange /. 
                                                            AbsoluteOptions[#, PlotRange])}]]], 
     #] &@ ParametricPlot[{Sin[u], Sin[2 u]}, {u, 0, 2 Pi}]

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.