Changeset 14346


Ignore:
Timestamp:
02/14/13 15:51:03 (12 years ago)
Author:
cborstad
Message:

NEW: streamlines_color can be passed to specify color of streamlines

File:
1 edited

Legend:

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

    r13009 r14346  
    1818%initialize flowpath
    1919streamlines=getfieldvalue(options,'streamlines');
     20edgecolor=getfieldvalue(options,'streamlines_color');
    2021if ischar(streamlines) & strcmpi(streamlines,'on');
    2122        streamlines=60;
     
    3839hold on
    3940for i=1:length(flowpath)
    40         patch('Xdata',[flowpath(i).x;NaN],'Ydata',[flowpath(i).y;NaN],'facecolor','none','edgecolor','y');
     41        patch('Xdata',[flowpath(i).x;NaN],'Ydata',[flowpath(i).y;NaN],'facecolor','none','edgecolor',edgecolor);
    4142end
Note: See TracChangeset for help on using the changeset viewer.