This PR intends to remove the redundancy and consequent Matplotlib UserWarning when using plot_date. In plot_date, fmt is set by default to 'o', so changing this to fmt='-' makes linestyle='-' redundant and produces a UserWarning advising of this redundancy. Such a warning is unnecessary and can be avoided if the line style_kwargs.setdefault('linestyle', '-') is removed, thus letting fmt to define the linestyle as desired.
Dear Astropy Maintainers,
This PR intends to remove the redundancy and consequent Matplotlib UserWarning when using
plot_date
. Inplot_date
,fmt
is set by default to'o'
, so changing this tofmt='-'
makeslinestyle='-'
redundant and produces a UserWarning advising of this redundancy. Such a warning is unnecessary and can be avoided if the linestyle_kwargs.setdefault('linestyle', '-')
is removed, thus lettingfmt
to define the linestyle as desired.With my best regards,
Jaime A. Alvarado-Montes