1
$\begingroup$

I am importing data from Excel

CorCount75 = 
  Import["D:\CapstoneResearch\75Data.xlsx", {"Data", 2, Range[3, 23],  Range[3, 68]}]

The problem that I am facing is with the Range parts. When I use

 ListPlot3D[CorCount75, 
   PlotRange -> {{0, 65}, {0, 21}, All}, 
   BoxRatios -> {1, 21/65, .5}, Boxed -> False, 
   AxesLabel -> {"Xcm", "Ycm" , "cGy"}]`

The $x$ and $y$ axes are the values in their respective ranges. What I want to do is rename the $x$-tick values so they range from -32.5 to 32.5 and $y$-tick values so they range -10 tp 10 (essentially, 0 corresponds to -32.5 and 65 to 32.5 and similarly for $y$), while keeping everything else in the plot the same. I'm not sure how to do that.

$\endgroup$
0
$\begingroup$
ListPlot3D[CorCount75, PlotRange -> {{0, 65}, {0, 21}, All}, 
 BoxRatios -> {1, 21/65, .5}, Boxed -> False, 
 AxesLabel -> {"Xcm", "Ycm", "cGy"}, 
 Ticks -> {Charting`FindTicks[{0, 65}, {-32.5, 32.5}], 
   Charting`FindTicks[{0, 21}, {-10, 10}], Automatic}]
$\endgroup$
  • $\begingroup$ This just seems to shift the axes and cut off part of the graph. What I'm looking for is direct replacement. I made an edit in my original post to clarify. $\endgroup$ – roshoka Oct 8 '18 at 22:17
  • $\begingroup$ @roshoka, please see the new version. $\endgroup$ – kglr Oct 8 '18 at 23:14
  • $\begingroup$ It worked, thank you. $\endgroup$ – roshoka Oct 9 '18 at 1:56

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.