My question is similar to this question, of which I have found the solution here. The solution enables me to edit a Plot after it has been drawn, so that Mathematica doesn't have to compute everything it needs for the plot again.

Now I have the same question, but for a DensityPlot, or actually a ListDensityPlot (I'm assuming here that the answers to this question will be similar for both commands, correct me if I'm wrong). In particular, I have some ListDensityPlots of which I want to change the frame labels. How can I do this?

To give a specific example, given the plot

p = ListDensityPlot[Table[{x, y, x^2 - y^2}, {x, -1, 1, 1/100}, {y, -1, 1, 1/100}] 
// Flatten[#, 1] &, FrameLabel-> {x, y}],

can I add the option RotateLabel -> False afterwards using Show?


closed as off-topic by MarcoB, user9660, dr.blochwave, Dr. belisarius, Karsten 7. Nov 17 '15 at 6:30

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

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – MarcoB, Community, dr.blochwave, Dr. belisarius, Karsten 7.
If this question can be reworded to fit the rules in the help center, please edit the question.

p1 =
  Table[x^2 - y^2, {x, -1, 1, 1/10.}, {y, -1, 1, 1/10.}],
  FrameLabel -> (Style[#, 14, Bold] & /@ {x, y}),
  PlotLabel -> Style["Rotated", 14, Bold],
  RotateLabel -> True];

p2 =
  RotateLabel -> False,
  PlotLabel -> Style["Not rotated", 14, Bold]];

Grid[{{p1, p2}}]

enter image description here

  • $\begingroup$ Thanks, strange that I didn't realize that this actually worked... So the FrameLabel soft options are options I can easily change with Show. Do you know how to change other "non-soft" options of the plot which, like the ColorFunction? $\endgroup$ – ScroogeMcDuck Nov 16 '15 at 13:00
  • $\begingroup$ With Show you can only change the options listed with Options[Graphics]. To change the ColorFunction you have to make another plot. $\endgroup$ – eldo Nov 16 '15 at 13:15

Not the answer you're looking for? Browse other questions tagged or ask your own question.