Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I change the default values for the x- and y- axis in this example without altering the z-axis values? For instance, I want the x-axis to follow a range based on "x= 0.01 i+3" (not just i) , and y axis to range from -10 to 10 (instead of the default 0 to 20 shown on the plot below)?

ListPlot3D[Table[Sin[j^2 + i], {i, 0, 10, 1}, {j, -10, 10, 1}], 
 Mesh -> None, InterpolationOrder -> 3, 
 ColorFunction -> "SouthwestColors"]

Mathematica graphics

share|improve this question
up vote 5 down vote accepted
ListPlot3D[Table[Sin[j^2 + i], {i, 0, 10, 1}, {j, -10, 10, 1}], 
 Mesh -> None, InterpolationOrder -> 3, 
 ColorFunction -> "SouthwestColors", 
 DataRange -> {{0, .01 10 + 3}, {-10, 10}, Automatic}]

Mathematica graphics

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.