Bug introduced in 12.1.0, persisting through 13.0 and fixed in 13.1
MoleculePlot@Molecule["O=C(C1CCC1)S[C@@H]1CCC1(C)C"]
This is a documented example usage of MoleculePlot
, but it returns a Graphics
expression that is gray everywhere.
PacletFind["Chemistry"][[1]]["Version"]
(* 12.2.31 *)
I confirmed that this is a bug. It occurs in certain situations. The following code produces the scene I've seen:
With[{def = Options[$FrontEnd, DefaultStyleDefinitions]},
DownValues@Chemistry`MoleculePlot`LabelGraphics`Private`labelGraphics = Last@DownValues@Chemistry`MoleculePlot`LabelGraphics`Private`labelGraphics};
SetOptions[$FrontEnd, DefaultStyleDefinitions->"Package.nb"];
Print@MoleculePlot@Molecule["O=C(C1CCC1)S[C@@H]1CCC1(C)C"];
SetOptions[$FrontEnd, def];
]