add  "only" statement in index.rst to plot png for latex and .gif for html