source: distools/marksize.m @ 30

Last change on this file since 30 was 10, checked in by bduin, 14 years ago
File size: 421 bytes
RevLine 
[10]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%
8function marksize(siz,marker)
9if nargin == 1, marker = ' '; end
10h = get(gca,'Children')';
11for 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
17end
Note: See TracBrowser for help on using the repository browser.