Faan Nang-gai
Faan Nang-gai

Reputation: 121

How can I plot like this in spyder?

I'd like to plot my outcome like this with secondary axis.

enter image description here

My outcome now is:

enter image description here

Upvotes: 0

Views: 96

Answers (2)

Faan Nang-gai
Faan Nang-gai

Reputation: 121

I just found out that

from matplotlib import style
style.use('fivethirtyeight')

is what I want.

Upvotes: 0

Andrew Holmgren
Andrew Holmgren

Reputation: 1275

Do you want gridlines? If so, you'd just have another line of code similar to this

plt.grid(b=True)

https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.grid.html

Upvotes: 2

Related Questions