Skip to content

Commit 0535d37

Browse files
committed
Merge branch 'master' of github.com:florisvb/PyNumDiff
2 parents 8f1c706 + 03252e9 commit 0535d37

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/5_robust_outliers_demo.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@
145145
"\t\tif method == rtsdiff:\n",
146146
"\t\t\tfig, axes = evaluate.plot(x, dt, x_hat, dxdt_hat, x_truth, dxdt_truth, show_error=False)\n",
147147
"\t\t\taxes[1].text(0.05, 0.95, f\"RMSE =\\n $R^2$ =\", # Show performance metrics for both methods manually\n",
148-
" transform=axes[1].transAxes, fontsize=15, color='black', verticalalignment='top')\n",
148+
"\t\t\t\ttransform=axes[1].transAxes, fontsize=15, color='black', verticalalignment='top')\n",
149149
"\t\t\taxes[1].text(0.16, 0.95, f\"{rms_dxdt:.2f}\\n{R_sqr:.2g}\",\n",
150-
" transform=axes[1].transAxes, fontsize=15, color='red', verticalalignment='top', linespacing=1.5)\n",
150+
"\t\t\t\ttransform=axes[1].transAxes, fontsize=15, color='red', verticalalignment='top', linespacing=1.5)\n",
151151
"\t\t\tw = len(f\"{R_sqr:.2g}\")\n",
152152
"\t\telse:\n",
153153
"\t\t\taxes[0].plot(t, x_hat, color='green', label=\".\") # need dummy labels here to generate more handles\n",
@@ -157,7 +157,7 @@
157157
"\t\t\thandles, labels = axes[1].get_legend_handles_labels()\n",
158158
"\t\t\taxes[1].legend(handles, [labels[0], r\"est. $\\hat{\\frac{dx}{dt}}$ via RTS\", r\"est. $\\hat{\\frac{dx}{dt}}$ via Robust\"])\n",
159159
"\t\t\taxes[1].text(0.26 - 0.012*(6 - w), 0.95, f\"{rms_dxdt:.2f}\\n{R_sqr:.2g}\",\n",
160-
" transform=axes[1].transAxes, fontsize=15, color='green', verticalalignment='top', linespacing=1.5)\n",
160+
"\t\t\t\ttransform=axes[1].transAxes, fontsize=15, color='green', verticalalignment='top', linespacing=1.5)\n",
161161
"\n",
162162
"\tfig.suptitle(f\"{problem.__name__}\", fontsize=28)"
163163
]

0 commit comments

Comments
 (0)