Skip to content

Make our "inline" matplotlib rc_param overwrite a classic-inline theme #9710

Open

Description

@Carreau

See matplotlib/matplotlib#6696 (comment)

That should prevent/ help with a lot of issues.

Activity

  1. added this to the 5.1 milestone on Jul 6, 2016
  2. mpacer commented on Jul 25, 2016

    @mpacer
    Contributor

    Breaking this down into at least three(four) different parts:

    1. establish the properties of the current inline theme (e.g., transparent background, fig size)
    2. Take properties and make into matplotlib theme
    3. Use entrypoints to register theme with matplotlib (if possible w/o using setuptools)
    4. have %matplotlib inline use the theme by default
  3. mpacer commented on Jul 25, 2016

    @mpacer
    Contributor

    Ok, so 0. can be found in this commit in ipykernel

    as of right now its

    rc = Dict({'figure.figsize': (6.0,4.0),
            # play nicely with white background in the Qt and notebook frontend
            'figure.facecolor': (1,1,1,0),
            'figure.edgecolor': (1,1,1,0),
            # 12pt labels get cutoff on 6x4 logplots, so use 10pt.
            'font.size': 10,
            # 72 dpi matches SVG/qtconsole
            # this only affects PNG export, as SVG has no dpi setting
            'savefig.dpi': 72,
            # 10pt still needs a little more room on the xlabel:
            'figure.subplot.bottom' : .125
            },
            help="""Subset of matplotlib rcParams that should be different for the
            inline backend."""
        ).tag(config=True)

    Next is to figure out the matplotlib theme syntax

  4. tacaswell commented on Jul 29, 2016

    @tacaswell
    Contributor

    I suggest that you you do 0 and 1 via by implementing matplotlib/matplotlib#6738 and then using it from inside an ipython notebook with mpl 1.5

    Or just start from https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/mpl-data/stylelib/classic.mplstyle

    You can just add a path to https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/style/core.py#L33 mpl should probably grow a nicer API for managing that list.

  5. modified the milestones: 5.2, 5.1 on Aug 9, 2016
  6. modified the milestones: 5.3, 5.2 on Jan 18, 2017
  7. takluyver commented on Feb 23, 2017

    @takluyver
    Member

    This has been bumped through several minor release milestones now. Is anyone intending to work on it, or shall we wishlist it?

  8. modified the milestones: wishlist, 5.3 on Feb 23, 2017
  9. Carreau commented on Feb 23, 2017

    @Carreau
    MemberAuthor

    Wishlist'ed

  10. mgeier commented on Sep 3, 2022

    @mgeier
    Contributor

    Just a little update: the RC overrides have been removed in ipython/matplotlib-inline#14

    From today's POV, would it still make sense to create an "inline" theme?

  11. fperez commented on Sep 4, 2022

    @fperez
    Member

    My thought is no - that we should finish fixing any small defaults deviations we might have there (looking at the dpi issue you mentioned) but otherwise let users access the normal matplotlib mechanisms as much as possible.

    I think we should close this, but will wait a bit in case there's a difference of opinion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions