Skip to content

saving pdf breaks with invisible markers? #8142

Closed

Description

@amueller
import matplotlib.pyplot as plt
import numpy as np
plt.plot(np.sin(np.linspace(-5, 5, 100)), 'v', c='none')
plt.savefig("asdf.pdf")

TypeError: 'NoneType' object is not subscriptable

This happened to me because I was using matplotlib 1.5 code, where this was actually not invisible.
Changing markeredgecolor='k' (which was the default before) fixes the problem. But that is a pretty surprising error and might hint at something going wrong somewhere?

In particular, png rendering works fine, only pdf errors.

Activity

  1. added this to the milestone on Feb 24, 2017
  2. modified the milestones: , on May 3, 2017
  3. modified the milestones: , on Oct 9, 2017
  4. anntzer commented on Apr 23, 2018

    @anntzer
    Contributor

    Fixed by #8850 (AFAICT, please request a reopen if not).

  5. modified the milestones: , v2.1 on Apr 23, 2018
  6. amueller commented on Apr 23, 2018

    @amueller
    ContributorAuthor

    Fixed in 2.1.0 (or earlier).

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