Hello, I am using MATPLOTLIB vers 3.5.1. on WINDOWS10 with Spyder. I am running in qt mode (Detached plot window).
I am running the script
import matplotlib.pyplot as plt plt.figure("Test2") plt.plot([1,2,3],[0,0,0],label='zero line') plt.plot([1,2,3],[3,4,5],label='Slope') plt.legend() plt.show()
MATPLOTLIB plots correctly. However, if I click on the icon “Edit Curve, Axis and Image parameters”
on (RE-)generate automatic legend , the colour of the lines are switched (not sure why), whilst the legend entry order is switched (not sure why) but line colours in legend are not. Basically, after pressing regenerate automatic legend, the legend now is completely messed up because what should be zero line is now slope (please see the attached screenshot).