Skip to content

Expose ax.yaxis.labelpad and ax.xaxis.labelpad to the rc file #2907

Closed

Description

@saullocastro

While trying to change the gap between the axis title and the tick labels I found this thread:

http://matplotlib.1069221.n5.nabble.com/Distance-between-axis-and-axis-label-td1181.html

Where it is explained that using:

ax.xaxis.labelpad
ax.yaxis.labelpad

One can adjust this gap. It works perfectly, but the problem is that I have to add some lines in everycode I need this adjustment. I tried to include in my maplotlibrc file these two lines and it gives:

Bad key "ax.yaxis.labelpad" on line 247 in
...\.matplotlib\matplotlibrc.
You probably need to get an updated matplotlibrc file from
http://matplotlib.sf.net/_static/matplotlibrc or from the matplotlib source
distribution

Activity

  1. added this to the milestone on Mar 19, 2014
  2. jgosmann commented on Oct 1, 2014

    @jgosmann

    There is PR #3096 implementing a labelpad rcParam.

  3. tacaswell commented on Oct 1, 2014

    @tacaswell
    Member

    Merged as b2bd5db

  4. Tillsten commented on Feb 23, 2015

    @Tillsten
    Contributor

    @tacaswell Sorry, is this in 1.4.3?

  5. modified the milestones: , on Feb 23, 2015
  6. tacaswell commented on Feb 23, 2015

    @tacaswell
    Member

    @Tillsten no, and I just noticed this went in with out proper documentation.

    Re-opening as a reminder to add a line to Whats new.

  7. modified the milestones: , on Jul 17, 2015
  8. added a commit that references this issue on Jul 17, 2015
    887e20d
  9. self-assigned this
    on Jul 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions