fix std in DataMisfit and possible bug in PlotUtils
- from pr 745
- commits from thast
- review from micmitch, lheagy
Fix for Issue 746
- fixed `DataMisfit.std` that now take into consideration `survey.std`. So you are not forced to set `DataMisfit.W` manually anymore
- Fixed: `Survey.MakeSyntheticData`, if not given a `std`, was overwriting `survey.std` even if already set. Now it will use `survey.std` if not given a `std` argument.
Explanation:
`DataMisfit.std` was set to 5% by default, but to change it to `survey.std`, it expected a `None` value, thus it never gets updated...
- bonus: light improvement again of `Plot2DData` (reordering of `if` statement so specifying `contourOpts['vmin','vmax']` without a `clim` works.
- bonus: Somehow PR 725 did not make it to improve `plot_misfit_curves` so I put it back here. Mainly, more option to plot $\phi_m$ or $\phi_small$ and $\phi_smooth$ independently, plus more options to save the figure.
Code of conduct
- from pr 744
- commits from lheagy
- review from rowanc1
Add a code of conduct based on the contributor covenant to SimPEG