diff options
Diffstat (limited to 'examples/doc_model_two_components.py')
-rw-r--r-- | examples/doc_model_two_components.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/doc_model_two_components.py b/examples/doc_model_two_components.py index 853f670..95088e0 100644 --- a/examples/doc_model_two_components.py +++ b/examples/doc_model_two_components.py @@ -26,9 +26,9 @@ result = mod.fit(y, pars, x=x) print(result.fit_report()) -plt.plot(x, y, 'bo') -plt.plot(x, result.init_fit, 'k--', label='initial fit') -plt.plot(x, result.best_fit, 'r-', label='best fit') -plt.legend(loc='best') +plt.plot(x, y, 'o') +plt.plot(x, result.init_fit, '--', label='initial fit') +plt.plot(x, result.best_fit, '-', label='best fit') +plt.legend() plt.show() # <end examples/doc_model_two_components.py> |