Spaces:
Sleeping
Sleeping
Commit ·
c8ba6d6
1
Parent(s): 5d4093b
Add gridlines to plot
Browse files- regularization.py +2 -0
regularization.py
CHANGED
|
@@ -202,6 +202,8 @@ class Regularization:
|
|
| 202 |
handles.append(path_line)
|
| 203 |
ax.legend(handles=handles)
|
| 204 |
|
|
|
|
|
|
|
| 205 |
buf = io.BytesIO()
|
| 206 |
fig.savefig(buf, format="png", bbox_inches="tight", pad_inches=0)
|
| 207 |
plt.close(fig)
|
|
|
|
| 202 |
handles.append(path_line)
|
| 203 |
ax.legend(handles=handles)
|
| 204 |
|
| 205 |
+
ax.grid(True)
|
| 206 |
+
|
| 207 |
buf = io.BytesIO()
|
| 208 |
fig.savefig(buf, format="png", bbox_inches="tight", pad_inches=0)
|
| 209 |
plt.close(fig)
|