Hi i am plotting line graph and my code is this but i am not sure how y axis is plotting as i have very large value 18965544, 45668787, but how y axis plotting values as values like 1 2 3
import matplotlib.pyplot as plt
import pandas as pd
plt.rcParams.update({'font.size': 16})
L=[A,B,C,D,E,F,G,H]
New=[18965544, 45668787, 46768733, 865533, 32586879, 996665544, 53544222,97775644]
Old= [23455, 0,0,0,0, 996665544, 65645, 654535]
plt.plot(FLMAUB)
plt.plot(RandomFL)
plt.legend(['new', 'old'], loc='upper right')
plt.xticks(x1, L, rotation=30, horizontalalignment='right')
plt.plot(New, Old)
plt.title('New Vs Old')
plt.xlabel('Names')
plt.ylabel('Cost')
plt.show()
CodePudding user response:
I thought of some possibilities, you could try these: