"How to rotate secondary y axis label so it doesn't overlap with y-ticks, matplotlib","ax2.set_ylabel('Cost ($)', color='g', rotation=270, labelpad=15)"