Implemented plot with ax.