Skip to content
Snippets Groups Projects
Commit 2c44668c authored by Robert K's avatar Robert K
Browse files

[bugfix][plotting] Extend clim to avoid white patched when color bar

limits are computed.
parent 7095acf4
No related branches found
No related tags found
1 merge request!1297[bugfix][plotting] Fix color bar limits.
Pipeline #65362 passed with warnings
Pipeline: Dune Nightly Test

#65364

    ......@@ -67,7 +67,8 @@ try:
    minData = amin(data)
    maxData = amax(data)
    if clim == None:
    clim = [minData, maxData]
    epsData = abs(maxData - minData)*1e-8
    clim = [minData-epsData, maxData+epsData]
    if clim[0] > minData and clim[1] < maxData:
    extend = 'both'
    elif clim[0] > minData:
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment