Edit Template

Matplotlib Step Plot in Hindi

Step Plot

Step Plot एक ऐसा graph है जिसमे data points को step-wise connect किया जाता है, ये mainly तब use होता है जब data एक interval में constant रहता है।

matplotlib step plot

How to draw Step Plot in Matplotlib

Matplotlib में step() function का use करके Step plot को बनाया जाता है।

Important Parameters of step() Function

where : ये decide करता है कि step का vertical jump x-point के पहले, बीच में या बाद में आएगा, इसमे “pre” (पहले के लिए), “mid” (बीच के लिए) या “post” (बाद के लिए) assign किया जाता है।

For Example: plt.step(x, y, where=’mid’)

Add a comment...

Sign up to track your learning

Login to continue your learning tracking

To reset your password, please enter your email address or username below.

Scroll to Top