Say I had some good reason to use, for example
SetOptions[Plot,ImageSize->500, LabelStyle->OutrageousPink];
But now sometime has passed, life has changed, and I changed my mind. I don't remember which options I have set for plot, let alone what their default values were. Is there a way to "undo" this?
PS: I know that I can save in advance all the options with plotOptions=Options[Plot]
, but this requires thinking ahead, which I'm obviously trying to avoid...
Answer
I saw this somewhere else on here, but I cannot remember where. The simplest method is to use a fresh kernel:
SetOptions[Plot, Axes -> False];
LaunchKernels[1];
ParallelEvaluate[Options[Plot, Axes]]
(* {{Axes -> True}} *)
then you dispose of the kernel
CloseKernels[]
(* {KernelObject[1, "local", ""]} *)
Comments
Post a Comment