jmquintana79
2/23/2017 - 8:35 AM

plot multiple axis

Plot in same chart two sets of data with their own scale and y-axis and same x-axis

import numpy as np
import matplotlib.pyplot as plt

fig, ax1 = plt.subplots()
# here it is included the first dataset plot
ax2 = ax1.twinx()
# here it is included the second dataset plot
fig.tight_layout()
plt.show()