add rc param for centimeter support · Issue #1369 · matplotlib/matplotlib · GitHub
Skip to content

add rc param for centimeter support #1369

Description

@andreas-h

It would be great if I could specify a figsize in centimeters. I would like to write

import matplotlib as mpl
mpl.rcParams['lengthunit'] = 'c'
figure(figsize=(12, 8))

instead of

figure(figsize=(12/2.54, 8/2.54))

I think this would be a great addition for the non-anglo-saxon world ;)

Activity

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

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions