0
$\begingroup$

How come the two following ContourPlots do not overlay perfectly?

p4 := ContourPlot[u^4/12 == a^4/6, {u, 0, 3}, {a, 0, 3}, ContourShading -> False, ContourStyle -> Red, Background -> White]

p5 := ContourPlot[u == (2)^(1/4)*a, {u, 0, 3}, {a, 0, 3}, ContourShading -> False, ContourStyle -> Magenta, Background -> White]

Show[p4, p5]

enter image description here

$\endgroup$
1
  • $\begingroup$ Try increasing the number of PlotPoints. $\endgroup$ – Rohit Namjoshi Mar 10 '20 at 19:05
1
$\begingroup$

Increase the PlotPoints and/or the MaxRecursion

Clear["Global`*"]

ContourPlot[{u^4/12 == a^4/6, u == 2^(1/4)*a},
 {u, 0, 3}, {a, 0, 3},
 ContourShading -> False,
 ContourStyle -> {Red, Magenta},
 Background -> White,
 PlotPoints -> 50,
 MaxRecursion -> 5]

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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