Skip to content

[Doc]: svg.fonttype: None in custom style sheet gives an error #22546

Open
@emay2022

Description

@emay2022

Documentation Link

https://matplotlib.org/stable/tutorials/introductory/customizing.html

Problem

Based on

#svg.fonttype: path      # How to handle SVG fonts:
                         #     path: Embed characters as paths -- supported
                         #           by most SVG renderers
                         #     None: Assume fonts are installed on the
                         #           machine where the SVG will be viewed.

I tried to make a style sheet including svg.fonttype: None but when I did import matplotlib.pyplot as plt I got this error:

Bad value in file PosixPath('/Users/Elizabeth/.matplotlib/stylelib/EJM-modified_seaborn-white.mplstyle'), line 35 ('svg.fonttype: None      # How to handle SVG fonts:'): Key svg.fonttype: 'None' is not a valid value for svg.fonttype; supported values are ['none', 'path']

Suggested improvement

I think that the 'N' in "None" should be lowercase, and also I find that it needing to be lowercase in this situation is confusing because in the next property svg.hashsalt: None n is indeed capitalized

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions