Add spines and ticks in rcParams#2702
Conversation
|
The PR title is very misleading as you are adding rcparams, but removing them. Could you comment on #2637? |
|
Ah my bad about the title - changed it to be more clear. In my head I was thinking that "you should be able to remove the spines via rcParams" but I see how the title was murky. Taking a look at the other PR now. |
There was a problem hiding this comment.
I think this should be a .get call in case "type" is something else (from a subclass of Axes).
There was a problem hiding this comment.
That would also make it more clear what the default value was result.set_visible(rcParams.get('axes.spines.{}'.format(spine_type), True))
|
@olgabot Do you want to try to get this into shape to make it into 1.4.0? |
|
It looks like this is not going to make it into 1.4.0, but I encourage continuing with it; it fits in with the new style mechanism. Although we are conservative about changing long-established default behavior, we certainly would like to see design improvements such as your prettyplot become directly accessible in mpl without needing any external library. Maybe this should be a focus for 1.5. |
|
Maybe a silly question, but if I want to get this going, do I need to clone olgabot repo, and then submit an other PR? |
|
You can add olgabot as a remote to your current mpl clone and then make a On Thu, Mar 5, 2015, 12:16 Gilles Marin notifications@github.com wrote:
|
Hello there,
I started working on this PR to make my
prettyplotliblibrary obsolete by allowing you to do everything via rcParams.So far I've only gotten the
spinesto work: http://nbviewer.ipython.org/gist/olgabot/8260601Current todos are:
set_ticks_locationvia rcParamsscattertoget_current_color_cyclefor thefacecolor. Ditto forfill_betweenandfill_betweenxboxplotcolors and lines: https://github.com/olgabot/prettyplotlib/wiki/Examples-with-code#boxplotimage.cmap_divergentfor data with both negative and positive values in a heatmapThoughts? Does this look like it's going in the right direction?