1
$\begingroup$

I don't get why RegionFunction troncates even the places where x+y<1 !

{error, xf} = FindGeometricTransform[{{0, 0}, {1, 0}, {1, Tan[Pi/3]}/2}, {{0, 0}, {1, 0}, {0, 1}}]
DP = Show[DensityPlot[x^2*(-1 + x^2/(0.7^2)) + y^2*(-1 + y^2/0.7^2) - y*x, {x, 0, 1}, {y,0, 1}, RegionFunction -> Function[{x, y}, x + y <= 1]]]
Graphics[GeometricTransformation[First@DP, xf]]

enter image description here enter image description here

As you can see, the tips of the triangle respect the condition but they miss !

$\endgroup$
  • 2
    $\begingroup$ Use PlotRange -> All in DensityPlot $\endgroup$ – Okkes Dulgerci Nov 30 '18 at 14:14

Your Answer

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

Browse other questions tagged or ask your own question.