In unbuntu 18.04 this is not an error, however, it will produce duplicated legend in ubuntu 20.04. According to https://stackoverflow.com/questions/19385639/duplicate-items-in-legend-in-matplotlib, if plot the same line type twice, then it will produce the same lengend for the same line.
Therefore, I have to break the oringial one line into two lines:
ax.plot(x, yU, Label=i,linewidth=2, dashes=dst,color='black')
ax.plot(x, yL, linewidth=2, dashes=dst,color='black')
NB, the legend is removed from the second line.
2020年7月11日 星期六
訂閱:
張貼留言 (Atom)
-
cf: https://ubuntuhandbook.org/index.php/2022/01/default-torrent-app-magnet-links-ubuntu/ Set “QBittorrent” as default app for magnet link,...
-
cf: https://www.tenforums.com/tutorials/101274-uninstall-printer-driver-windows-10-a.html Open cmd in administer mode Run printmanagement...
-
cf: https://stackoverflow.com/questions/54184707/warning-continue-targeting-switch-is-equivalent-to-break-did-you-mean-to-u Error while...
沒有留言:
張貼留言