Skip to content

Commit 63a2ca4

Browse files
authored
Fix plotting in plot_singlediode.py gallery page (#1895)
* Update plot_singlediode.py fixed plot annotations by moving plt.show() further down * Update whatsnew.rst * Update v0.10.3.rst * Update docs/sphinx/source/whatsnew.rst Undoing changes to whatsnew.rst
1 parent 49be5b5 commit 63a2ca4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/examples/iv-modeling/plot_singlediode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@
118118
plt.xlabel('Module voltage [V]')
119119
plt.ylabel('Module current [A]')
120120
plt.title(parameters['Name'])
121-
plt.show()
122121
plt.gcf().set_tight_layout(True)
123122

124123

@@ -136,6 +135,7 @@ def draw_arrow(ax, label, x0, y0, rotation, size, direction):
136135
ax = plt.gca()
137136
draw_arrow(ax, 'Irradiance', 20, 2.5, 90, 15, 'r')
138137
draw_arrow(ax, 'Temperature', 35, 1, 0, 15, 'l')
138+
plt.show()
139139

140140
print(pd.DataFrame({
141141
'i_sc': curve_info['i_sc'],

docs/sphinx/source/whatsnew/v0.10.3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Testing
2424

2525
Documentation
2626
~~~~~~~~~~~~~
27-
27+
* Fixed a plotting issue in the IV curve gallery example (:pull:`1895`)
2828

2929
Contributors
3030
~~~~~~~~~~~~

0 commit comments

Comments
 (0)