0

I am using the foll. code to plot a time-series:

plt.plot_date(x=time_stamps, y=data[label], fmt='r-', linewidth=0.5, label=label)

However, I want to specify the line color and style separately instead of using fmt. is there a soln?

1 Answer 1

1

You can do it separately like this:

plt.plot(x, y, linestyle='-', color='r')
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.