"""Plot to test date axis"""
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())

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())

Add note for misleading test
Add note for misleading test

- """Plot to test date axis"""
  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())
  
Add note for misleading test
## Code Before:
"""Plot to test date axis"""
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())

## Instruction:
Add note for misleading test
## Code After:
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())
