How to make a chart with 3 y-axes using matplotlib in python

import as plt fig, ax1 = () years = [2018,2019,2020,2021] first = [1,2,1,2] second = [10,15,17,11] third = [111,120,117,129] (years,first,color=“blue“) ax2 = () (years,second,color=“green“) ax3 = () (years,third,color=“red“) #[’right’].set_position((’outward’,60)) [’right’].set_position((’axes’,)) (“First“,color=“blue“) (“Second“,color=“green“) (“Third“,color=“red“) (axis=’y’,colors=“blue“) (axis=’y’,colors=“green“) (axis=’y’,colors=“red“) [’right’].set_color(“green“) [’right’].set_color(“red“) [’left’].set_color(“blue“) () #() (““,bbox_inches=’tight’)
Back to Top