You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

notebook.tex 17 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. % Default to the notebook output style
  2. % Inherit from the specified cell style.
  3. \documentclass[11pt]{article}
  4. \usepackage[T1]{fontenc}
  5. % Nicer default font (+ math font) than Computer Modern for most use cases
  6. \usepackage{mathpazo}
  7. % Basic figure setup, for now with no caption control since it's done
  8. % automatically by Pandoc (which extracts ![](path) syntax from Markdown).
  9. \usepackage{graphicx}
  10. % We will generate all images so they have a width \maxwidth. This means
  11. % that they will get their normal width if they fit onto the page, but
  12. % are scaled down if they would overflow the margins.
  13. \makeatletter
  14. \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth
  15. \else\Gin@nat@width\fi}
  16. \makeatother
  17. \let\Oldincludegraphics\includegraphics
  18. % Set max figure width to be 80% of text width, for now hardcoded.
  19. \renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=.8\maxwidth]{#1}}
  20. % Ensure that by default, figures have no caption (until we provide a
  21. % proper Figure object with a Caption API and a way to capture that
  22. % in the conversion process - todo).
  23. \usepackage{caption}
  24. \DeclareCaptionLabelFormat{nolabel}{}
  25. \captionsetup{labelformat=nolabel}
  26. \usepackage{adjustbox} % Used to constrain images to a maximum size
  27. \usepackage{xcolor} % Allow colors to be defined
  28. \usepackage{enumerate} % Needed for markdown enumerations to work
  29. \usepackage{geometry} % Used to adjust the document margins
  30. \usepackage{amsmath} % Equations
  31. \usepackage{amssymb} % Equations
  32. \usepackage{textcomp} % defines textquotesingle
  33. % Hack from http://tex.stackexchange.com/a/47451/13684:
  34. \AtBeginDocument{%
  35. \def\PYZsq{\textquotesingle}% Upright quotes in Pygmentized code
  36. }
  37. \usepackage{upquote} % Upright quotes for verbatim code
  38. \usepackage{eurosym} % defines \euro
  39. \usepackage[mathletters]{ucs} % Extended unicode (utf-8) support
  40. \usepackage[utf8x]{inputenc} % Allow utf-8 characters in the tex document
  41. \usepackage{fancyvrb} % verbatim replacement that allows latex
  42. \usepackage{grffile} % extends the file name processing of package graphics
  43. % to support a larger range
  44. % The hyperref package gives us a pdf with properly built
  45. % internal navigation ('pdf bookmarks' for the table of contents,
  46. % internal cross-reference links, web links for URLs, etc.)
  47. \usepackage{hyperref}
  48. \usepackage{longtable} % longtable support required by pandoc >1.10
  49. \usepackage{booktabs} % table support for pandoc > 1.12.2
  50. \usepackage[inline]{enumitem} % IRkernel/repr support (it uses the enumerate* environment)
  51. \usepackage[normalem]{ulem} % ulem is needed to support strikethroughs (\sout)
  52. % normalem makes italics be italics, not underlines
  53. % Colors for the hyperref package
  54. \definecolor{urlcolor}{rgb}{0,.145,.698}
  55. \definecolor{linkcolor}{rgb}{.71,0.21,0.01}
  56. \definecolor{citecolor}{rgb}{.12,.54,.11}
  57. % ANSI colors
  58. \definecolor{ansi-black}{HTML}{3E424D}
  59. \definecolor{ansi-black-intense}{HTML}{282C36}
  60. \definecolor{ansi-red}{HTML}{E75C58}
  61. \definecolor{ansi-red-intense}{HTML}{B22B31}
  62. \definecolor{ansi-green}{HTML}{00A250}
  63. \definecolor{ansi-green-intense}{HTML}{007427}
  64. \definecolor{ansi-yellow}{HTML}{DDB62B}
  65. \definecolor{ansi-yellow-intense}{HTML}{B27D12}
  66. \definecolor{ansi-blue}{HTML}{208FFB}
  67. \definecolor{ansi-blue-intense}{HTML}{0065CA}
  68. \definecolor{ansi-magenta}{HTML}{D160C4}
  69. \definecolor{ansi-magenta-intense}{HTML}{A03196}
  70. \definecolor{ansi-cyan}{HTML}{60C6C8}
  71. \definecolor{ansi-cyan-intense}{HTML}{258F8F}
  72. \definecolor{ansi-white}{HTML}{C5C1B4}
  73. \definecolor{ansi-white-intense}{HTML}{A1A6B2}
  74. % commands and environments needed by pandoc snippets
  75. % extracted from the output of `pandoc -s`
  76. \providecommand{\tightlist}{%
  77. \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
  78. \DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\}}
  79. % Add ',fontsize=\small' for more characters per line
  80. \newenvironment{Shaded}{}{}
  81. \newcommand{\KeywordTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{\textbf{{#1}}}}
  82. \newcommand{\DataTypeTok}[1]{\textcolor[rgb]{0.56,0.13,0.00}{{#1}}}
  83. \newcommand{\DecValTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{{#1}}}
  84. \newcommand{\BaseNTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{{#1}}}
  85. \newcommand{\FloatTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{{#1}}}
  86. \newcommand{\CharTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{{#1}}}
  87. \newcommand{\StringTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{{#1}}}
  88. \newcommand{\CommentTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textit{{#1}}}}
  89. \newcommand{\OtherTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{{#1}}}
  90. \newcommand{\AlertTok}[1]{\textcolor[rgb]{1.00,0.00,0.00}{\textbf{{#1}}}}
  91. \newcommand{\FunctionTok}[1]{\textcolor[rgb]{0.02,0.16,0.49}{{#1}}}
  92. \newcommand{\RegionMarkerTok}[1]{{#1}}
  93. \newcommand{\ErrorTok}[1]{\textcolor[rgb]{1.00,0.00,0.00}{\textbf{{#1}}}}
  94. \newcommand{\NormalTok}[1]{{#1}}
  95. % Additional commands for more recent versions of Pandoc
  96. \newcommand{\ConstantTok}[1]{\textcolor[rgb]{0.53,0.00,0.00}{{#1}}}
  97. \newcommand{\SpecialCharTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{{#1}}}
  98. \newcommand{\VerbatimStringTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{{#1}}}
  99. \newcommand{\SpecialStringTok}[1]{\textcolor[rgb]{0.73,0.40,0.53}{{#1}}}
  100. \newcommand{\ImportTok}[1]{{#1}}
  101. \newcommand{\DocumentationTok}[1]{\textcolor[rgb]{0.73,0.13,0.13}{\textit{{#1}}}}
  102. \newcommand{\AnnotationTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{{#1}}}}}
  103. \newcommand{\CommentVarTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{{#1}}}}}
  104. \newcommand{\VariableTok}[1]{\textcolor[rgb]{0.10,0.09,0.49}{{#1}}}
  105. \newcommand{\ControlFlowTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{\textbf{{#1}}}}
  106. \newcommand{\OperatorTok}[1]{\textcolor[rgb]{0.40,0.40,0.40}{{#1}}}
  107. \newcommand{\BuiltInTok}[1]{{#1}}
  108. \newcommand{\ExtensionTok}[1]{{#1}}
  109. \newcommand{\PreprocessorTok}[1]{\textcolor[rgb]{0.74,0.48,0.00}{{#1}}}
  110. \newcommand{\AttributeTok}[1]{\textcolor[rgb]{0.49,0.56,0.16}{{#1}}}
  111. \newcommand{\InformationTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{{#1}}}}}
  112. \newcommand{\WarningTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{{#1}}}}}
  113. % Define a nice break command that doesn't care if a line doesn't already
  114. % exist.
  115. \def\br{\hspace*{\fill} \\* }
  116. % Math Jax compatability definitions
  117. \def\gt{>}
  118. \def\lt{<}
  119. % Document parameters
  120. \title{matplotlib\_ani2}
  121. % Pygments definitions
  122. \makeatletter
  123. \def\PY@reset{\let\PY@it=\relax \let\PY@bf=\relax%
  124. \let\PY@ul=\relax \let\PY@tc=\relax%
  125. \let\PY@bc=\relax \let\PY@ff=\relax}
  126. \def\PY@tok#1{\csname PY@tok@#1\endcsname}
  127. \def\PY@toks#1+{\ifx\relax#1\empty\else%
  128. \PY@tok{#1}\expandafter\PY@toks\fi}
  129. \def\PY@do#1{\PY@bc{\PY@tc{\PY@ul{%
  130. \PY@it{\PY@bf{\PY@ff{#1}}}}}}}
  131. \def\PY#1#2{\PY@reset\PY@toks#1+\relax+\PY@do{#2}}
  132. \expandafter\def\csname PY@tok@gi\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.63,0.00}{##1}}}
  133. \expandafter\def\csname PY@tok@ni\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.60,0.60,0.60}{##1}}}
  134. \expandafter\def\csname PY@tok@ow\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}}
  135. \expandafter\def\csname PY@tok@dl\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
  136. \expandafter\def\csname PY@tok@vi\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
  137. \expandafter\def\csname PY@tok@nl\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.63,0.63,0.00}{##1}}}
  138. \expandafter\def\csname PY@tok@mb\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
  139. \expandafter\def\csname PY@tok@m\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
  140. \expandafter\def\csname PY@tok@mo\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
  141. \expandafter\def\csname PY@tok@sa\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
  142. \expandafter\def\csname PY@tok@nb\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
  143. \expandafter\def\csname PY@tok@ss\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
  144. \expandafter\def\csname PY@tok@kp\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
  145. \expandafter\def\csname PY@tok@sx\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
  146. \expandafter\def\csname PY@tok@kn\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
  147. \expandafter\def\csname PY@tok@mh\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
  148. \expandafter\def\csname PY@tok@gu\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.50,0.00,0.50}{##1}}}
  149. \expandafter\def\csname PY@tok@sc\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
  150. \expandafter\def\csname PY@tok@c1\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
  151. \expandafter\def\csname PY@tok@gh\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,0.50}{##1}}}
  152. \expandafter\def\csname PY@tok@gt\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.27,0.87}{##1}}}
  153. \expandafter\def\csname PY@tok@vm\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
  154. \expandafter\def\csname PY@tok@nc\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
  155. \expandafter\def\csname PY@tok@sh\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
  156. \expandafter\def\csname PY@tok@gp\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,0.50}{##1}}}
  157. \expandafter\def\csname PY@tok@nv\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
  158. \expandafter\def\csname PY@tok@w\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.73,0.73}{##1}}}
  159. \expandafter\def\csname PY@tok@ne\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.82,0.25,0.23}{##1}}}
  160. \expandafter\def\csname PY@tok@gd\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.63,0.00,0.00}{##1}}}
  161. \expandafter\def\csname PY@tok@cm\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
  162. \expandafter\def\csname PY@tok@k\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
  163. \expandafter\def\csname PY@tok@bp\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
  164. \expandafter\def\csname PY@tok@gr\endcsname{\def\PY@tc##1{\textcolor[rgb]{1.00,0.00,0.00}{##1}}}
  165. \expandafter\def\csname PY@tok@sb\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
  166. \expandafter\def\csname PY@tok@cp\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.74,0.48,0.00}{##1}}}
  167. \expandafter\def\csname PY@tok@mi\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
  168. \expandafter\def\csname PY@tok@mf\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
  169. \expandafter\def\csname PY@tok@il\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
  170. \expandafter\def\csname PY@tok@nf\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
  171. \expandafter\def\csname PY@tok@se\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.73,0.40,0.13}{##1}}}
  172. \expandafter\def\csname PY@tok@nt\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
  173. \expandafter\def\csname PY@tok@si\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.73,0.40,0.53}{##1}}}
  174. \expandafter\def\csname PY@tok@nd\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}}
  175. \expandafter\def\csname PY@tok@cpf\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
  176. \expandafter\def\csname PY@tok@cs\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
  177. \expandafter\def\csname PY@tok@vc\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
  178. \expandafter\def\csname PY@tok@sd\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
  179. \expandafter\def\csname PY@tok@err\endcsname{\def\PY@bc##1{\setlength{\fboxsep}{0pt}\fcolorbox[rgb]{1.00,0.00,0.00}{1,1,1}{\strut ##1}}}
  180. \expandafter\def\csname PY@tok@na\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.49,0.56,0.16}{##1}}}
  181. \expandafter\def\csname PY@tok@s1\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
  182. \expandafter\def\csname PY@tok@ch\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
  183. \expandafter\def\csname PY@tok@s\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
  184. \expandafter\def\csname PY@tok@fm\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
  185. \expandafter\def\csname PY@tok@c\endcsname{\let\PY@it=\textit\def\PY@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}}
  186. \expandafter\def\csname PY@tok@kd\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
  187. \expandafter\def\csname PY@tok@ge\endcsname{\let\PY@it=\textit}
  188. \expandafter\def\csname PY@tok@kr\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
  189. \expandafter\def\csname PY@tok@vg\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}}
  190. \expandafter\def\csname PY@tok@go\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.53,0.53,0.53}{##1}}}
  191. \expandafter\def\csname PY@tok@no\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.53,0.00,0.00}{##1}}}
  192. \expandafter\def\csname PY@tok@o\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
  193. \expandafter\def\csname PY@tok@kc\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}}
  194. \expandafter\def\csname PY@tok@gs\endcsname{\let\PY@bf=\textbf}
  195. \expandafter\def\csname PY@tok@sr\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.40,0.53}{##1}}}
  196. \expandafter\def\csname PY@tok@nn\endcsname{\let\PY@bf=\textbf\def\PY@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}}
  197. \expandafter\def\csname PY@tok@s2\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}}
  198. \expandafter\def\csname PY@tok@kt\endcsname{\def\PY@tc##1{\textcolor[rgb]{0.69,0.00,0.25}{##1}}}
  199. \def\PYZbs{\char`\\}
  200. \def\PYZus{\char`\_}
  201. \def\PYZob{\char`\{}
  202. \def\PYZcb{\char`\}}
  203. \def\PYZca{\char`\^}
  204. \def\PYZam{\char`\&}
  205. \def\PYZlt{\char`\<}
  206. \def\PYZgt{\char`\>}
  207. \def\PYZsh{\char`\#}
  208. \def\PYZpc{\char`\%}
  209. \def\PYZdl{\char`\$}
  210. \def\PYZhy{\char`\-}
  211. \def\PYZsq{\char`\'}
  212. \def\PYZdq{\char`\"}
  213. \def\PYZti{\char`\~}
  214. % for compatibility with earlier versions
  215. \def\PYZat{@}
  216. \def\PYZlb{[}
  217. \def\PYZrb{]}
  218. \makeatother
  219. % Exact colors from NB
  220. \definecolor{incolor}{rgb}{0.0, 0.0, 0.5}
  221. \definecolor{outcolor}{rgb}{0.545, 0.0, 0.0}
  222. % Prevent overflowing lines due to hard-to-break entities
  223. \sloppy
  224. % Setup hyperref package
  225. \hypersetup{
  226. breaklinks=true, % so long urls are correctly broken across lines
  227. colorlinks=true,
  228. urlcolor=urlcolor,
  229. linkcolor=linkcolor,
  230. citecolor=citecolor,
  231. }
  232. % Slightly bigger margins than the latex defaults
  233. \geometry{verbose,tmargin=1in,bmargin=1in,lmargin=1in,rmargin=1in}
  234. \begin{document}
  235. \maketitle
  236. \begin{Verbatim}[commandchars=\\\{\}]
  237. {\color{incolor}In [{\color{incolor}1}]:} \PY{c+c1}{\PYZsh{}\PYZpc{}matplotlib nbagg}
  238. \PY{o}{\PYZpc{}}\PY{k}{matplotlib} nbagg
  239. \PY{k+kn}{import} \PY{n+nn}{numpy} \PY{k}{as} \PY{n+nn}{np}
  240. \PY{k+kn}{import} \PY{n+nn}{matplotlib}\PY{n+nn}{.}\PY{n+nn}{pyplot} \PY{k}{as} \PY{n+nn}{plt}
  241. \PY{k+kn}{import} \PY{n+nn}{matplotlib}\PY{n+nn}{.}\PY{n+nn}{animation} \PY{k}{as} \PY{n+nn}{animation}
  242. \PY{n}{fig} \PY{o}{=} \PY{n}{plt}\PY{o}{.}\PY{n}{figure}\PY{p}{(}\PY{p}{)}
  243. \PY{n}{x} \PY{o}{=} \PY{n}{np}\PY{o}{.}\PY{n}{arange}\PY{p}{(}\PY{l+m+mi}{0}\PY{p}{,} \PY{l+m+mi}{10}\PY{p}{,} \PY{l+m+mf}{0.1}\PY{p}{)}
  244. \PY{n}{ims} \PY{o}{=} \PY{p}{[}\PY{p}{]}
  245. \PY{k}{for} \PY{n}{a} \PY{o+ow}{in} \PY{n+nb}{range}\PY{p}{(}\PY{l+m+mi}{50}\PY{p}{)}\PY{p}{:}
  246. \PY{n}{y} \PY{o}{=} \PY{n}{np}\PY{o}{.}\PY{n}{sin}\PY{p}{(}\PY{n}{x} \PY{o}{\PYZhy{}} \PY{n}{a}\PY{p}{)}
  247. \PY{n}{im} \PY{o}{=} \PY{n}{plt}\PY{o}{.}\PY{n}{plot}\PY{p}{(}\PY{n}{x}\PY{p}{,} \PY{n}{y}\PY{p}{,} \PY{l+s+s2}{\PYZdq{}}\PY{l+s+s2}{r}\PY{l+s+s2}{\PYZdq{}}\PY{p}{)}
  248. \PY{n}{ims}\PY{o}{.}\PY{n}{append}\PY{p}{(}\PY{n}{im}\PY{p}{)}
  249. \PY{n}{ani} \PY{o}{=} \PY{n}{animation}\PY{o}{.}\PY{n}{ArtistAnimation}\PY{p}{(}\PY{n}{fig}\PY{p}{,} \PY{n}{ims}\PY{p}{)}
  250. \PY{n}{plt}\PY{o}{.}\PY{n}{show}\PY{p}{(}\PY{p}{)}
  251. \end{Verbatim}
  252. \begin{verbatim}
  253. <IPython.core.display.Javascript object>
  254. \end{verbatim}
  255. \begin{verbatim}
  256. <IPython.core.display.HTML object>
  257. \end{verbatim}
  258. % Add a bibliography block to the postdoc
  259. \end{document}

机器学习越来越多应用到飞行器、机器人等领域,其目的是利用计算机实现类似人类的智能,从而实现装备的智能化与无人化。本课程旨在引导学生掌握机器学习的基本知识、典型方法与技术,通过具体的应用案例激发学生对该学科的兴趣,鼓励学生能够从人工智能的角度来分析、解决飞行器、机器人所面临的问题和挑战。本课程主要内容包括Python编程基础,机器学习模型,无监督学习、监督学习、深度学习基础知识与实现,并学习如何利用机器学习解决实际问题,从而全面提升自我的《综合能力》。