0
$\begingroup$

I have a Plot in a cell of a Mathematica notebook. The Plot was made with data that I no longer have. I want to modify the label of one of the axes, without running the plot command again (since I don't have the data). How can I do this?

$\endgroup$
2
  • $\begingroup$ If you put the marker after the plot and write // InputForm and then evaluate, it should give you a Graphics expression that you can modify. $\endgroup$
    – C. E.
    Commented Mar 11, 2015 at 18:13
  • $\begingroup$ Proposed duplicate: (17250) $\endgroup$
    – Mr.Wizard
    Commented Mar 12, 2015 at 20:51

1 Answer 1

3
$\begingroup$

You can use Show to change options in existing graphics.

plot = Plot[Sin[x],{x,0,10}, AxesLabel -> {x,y}]

Mathematica graphics

Show[plot, AxesLabel -> {x, Sin[x]}]

Mathematica graphics

Modifying the actual contents is more difficult and involves examining the contents of the Graphics expression.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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