Change figure details and xvalue when transfered from Matplotlib

Hello,

I have plotted the result of my prediction model from plt. to plotly with (plotly.tools.mpl_to_plotly) and i would like to change the figure colors and format. I do know i can change the colors with just giving another letter.

I would also like to change the x-axis from count to date.

What can i do to manage this?

see code

import matplotlib.pyplot as plt
import plotly.tools
import plotly.graph_objects as go
f = plt.figure()

plt.plot(np.arange(0, len(y_train)), y_train_inv.flatten(), 'g', label="history")
plt.plot(np.arange(len(y_train), len(y_train) + len(y_test)), y_test_inv.flatten(), marker='.', label="true")
plt.plot(np.arange(len(y_train), len(y_train) + len(y_test)), y_pred_inv.flatten(), 'r', label="prediction")
plt.ylabel('DP inlet')
plt.xlabel('Time Step')



plotly.tools.mpl_to_plotly(f)

(post deleted by author)