Published November 19, 2018
| Version 0.9.3
Software
Open
simpeg/simpeg: enhanced plot2DData and IO.pseudosections
Creators
- 1. @simpeg, @geoscixyz, @ubcgif
- 2. @seequent
- 3. University of British Columbia
- 4. University of British Columbia, Geophysical Inversion Facility
- 5. Colorado School of Mines - Geophysics - CGEM
- 6. 3point Science
- 7. QuantifiedCode
Description
- commits from @thast
- review from @lheagy
Address issue #734
PR notes: We have fixed the following bug:
- the
clim
argument was not used in theSimPEG.Utils.plot2DData
. We added the functionality to modify the colorscale based on theclim
argument.
Improvements of the SimPEG.Utils.plot2DData
function:
- Levels of the
matplotlib.pyplot.contourf
function are defined by the function itself. This is done to give us complete control over the colorscale and colorbar. - Before plotting, we check if any data are
NaN
orinfinite
to ensure reasonable colorscale. We also ensure positivity isscale==log
- colorbar limits choice through
clim
andncontours
:ncontours
defines the number of contour inside theclim
scale. If data lies outside that range on either side, an supplemental contour is added to regroup those data under a single color on either side (so two colors if on both side with of ncontour+2 contours).
Files
simpeg/simpeg-0.9.3.zip
Files
(2.7 MB)
Name | Size | Download all |
---|---|---|
md5:d65e984d7ac0a19c7d3205c7da018cb4
|
2.7 MB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/simpeg/simpeg/tree/0.9.3 (URL)