From: Jae-Joon L. <lee...@gm...> - 2010-03-29 18:07:57
|
On Mon, Mar 29, 2010 at 12:30 PM, Jeff Klukas <kl...@wi...> wrote: > # Create BrokenAxes with bottom from 0 to 5 and top from 30 to 35 > ax = plt.broken_axes(ybounds=[0.,5.,30.,35.]) > # Plot a line onto BOTH subaxes > ax.plot(range(35),range(35)) > > The call to plot would get routed through __getattribute__, which > would then call plot for each of the subaxes. This would be much more > intuitive than my existing breaky solution, where you have to loop > over all subaxes and plot on each individually. > How do you want to handle l1, = ax.plot(range(35), range(35)) l1.set_color("r") then? I think keeping two (or more) separate artists for each axes while an user think there is only one artist (because only one axes is exposed to the user) is not a good idea. Regards, -JJ |