"""
Plot to test date axis

TODO (@vladh): This test is misleading and needs to be updated. It should test
dates, but it only plots numbers in [2000, 2050], which will of course get
thousands separators automatically added.
"""
import matplotlib.pyplot as plt
import matplotlib
import mpld3


def create_plot():
    fig, ax = plt.subplots()
    ax.plot([2000, 2050], [1, 2])
    ax.set_title('Tick label test', size=14)
    return fig


def test_date():
    fig = create_plot()
    _ = mpld3.fig_to_html(fig)
    plt.close(fig)


if __name__ == "__main__":
    mpld3.show(create_plot())

@@ -14,214 +14,27 @@
 est 
-date axis%0A%0ATODO (@vladh): This test is misleading and needs to be updated. It should test%0Adates, but it only plots 
 num
-b
 er
-s in %5B2000, 2050%5D, which will of course get%0Athousands separators automatically added.
+ic tick labels
 %0A%22%22%22
@@ -164,15 +164,15 @@
 ot(%5B
-2
+1
 000, 
-2
+1
 050%5D

Clean up test_ticklabels.py