Home > Net >  How can i plot data too far apart with MatPlotLib?
How can i plot data too far apart with MatPlotLib?

Time:01-11

I'm developing a simple statistics calculator, and the last step is to plot the numbers given by the user.

Everything goes fine when the numbers are close apart, as shown below with the numbers [-2, -2, 0, 1, 3, 5]: enter image description here

and here with broken axis: enter image description here

CodePudding user response:

CONCLUSION

The best wat i found is to use Seaborn instead of Matplotlib. The seaborn graph is cleaner with very disperse data.

  • Related