Home > Back-end >  Create graphs with limits on axis using seaborn/matplotlib
Create graphs with limits on axis using seaborn/matplotlib

Time:11-17

I have a graph that has values between 0-40 on the x-axis and 0-20,000 on the y-axis. If I am plotting the graph, this is what I see,

enter image description here

Is it possible to plot the graph only till the points in the axis where data entries fall?

CodePudding user response:

I think you can put limits till where the data could be shown using: x limit as matplotlib.pyplot.xlim(0, 40) and y limit as matplotlib.pyplot.ylim(0,20000)

  • Related