Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Open
Description
Bug summary
Not totally sure if this is a bug, or a feature request, but for now should we maybe add a warning on trying to do log scale w/ dates & categories - i.e. non-float datatypes that the units system converts to floats but the resulting figure strips out all the unit information because it does the math on the underlying floats and doesn't convert back to the units.
Code for reproduction
fig,ax=plt.subplots()ax.plot(['a','b','c'], [datetime(1999,12,1),datetime(2000,1,1),datetime(2020,10,1)])ax.set_xscale('log')ax.set_yscale('log')
Actual outcome
Expected outcome
probably for the y-axis to still be labled in dates, and the x axis to be labeled in categories (which admittedly is impossible to do in this case)