"""Original explanatory figure; output basename to the current directory. Tested with the repository Python 3.14 / NumPy / Matplotlib environment. """ from pathlib import Path import sys import numpy as np import matplotlib.pyplot as plt sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from tools.chemistry_diagram import bond, atom, wedge, ring, flow, finish, save OUT=Path(__file__).stem+'.png' from itertools import product fig=plt.figure(figsize=(6.2,5.1));ax=fig.add_subplot(projection='3d') corners=np.array(list(product([0,1],repeat=3)),float) for a in corners: for b in corners: if np.sum(np.abs(a-b))==1 and tuple(a)