Skip to content

saving pdf breaks with invisible markers? #8142

@amueller

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    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