Add script to generate rule application figure.