For some reason matplotlib's scatter
isn't able to parse datetime values but plot
is. Is this a bug in matplotlib or am I doing something wrong?
import datetime
from decimal import Decimal
import matplotlib.pyplot as plt
import seaborn as sns
x = [datetime.date(2016, 10, 12),datetime.date(2017, 6, 28)]
y = [Decimal('618020.0000'), Decimal('442107.0000')]
plt.plot(x, y)
import datetime
from decimal import Decimal
import matplotlib.pyplot as plt
import seaborn as sns
x = [datetime.date(2016, 10, 12),datetime.date(2017, 6, 28)]
y = [Decimal('618020.0000'), Decimal('442107.0000')]
plt.scatter(x, y)
My matplotlib version is 1.5.3.