Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Description
Bug report
Bug summary
The vertices on certain markers ('^', 'D', 'v') are clipped when usingplot()
to plot data with more than two points and saving the plot as a PDF.
Code for reproduction
importmatplotlib.pyplotaspltsize=256,16fig,ax=plt.subplots()num=3fig,ax=plt.subplots()ax.plot([i+1foriinrange(num)],[1foriinrange(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.