Ignore:
Timestamp:
01/31/14 09:38:31 (11 years ago)
Author:
bdef
Message:

NEW: adding point ability for shapefile read and plot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/shp/shpdisp.m

    r16257 r17204  
    4545figure(figurenumber),hold on
    4646for i=1:length(domain),
    47         if (isnumeric(linestyle))
    48                 plot(domain(i).x*unitmultiplier,domain(i).y*unitmultiplier,'Color',linestyle,'linewidth',linewidth);
     47        if(isfield(domain,'nods'))
     48                if (isnumeric(linestyle))
     49                        plot(domain(i).x*unitmultiplier,domain(i).y*unitmultiplier,'Color',linestyle,'linewidth',linewidth);
     50                else
     51                        plot(domain(i).x*unitmultiplier,domain(i).y*unitmultiplier,linestyle,'linewidth',linewidth);
     52          end
    4953        else
    50                 plot(domain(i).x*unitmultiplier,domain(i).y*unitmultiplier,linestyle,'linewidth',linewidth);
     54                plot(domain(i).x*unitmultiplier,domain(i).y*unitmultiplier,'ro','MarkerSize',5);
    5155        end
     56       
    5257end
Note: See TracChangeset for help on using the changeset viewer.