| twin2 = ax.twinx() | twin2 = ax.twinx() | ||||
| # Offset the right spine of twin2. The ticks and label have already been | # Offset the right spine of twin2. The ticks and label have already been | ||||
| # placed on the right by twinx above. | # placed on the right by twinx above. | ||||
| twin2.spines.right.set_position(("axes", 1.2)) | |||||
| twin2.spines.right.set_position(("axes", 0.6)) | |||||
| # create list fo color indices | # create list fo color indices |