olgabot / prettyplotlib

Painlessly create beautiful matplotlib plots.
olgabot.github.io/prettyplotlib
MIT License
1.69k stars 148 forks source link

ppl.general.{subplots,subplot2grid} don't play nice with pydoc #65

Closed anntzer closed 10 years ago

anntzer commented 10 years ago

pydoc prettyplotlib.general doesn't show any results because it thinks the subplots and subplot2grid functions are defined in the pyplot module, as functools.wraps has modified their __module__ attribute. Instead, I think only the __doc__ and __wrapped__ attributes should be set, either manually or using functools.update_wrapper (setting __wrapped__ properly also sets the correct signature in pydoc).