Skip to content

all matplotlibrc files should be loaded in order #6320

Closed as not planned
Closed as not planned

Description

@awelkie

Only one matplotlibrc file is loaded instead of loading them in order of decreasing scope. So when I added a matplotlibrc file in my home directory it unexpectedly changed the backend that was being set in INSTALL/matplotlib/mpl-data/matplotlibrc because that file was no longer being loaded. I expected matplotlib to load the global (install) config and then apply my config on top of that.

Activity

  1. added this to the milestone on Apr 20, 2016
  2. tacaswell commented on Apr 20, 2016

    @tacaswell
    Member

    That would be a major API/behavior change.

    If you want to have 'cascading' styles, use mpl.style.use which applies the given style on top of the current rcparams.

  3. WeatherGod commented on Apr 21, 2016

    @WeatherGod
    Member

    Note that I don't think that would solve the problem of backend changes
    since backends aren't style. But I agree, nowhere in any documentation do
    we state that the rcfiles are cascading. Instead, the selection of rcfiles
    is documented as a fallback mechanism (current dir > ~/.config > built-in
    defaults).

    On Wed, Apr 20, 2016 at 10:34 AM, Thomas A Caswell <notifications@github.com

    wrote:

    That would be a major API/behavior change.

    If you want to have 'cascading' styles, use mpl.style.use which applies
    the given style on top of the current rcparams.

    —
    You are receiving this because you are subscribed to this thread.
    Reply to this email directly or view it on GitHub
    #6320 (comment)

  4. modified the milestones: v3.0, v3.1 on Aug 11, 2018
  5. modified the milestones: v3.1.0, v3.2.0 on Mar 18, 2019
  6. modified the milestones: v3.2.0, v3.3.0 on Aug 6, 2019
  7. modified the milestones: v3.3.0, v3.4.0 on May 7, 2020
  8. modified the milestones: v3.4.0, v3.5.0 on Jan 27, 2021
  9. modified the milestones: v3.5.0, v3.6.0 on Aug 18, 2021
  10. modified the milestones: v3.6.0, v3.7.0 on Aug 24, 2022
  11. rcomer commented on Oct 1, 2022

    @rcomer
    Member

    If settings from all available matplotlibrc files were applied, I would need a new solution for my StackOverflow question here
    https://stackoverflow.com/questions/67210631/restore-rcdefaults-by-environment-setting

  12. jklymak commented on Oct 1, 2022

    @jklymak
    Member

    Yes not sure why this has dragged around for 7 years. We don't cascade style sheets and the backend mechanism has been overhauled.

  13. modified the milestones: v3.7.0, on Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions