Repository navigation
Matplotlib-ified methods, line/patch support and tracking
This is a big update for matplotlib afficionados. Added and edited a whole slew of methods which now resemble matplotlib more closely. Chances are if you try a general function such as rp.title() it will behave as expected and pass args and kwargs well.
In some cases readyplot's version performs better, for instance rp.add_line directly takes in the Line2D parameters instead of necessitating creation of a Line2D object then add_line(line) in multiple calls.
So you can have rp..add_line([0,1],[1,0],color='red'), and this line is tracked! You can get_lines, and similarly add, set, and get patches and xlines/ylines. If you want a patch to appear behind your plot, it is suggested to add it afterward but use zorder=0 as a kwarg, otherwise for bar plots the hash interpreter may catch your patch and hash it against your will (this is a weird but necessary workaround to get the hatches to work as expected).
You can also easily pass in lists of coordinates for rp.add_xlines([1,2,3]) and ylines and it will draw each coordinate in the list and add them all to your internal xline or yline trackers so you can retrieve and edit later if necessary.