source:
distools/marksize.m
@
100
Last change on this file since 100 was 10, checked in by bduin, 14 years ago | |
---|---|
File size: 421 bytes |
Line | |
---|---|
1 | %MARKSIZE Change markersize in lineplot or scatterplot |
2 | % |
3 | % marksize(size,marker) |
4 | % |
5 | % The marker fontsize (default set by matlab to 6) is reset |
6 | % to size for the given marker, default: all markers. |
7 | % |
8 | function marksize(siz,marker) |
9 | if nargin == 1, marker = ' '; end |
10 | h = get(gca,'Children')'; |
11 | for i = h |
12 | if strcmp(get(i,'Type'),'line') |
13 | if nargin == 1 | get(i,'Marker') == marker |
14 | set(i,'MarkerSize',siz); |
15 | end |
16 | end |
17 | end |
Note: See TracBrowser
for help on using the repository browser.