Skip to content

MPLRC environment variable to set rcparams #6884

Closed

Description

@anntzer

I'd like to suggest a MPLRC environment variable which could be set to a JSON encoded dict, that would be merged into the rcparams read from the matplotlibrc.
Typical use case would be similar to MPLBACKEND -- temporarily set some rcparams without having to edit the source or the matplotlibrc.

Activity

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

    @tacaswell
    Member

    Interesting idea. Do other programs use this sort of thing?

  3. anntzer commented on Aug 3, 2016

    @anntzer
    ContributorAuthor

    Using environment variables for "simple" configuration of "base libraries" is pretty standard in the Unix world, right? Using JSON not so much (probably because most of them predate JSON) but that sounds better than introducing one new variable per rcparam.

  4. anntzer commented on Oct 5, 2016

    @anntzer
    ContributorAuthor

    Actually, a better idea would be to either have MPLRC contain the contents of the rcparams file itself, or have it point to a filename that contains the desired rcparams (in which case process substitution can come in handy) -- thus avoiding the need to invent yet another encoding.

  5. modified the milestones: , on Oct 3, 2017
  6. modified the milestones: , v2.2.0 on Feb 12, 2018
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions