Dec-08-2019, 08:13 PM
(This post was last modified: Dec-08-2019, 09:04 PM by ichabod801.)
See below code, the problem with this logic is that I want the y axis to be in a descending format where a league position of 1 is higher that 5.
How can I set it up that the y axis is descending?
How can I set it up that the y axis is descending?
import matplotlib.pyplot as xyz year = [2016,2017,2018] leaguepos = [1,10,5] points = [90,50,70] xyz.bar(points,leaguepos, label=year,width=.5) xyz.legend() xyz.xlabel('Points') xyz.ylabel('League Position') xyz.title('League Performance') xyz.show()