From: Benjamin R. <ben...@ou...> - 2012-02-07 19:47:09
|
On Tue, Feb 7, 2012 at 1:15 PM, Gökhan Sever <gok...@gm...> wrote: > I was basing my whitespace split idea on single string assumption --eg. no > list passing. > > I do not have a strong preference on the final argument passing, as long > as it works instead of manually placing the texts on figure or axis :) > > > > On Tue, Feb 7, 2012 at 11:52 AM, Ryan May <rm...@gm...> wrote: > >> On Tue, Feb 7, 2012 at 12:49 PM, Gökhan Sever <gok...@gm...> >> wrote: >> > This works as well, as long as it functions :) >> > >> > My idea requires little less typing. But forgot previously, text string >> > should be whitespace split. >> >> Right, but we shouldn't guess. If we automatically split on >> whitespace, this becomes harder: >> >> plt.ylabel(["The sun is", "yellow"], ['k', 'y']) >> >> Ryan >> >> I think the python mantra of "explicit over implicit" should be followed here. I don't think we currently allow list of strings, so there is no risk of breaking existing scripts, I think. We probably should confirm that just in case. Also, how deep should this rabbit hole go? I could imagine one could want this for title() and figtitle(). Maybe it would be best to implement this at the Text() constructor level? Ben Root |