Fortune Telling Collection - Zodiac Analysis - How to draw a constellation diagram?
How to draw a constellation diagram?
Function constellation
Graph ('WindowButtonDownFcn', @wbdcb)
ah = axes('DrawMode ',' fast ');
Axis ([110110])
Title ("Draw a constellation")
color 1 = ' brcmkgy ';
num = 1;
Function wbdcb(src, evnt)
if strcmp(get(src,' SelectionType '),' normal ')
Set (src,' pointer',' circle')
Cp = get (ah,' current point');
xinit = cp( 1, 1); yinit = cp( 1,2);
hl = line('XData ',xinit,' YData ',yinit, ...
Mark',' p',' color', color1(num));
set(src,' WindowButtonMotionFcn ',@wbmcb)
set(src,' WindowButtonUpFcn ',@wbucb)
end
Function wbmcb(src, evnt)
Cp = get (ah,' current point');
xdat = [xinit,cp( 1, 1)];
ydat = [yinit,cp( 1,2)];
set(hl,' XData ',xdat,' YData ',ydat); drawnow
end
Function wbucb(src, evnt)
if strcmp(get(src,' SelectionType '),' alt ')
num = num+ 1;
If num> seven
num = 1;
end
Set (src,' pointer',' arrow')
set(src,' WindowButtonMotionFcn ','')
set(src,' WindowButtonUpFcn ','')
other
return
end
end
end
end
- Related articles
- Why is there Polaris, but not invivo, East Pole Star and West Pole Star?
- What constellation is the sixth day of September? What constellation is the sixth day of September?
- 1969 constellation Gregorian calendar _ 1969 constellation
- What constellations are always asking for trouble and unhappy?
- I want to see the constellation _ I want to see the constellation dog alliance
- How does Libra hide inner sadness?
- Thank you for helping me calculate my rising sign. 1982 was born in Yantai, Shandong at 7: 30 am on February 5. Thank you.
- The oldest 10 emperor in China.
- What constellation women can help you get rid of the haze of life through optimism and courage?
- 9. What constellation is19?