Changeset 21763


Ignore:
Timestamp:
06/13/17 07:09:04 (8 years ago)
Author:
bdef
Message:

BUG:fixing py plotting when tricontourf does not show extremum values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/plot/plot_unit.py

    r21611 r21763  
    9494                        tri=ax.tripcolor(triangles,data,colorlevels,cmap=cmap,norm=norm,alpha=alpha,edgecolors=edgecolor)
    9595                else:
    96 
    97 
    9896                        #first deal with colormap
    9997                        loccmap = plt.cm.ScalarMappable(cmap=cmap)
     
    152150                        else:
    153151                                triangles=mpl.tri.Triangulation(x,y,elements)
    154                         tri=ax.tricontourf(triangles,data,colorlevels,cmap=cmap,norm=norm,alpha=alpha)
     152                        #tri=ax.tricontourf(triangles,data,colorlevels,cmap=cmap,norm=norm,alpha=alpha)
     153                        tri=ax.tricontourf(triangles,data,colorlevels,cmap=cmap,norm=norm,alpha=alpha,extend='both')
    155154                        if edgecolor != 'None':
    156155                                ax.triplot(x,y,elements,color=edgecolor)
Note: See TracChangeset for help on using the changeset viewer.