>>>>> "PGM" == PGM  <[EMAIL PROTECTED]> writes:

    PGM> Now, till we (you ;)) are it, what about updating
    PGM> Figure.add_subplot() to call user-defined subplots ? I wrote
    PGM> something along the lines below for my own needs, but that
    PGM> might be a useful addition...

Well, we could keep it simple and just give a hook to custom figures.
If a user wants a custom subplot

class MyFigure(Figure):
   def add_my_subplot(self, *args, **kwargs):        
        self.axes.append(MySubplot(*args, **kwargs))

fig = figure(FigureClass=MyFigure)
fig.add_my_subplot(111)


Is there any downside to this approach?  It seems like if you are
going to the trouble to create a custom figure, you might was well
handle your own custom subplots there rather than in the Figure class
proper.

JDH

All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to