Add script interface to neighborhood diagram drawing