Skip to content

Commit aaf42f6

Browse files
Plot limits added in docs\examples\iv-modeling\plot_singlediode.py (#2181)
Co-authored-by: Nicolau <[email protected]>
1 parent cbfa292 commit aaf42f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/examples/iv-modeling/plot_singlediode.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@
114114
# mark the MPP
115115
plt.plot([v_mp], [i_mp], ls='', marker='o', c='k')
116116

117+
plt.xlim(left=0)
118+
plt.ylim(bottom=0)
117119
plt.legend(loc=(1.0, 0))
118120
plt.xlabel('Module voltage [V]')
119121
plt.ylabel('Module current [A]')

0 commit comments

Comments
 (0)