You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"pyplot.plot_date()" is not changing the line colors using "color_cycle" #2148
The OP identified that when trying to plot using plot_date() the colors are not changed accordingly to the color_cycle specified. Actually they are not changing at all.
With plot() it works perfectly.
I tried to change the colors from plot_date() using: plt.rc('axes', **{'color_cycle':['r', 'g']}) plt.rcParams['axes.color_cycle']=['r','g']
and
setting the matplotlibrc file to the local folder with axes.color_cycle : r, g.
they all did not work.
thank you very much and congratulations for the great package which Matploblib already is!
Saullo Castro
Activity
tacaswell commentedon Jun 23, 2013
This isn't a bug, but a design choice. There is a default argument in both
plt.date_plotandaxes.date_plotthat sets the format tobo.See https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/axes.py#L4145 and https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/pyplot.py#L2997
saullocastro commentedon Jun 24, 2013
Thank you all for the responses... It is ok that
data_plot()sets the format tobobut why the user cannot change it?WeatherGod commentedon Jun 24, 2013
Probably wasn't a conscious design choice. I move to switch it over to
None, so that the color-cycling mechanism can happen.
saullocastro commentedon Jun 24, 2013
Are you going to switch it to
Nonefor the next version? That would be great! Inmatplotlib 1.2.1is there a way to switch it toNone?tacaswell commentedon Jun 24, 2013
@saullocastro Call it as
saullocastro commentedon Jun 24, 2013
@tacaswell Thank you! For me it worked doing
plot_date(..., fmt='')plot_date: Set the default fmt to 'o'
plot_date: Set the default fmt to 'o'
omkarkulkarni commentedon Feb 2, 2017
fmt is for the shape, what can we use for size.
I tried with m or ms or s but all throw error.