2
$\begingroup$

This is the code I am using:

Plot3D[MainLogisticSolution[.23, 0, t, initialpopsize], {t, 0, 
  200}, {Q, 0, 1000}, 
 AxesLabel -> {"t (days)", "Q (cms)", "n (population size)"}]

To produce this plot:

3D Plot- flood effects on pop. size over time

However, I am wondering how I can get the origins for the axes to flip... In particular, I would like the 'Q' axis origin to be flip-flopped, as well as the 'time' axis. Thanks much.

$\endgroup$
  • $\begingroup$ I think you've just rotated the plot to make it look like that. Try rotating it 180 degrees. $\endgroup$ – Rahul Dec 7 '15 at 22:47
  • 1
    $\begingroup$ What do you mean by "flip-flopped"? $\endgroup$ – Edmund Dec 7 '15 at 22:48
1
$\begingroup$
plot =
 Plot3D[Sin[x + y^2], {x, -2, 2}, {y, -2, 2},
  AxesLabel -> {"t", "Q", "n"}]

enter image description here

Now use Rotateto flip the Q-axis

Graphics3D[
 Rotate[First@plot, Pi, {{1, 0, 0}, {0, 1, 0}}],
 Axes -> True,
 AxesLabel -> {"t", "Q", "n"}]

enter image description here

You can also use Viewpoint to look at different perspectives

Plot3D[Sin[x + y^2], {x, -2, 2}, {y, -2, 2},
 AxesLabel -> {"t", "Q", "n"},
 ViewPoint -> {Front, Left}]

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.