Skip to content

savefig PDF removing the negative sign from yticklabels #7963

@Auerilas

Description

@Auerilas

Bug report

Bug summary

In matplotlib 2.0, when using plt.savefig() as a pdf, the negative sign is removed from the y tick labels.

import matplotlib.pyplot as plt

plt.plot([-1, 2], [-1, 2])
plt.savefig('~/Desktop/test.png')
plt.savefig('~/Desktop/test.pdf')

test

test.pdf

Matplotlib 2.0.0
Python 3.5.2, Linux Mint 18.1
Installed matplotlib from conda, then most recently did conda update --all to upgrade to 2.0.0

Actually, going back and look it appears that this issue is not specific to Matplotlib 2.0.0, but was occurring before that as well.

Actually #2, this appears to be a seaborn issue as it only occurs after I import seaborn. I'll post an issue there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy