From: Maciek D. <ma...@gm...> - 2012-07-10 19:32:56
|
The standard RC parameters handling in Matplotlib has always troubled me. The syntax rc('figure.subplot', top=0.9) is not very conveniet if one wants to change a singe property. Direct rcParams['figure.subplot.top'] seems better suited in this case. However, as the dots are already used to indicate grouping in RC, it seems very natural to use the syntax like: rc.figure.subplot.top = 0.9 In my opinion this is very elegant, efficient and much Pythonic approach. In the attachment I include a path to the current git main repo, which enables this way of handling RC properties. I would appreciate very much if they were reviewed and included in the next release of Matplotlib (the patch is not particularly large). Best regrds, Maciek -- Maciek Dems http://dems.art.pl/ |