python - matlplotlib pdf savefig: markers change -
under windows matplotlib changes linewidth of white, filled markers when saving pdf. saving png works fine. using anaconda python3.3 , matplotlib 1.3.1
i found closed thread on github: open markers incorrect in pdf output question matplotlib linewidth when saving pdf.
under linux, using eps or pdf makes no difference.
has encountered similar issue ?
the circular markers cutted @ outside border masked white rectangle.
code:
from matplotlib import pyplot plt fig = plt.figure(figsize=(1.5,1.5)) ax = fig.add_subplot(1,1,1) ax.plot([1,2,3,4],[5,6,7,8],'wo') fig.savefig('testfig.pdf',bbox_inches='tight', format='pdf') plt.show()
edited: damn. foxitreader related issue. sumatra pdf fine.
Comments
Post a Comment