1
$\begingroup$

I have the following simple code:

plot = 
  ListPlot3D[mydata, DataRange -> {{0, 6}, {0, 6}}, 
    PerformanceGoal -> "Quality", BoxRatios -> {1, 1, .7}, 
    AxesLabel -> 
      {Style[Subscript[t, l], FontSize -> 21], 
       Style[Subscript[t, u], FontSize -> 21], 
       Style[Subsuperscript[β, a, m]/Subsuperscript[β, a, a], FontSize -> 21]}, 
       BaseStyle -> 18]

mydata is a 60 by 60 matrix. The problem is that the data range was plotted wrong. Instead, I had to have

DataRange -> {{-6, 0}, {0, 6}}

Now I would like to use "show" for the already obtained figure to change only the DataRange. However, show doesnt recognize DataRange.

How can one approach to this problem? I can of course change my original command instead of using show, but in this case I am unable to arrange the coordinates of the 3D plot so that it will look like the same as the one I obtained before.

$\endgroup$

closed as off-topic by m_goldberg, dr.blochwave, user9660, MarcoB, ilian Oct 20 '15 at 19:39

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question cannot be answered without additional information. Questions on problems in code must describe the specific problem and include valid code to reproduce it. Any data used for programming examples should be embedded in the question or code to generate the (fake) data must be included." – m_goldberg, dr.blochwave, Community, MarcoB, ilian
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    $\begingroup$ DataRange controls how the plotting function treats the data. It is not an option that influences how already existing graphics are displayed. This is why is it not a Show/Graphics option. You either have to go back to the plotting function, or try relabelling the axes of the already existing plot. Or maybe use Scale/Translate on the existing plot's contents (on its graphics primitives). $\endgroup$ – Szabolcs Oct 20 '15 at 14:33
  • $\begingroup$ I'm not sure what your issue is exactly. In your plot, you have to specify the DataRange because otherwise the axes would go from 1 to 60. So does it look correct when you execute the plot command? What changes when you use Show? $\endgroup$ – Jason B. Oct 20 '15 at 14:34
  • $\begingroup$ if I use plot everything is correct. I rotated the original figure later. and also upscaled. these are the things I loose if I replot it with the correct parameters. $\endgroup$ – Seyhmus Güngören Oct 20 '15 at 14:37
  • $\begingroup$ @Szabolcs how to relabel? $\endgroup$ – Seyhmus Güngören Oct 20 '15 at 14:40
  • $\begingroup$ This would be easier to diagnose if you showed all of the code you use to produce your good plot and then the code you apply to get the bad plot, along with each plot and an explanation of what you don't like in the final image. Give some sample data as well, even if it's generated with RandomReal or something. $\endgroup$ – N.J.Evans Oct 20 '15 at 14:59

Browse other questions tagged or ask your own question.