Rest allow the definition of custom directives and extensions--in this case plot.  We have to modify the code for this extension to make it  also generate LaTeX:

https://github.com/scikit-image/scikit-image/blob/master/doc/ext/plot_directive.py

But supposedly it already supports LaTeX.

@RONNCC I'd rather not nitpick about the small things, but rather aim to find solutions.