Why used Bins while plotting

Why used bins while plotting?

Hey @awariabhishek12345, welcome to the forum.
Can you share more info about the question? Like which plot you are talking about.
Normally bins are used to increase the number of bars/lines. Suppose in a histogram bins=5 . So the histogram will be divided into 5 equal parts/horizontal bars.