"""Original ideal triazine C3N4 sheet and repeat cell; not an experimental reconstruction.""" import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from matplotlib.patches import Polygon import numpy as np fig,ax=plt.subplots(figsize=(10.0,6.1),facecolor='white') d=2.8;r=.64 v1=np.array([1.5*d,-np.sqrt(3)*d/2]);v2=np.array([1.5*d,np.sqrt(3)*d/2]) cell=np.array([[0,0],v1,v1+v2,v2]) ax.add_patch(Polygon(cell,facecolor='#e4edf2',edgecolor='#245f8a',ls='--',lw=1.6,zorder=0)) bridges={} for m in range(-2,3): for n in range(-2,3): center=m*v1+n*v2 if not (-4.0