<div dir="ltr">First, create instances of a figure and axes:<div><br></div><div>import matplotlib.pyplot as plt</div><div>fig, ax = plt.subplots()</div><div><br></div><div>Then plot your data</div><div><br></div><div>ax.plot(x, y, linestyle='-', color='black', linewidth=2)</div><div><br></div><div>Then plot your threshold value:</div><div><br></div><div>ax.axhline(y=threshold, linestyle='--', linewidth=1.5, color='black', alpha=0.75)</div><div><br></div><div>Then label your axes:</div><div><br></div><div>ax.set_xlabel('frequency')</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 11, 2016 at 1:42 AM, A.S. Khangura <span dir="ltr"><<a href="mailto:arsh840@gmail.com" target="_blank">arsh840@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I want to create custom plot using Matplotlib.<br>
<br>
Here is image:<a href="https://www.dropbox.com/s/vabbluhkhwflg8k/mat.png" rel="noreferrer" target="_blank">https://www.dropbox.com/<wbr>s/vabbluhkhwflg8k/mat.png</a><br>
<br>
Please let me know what kind of approach I should go for to generate such plot?<br>
<br>
--<br>
Thanks<br>
Arshpreet Singh<br>
Python Developer<br>
Web Development/Data Science/Systems Integration<br>
Mobile: (91)987 6458 387<br>
<a href="https://www.linkedin.com/in/arsh840" rel="noreferrer" target="_blank">https://www.linkedin.com/in/<wbr>arsh840</a><br>
<br>
Doing what you like Freedom, Liking what you do is happiness.<br>
______________________________<wbr>_________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/matplotlib-<wbr>users</a><br>
</blockquote></div><br></div>