day1/session1.tex
changeset 138 5365aa8ec9a5
parent 130 8905a5badd7e
child 140 fe6a38572a65
equal deleted inserted replaced
137:4dea7c5e1bf5 138:5365aa8ec9a5
   188 \begin{lstlisting}
   188 \begin{lstlisting}
   189 In []: title('Sinusoids')
   189 In []: title('Sinusoids')
   190 #Sets the title of the figure
   190 #Sets the title of the figure
   191 
   191 
   192 In []: legend() 
   192 In []: legend() 
   193 # When plot made with label
   193 # Shows a legend in the figure
       
   194 # Used when plot was made with label
   194 # plot(y, -2*sin(-y), label='sin')
   195 # plot(y, -2*sin(-y), label='sin')
   195 In []: legend(['sin'])
   196 In []: legend(['sin'])
   196 # When no label, or to change
   197 # When no labels were used
       
   198 # Or to change the labels
   197 
   199 
   198 \end{lstlisting}
   200 \end{lstlisting}
   199 \end{frame}
   201 \end{frame}
   200 
   202 
   201 \begin{frame}[fragile]
   203 \begin{frame}[fragile]