source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/graphics/set_linespec.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 601 bytes
Line 
1function set_linespec(h,linespec)
2% SET_LINESPEC    Set the color and line style of a graphics object.
3% SET_LINESPEC(h,linespec) will set the color and line style of a graphics
4% object, using the linespec convention of 'plot', e.g.
5%   set_linespec(h,'g:')
6%   set_linespec(h,'r--')
7
8% break linespec into color and linestyle.
9[linestyle, color, marker, msg] = colstyle(linespec);
10if ~isempty(msg)
11  error(msg)
12end
13if length(color) > 0
14  set(h,'color',color);
15end
16if length(linestyle) > 0
17  set(h,'linestyle',linestyle);
18end
19if length(marker) > 0
20  set(h,'marker',marker);
21end
Note: See TracBrowser for help on using the repository browser.