I have a complex plot of which’s calculation took quite a long time. Is it possible afterwards to modify certain attributes of the plot without the necessity to calculate it again?
Example:
p = Plot[Sin[x], {x, 0, 2 Pi}];
Question:
How can I access and modify directly p to e.g. set PlotLabel of p, or some other attributes?
p[[2]]//FullFormdisplays thePlotoptions used for plotting; you could pick an option that is already present and replace it with something like egp/.(DisplayFunction->Identity)->Sequence[DisplayFunction->Identity,PlotLabel->"just arrived!"]; if the option you want to change is already present then you can replace that directly egp/.(PlotLabel->__)->(PlotLabel->"just arrived!")– user42582 Nov 23 '17 at 10:07p /. (DisplayFunction -> Identity) -> Sequence[PlotLabel -> "just arrived!"]... please put your comment as an answer. – mrz Nov 23 '17 at 10:36Show[p, PlotLabel -> "whatever"]– Kuba Nov 23 '17 at 10:36DisplayFunction->Identityoption which is not what you want to do – user42582 Nov 23 '17 at 11:01