Changeset 27112


Ignore:
Timestamp:
06/26/22 18:05:34 (3 years ago)
Author:
inwoo
Message:

CHG: add default 2d mesh options same as plot_mesh.m

File:
1 edited

Legend:

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

    r24213 r27112  
    2121    fig.delaxes(axgrid.cbar_axes[gridindex])
    2222
     23    #retrieve some options
     24    edgecolor=options.getfieldvalue('edgecolor','k')
     25    linewidth=options.getfieldvalue('linewidth',1)
     26
    2327    if is2d:
    24         ax.triplot(x, y, elements)
     28        ax.triplot(x, y, elements,color=edgecolor,linewidth=linewidth)
    2529    else:
    2630        ax = inset_axes(axgrid[gridindex], width='100%', height='100%', loc=3, borderpad=0, axes_class=Axes3D)
Note: See TracChangeset for help on using the changeset viewer.