May-16-2022, 07:24 PM
(This post was last modified: May-16-2022, 07:24 PM by deanhystad.)
twinx() creates a new axis. Your code creates two many new axis because you call twinx() multiple times. You should do something like this:
https://matplotlib.org/stable/api/_as_ge...twinx.html
y2 = axs[0].twinx() y2.set_ylabel('SPX Price')I like the "Plots with different scales" example shown here
https://matplotlib.org/stable/api/_as_ge...twinx.html