I have almost a nice plot but there are issues. The first one: x label doesn't show up. The second issue: I can't put the name of second line in legend. I have only one name (Close) and I need also 'KGHM'.
fig, ax = plt.subplots()
ax.plot(x,y)
ax2 = ax.twinx()
ax2.plot(x1,y1, 'y-')
myFmt = DateFormatter("%d-%m-%y")
ax.xaxis.set_major_formatter(myFmt)
fig.autofmt_xdate()
plt.tight_layout()
plt.xlabel('PLN',size=10)
plt.ylabel('Points',size=10)
plt.title('KGHM')
ax.grid(True)
ax.legend()
plt.show()
Thanks for help !