Closed
Description
Hello!
My code:
import matplotlib as mpl
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid.axislines import SubplotZero
fig = plt.figure()
ax = SubplotZero(fig, 111)
_ = fig.add_subplot(ax)
for direction in ["xzero", "yzero"]:
ax.axis[direction].set_visible(True)
ax.axis[direction].set_axisline_style("->")
for direction in ["top", "bottom", "left", "right"]:
ax.axis[direction].set_visible(False)
ax.axis["yzero"].set_axis_direction("left")
ax.grid(True)
ax.minorticks_on()
plt.plot([0,1], [0,1], c="blue", lw=2)
_ = plt.title("График")
_ = plt.xlabel("Ось x")
_ = plt.ylabel("Ось y")
for ext in ['png', 'svg', 'pdf']:
plt.savefig("test_chart."+ext)
plt.show()
plt.close()
My matplotlibrc file in MPLCONFIGDIR
:
xtick.labelsize: 14.0
ytick.labelsize: 14.0
axes.titlesize: 20.0
axes.labelsize: 16
legend.fontsize: 12
axes.grid: True
font.family: Roboto # I copied roboto font to matplotlib font folder
font.style: italic
font.size: 14
figure.figsize: 12, 8
savefig.dpi: 300
savefig.format: png
savefig.bbox: tight
animation.writer : ffmpeg_file
animation.ffmpeg_path: ffmpeg
animation.codec: h264
# animation.html : html5
I works on Windows 8.1 64bit. I use Python 3.5.2 |Continuum Analytics, Inc.| (default, Jul 5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32
in environmet, created with conda.
Matplotlib version is 1.5.3
When I see files created with matplotlib I see that arrows on axis ends are normal in svg and pdf files but too small in png file.
In svg file:
In png file:
Maybe it's bug.
Best regards, Andrey.