FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Vertices clipped for certain markers when plotting more than two points and saving as pdf · Issue #9829 · matplotlib/matplotlib · GitHub

Repository navigation

Vertices clipped for certain markers when plotting more than two points and saving as pdf #9829

Closed

Description

Bug report

Bug summary
The vertices on certain markers ('^', 'D', 'v') are clipped when using plot() to plot data with more than two points and saving the plot as a PDF.

Code for reproduction

import matplotlib.pyplot as plt
size = 256, 16
fig,ax = plt.subplots()
num = 3

fig,ax = plt.subplots()
ax.plot([i+1 for i in range(num)],[1 for i in range(num)], '^', markersize=3, markeredgewidth=0.7, color='green', markeredgecolor='black')
ax.set_xlim(0, num +1)
ax.set_xticks(())
ax.set_yticks(())
fig.savefig('test.pdf') # This doesn't work properly.
fig.savefig('test.svg')

Actual outcome


The top image is of the marker from the .pdf file. The bottom image is of the marker from the .svg file.

Expected outcome

The marker in the .pdf file should look like the marker in the .svg file.

Matplotlib version

  • Operating system: Ubuntu 17.04
  • Matplotlib version: 2.1.0
  • Matplotlib backend (print(matplotlib.get_backend())): TkAgg
  • Python version: Python 3.5.3
  • Jupyter version (if applicable):
  • Other libraries:

I installed matplotlib via pip.

Activity

  1. added this to the milestone on Nov 22, 2017
  2. brunobeltran commented on Mar 12, 2020

    Contributor

    #16719 has various details about why this is happening. I figured the discussion should remain on the older issue report, and closed my dup of it.

  3. self-assigned this
    on Mar 12, 2020
  4. QuLogic commented on Mar 12, 2020

    Member

    The fix for #16719 is quite straightforward, but I need to a) write some tests and b) verify it works on the other marker types correctly.

  5. added 3 commits that reference this issue on Apr 17, 2020
    ab0e232
    e87606d
    ed79844
  6. added a commit that references this issue on Jun 9, 2020
    55a4704
  7. added a commit that references this issue on Jun 10, 2020
    d131534
  8. modified the milestones: needs sorting, v3.3.0 on Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL