Jouni K. Seppänen wrote: > Hi, > > What is the reason for having both barh and bar, when the latter > accepts the orientation='horizontal' argument? I am asking because of > sf bug #1669506, which is about hist(orientation='horizontal') not > working because it passes a log kwarg to barh. >
I didn't do it--but it looks like the reason is that having barh as a separate method permits a more natural order of arguments without introducing more complexity in the argument handling. Vertical bars take left, height, width, bottom; barh takes bottom, width, height, left. Handling this difference with all possible combinations of *args and **kwargs would be complex; the present method, using a separate name (barh), is nice and simple. Looks like barh just needs to take a **kwargs (which could replace most of the present listed kwargs; or add a log kwarg to the list) and pass it along to bar. You are taking care of this? Eric ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel