I am using
plt.plot_date([dates[index], dates[index]+timeD], [pivots[index],pivots[index]], linestyle = "-", linewidth=2, marker = ",", )
to draw some lines on a chart. This used to work, but now after doing some upgrades, a warning is displayed:
UserWarning: marker is redundantly defined by the 'marker' keyword argument and the fmt string "o" (-> marker='o'). The keyword argument will take precedence.
plt.plot_date([dates[index], dates[index]+timeD], [pivots[index],pivots[index]], linestyle = "-", linewidth=2, marker = ",", )
If I just omit marker = "," , the warning disappears, but there are two dots at the beginning and end of the line which I don't like.
What could I do to get rid of the warning without changing the plot?