Edit Template

Matplotlib Stem Plot in Hindi

Stem Plot

Stem Plot एक ऐसा graph है जिसमे हर data point एक vertical line और एक marker के sath दिखाया जाता है। इसका ज्यादा use single processing, discrete sequences और mathematical functions को दिखने में किया जाता है।

matplotlib stem plot

How to draw Stem Plot in Matplotlib

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

Important Parameters of stem() Function

linefmt : ये stem (vertical line) का format set करता है इसमे color और linestyle assign किया जाता है।

For Example: plt.stem(x, y, linefmt=’g–‘)

markerfmt : ये marker (tip) का style set करता है।

For Example: plt.stem(x, y, markerfmt=’ro’)

basefmt : ये baseline (x-axis की line) का format set करता है इसमे color और linestyle assign किया जाता है।

For Example: plt.stem(x, y, basefmt=’b-‘)

use_line_collection : इसमे “True” or “False” assign किया जात है अगर “True” हो तो efficient rendering होता है।

For Example: plt.stem(x, y, use_line_collection=True)

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