From: Jae-Joon L. <lee...@gm...> - 2008-06-30 19:32:03
|
Sorry, I accidentally sent an incomplete email. here is a complete one. I sometimes use a custom Axes class, and want to use it with add_subplot() command. As a matter of fact, it IS possible with current version of matplotlib but it seems a bit inconvenient to me. Here is what I may do. import matplotlib.axes as maxes class MyAxes(maxes.Axes): name="myaxes" # some definitions import matplotlib.projections matplotlib.projections.register_projection(MyAxes) F = figure() ax = F.add_subplot(1,2,2, projection="myaxes") But it would much better if I can simply do something like class MyAxes(maxes.Axes): # some definitions F = figure() ax = F.add_subplot(1,2,2, axes_class=MyAxes) It seems rather straight forward to implement "axes_class" keyword in add_subplot() and I may make a patch for it. So, how does others think? Regards, -JJ |