Plot3D에서 파이썬처럼 축 조정

Sep 21 2020

동일한 플롯을 mathematica 및 python과 비교하고 싶지만 서로 다른 축 순서를 사용합니다. 나는 Plot3D파이썬에서 다음 플롯처럼 보이 도록 변경하려고 시도

했지만 많은 트릭이 작동하지 않았습니다. 즉 내가 시도 AxesEdge, AxesOrigin, ViewPoint,$\ldots$ 기타

동적 및 회전을 피하는 간단한 방법이 있습니까?

다음 코드를 사용하고 있습니다.

domain = {0, 1};
Plot3D[Exp[x y], {x, 0, 1}, {y, ##}, ColorFunction -> "Rainbow",
PlotLegends -> Automatic, AxesLabel -> {"x", "y"}] & @@ domain

다음을 제공합니다.

답변

4 xzczd Sep 21 2020 at 19:53

이것이 필요한 것입니까? :

domain = {0, 1};
Plot3D[Exp[x y], {y, ##}, {x, 0, 1}, ColorFunction -> "Rainbow", AxesLabel -> Automatic,
   ScalingFunctions -> {"Reverse", "Reverse"}, AxesEdge -> {Automatic, {1, -1}, {1, 1}},
   PlotTheme -> "Detailed"] & @@ domain