SourceForge logo
SourceForge logo
Menu

Re: [matplotlib-devel] RFC: Moving plots out of axes

From: Nathaniel S. <nj...@po...> - 2013年03月15日 17:49:17
On 15 Mar 2013 16:50, "Todd" <tod...@gm...> wrote:
> Within the axes constructor, the constructor would run through each of
these modules and store them as attributes with the same name as the
function and the function itself being the contents. At least if me
understanding is correct, this would make them behave as methods (since
they are already set up to take an axes instance as their first argument).
This won't work as described - the function -> unbound method -> bound
method magic only happens for attributes that aren't found in the object
dict, when lookup falls back on the type dict. You'll want to inject the
functions into the Axes type object, either via a metaclass constructor or
just by hand after the type is created.
-n

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /