Commits

Nathan Goldbaum  committed bd9ad81

Minor adjustments for the cheat sheet.

  • Participants
  • Parent commits 727e703

Comments (0)

Files changed (1)

File cheatsheet.tex

 \begin{tabular}{@{}p{8cm}}
 \texttt{slc = SlicePlot(pf, {\it axis}, {\it field}, {\it center=}, {\it width=}, {\it weight\_field=}, {\it additional parameters})} \textemdash\ Make a slice plot
 perpendicular to {\it axis} of {\it field} weighted by {\it weight\_field} at (code-units) {\it center} with 
-{\it width} in code units or a (value, unit) tuple. Hint: try {\it SlicePlot?} to see additional parameters.\\
+{\it width} in code units or a (value, unit) tuple. Hint: try {\it SlicePlot?} in iPython to see additional parameters.\\
 \texttt{slc.save({\it file\_prefix})} \textemdash\ Save the slice to a png with name prefix {\it file\_prefix}.
 \texttt{.save()} works similarly for the commands below.\\
 
 
 \subsection{Plot Annotations}
 \settowidth{\MyLen}{\texttt{multicol} }
-Plot callbacks are functions itemized in a registry that is attached to every plot object. They can be accessed and then called like \texttt{ prj.annotate_velocity(factor=16,normalize=False)}. Most callbacks also accept a {\it plot\_args} dict that is fed to matplotlib, allowing additional customization. \\
+Plot callbacks are functions itemized in a registry that is attached to every plot object. They can be accessed and then called like \texttt{ prj.annotate\_velocity(factor=16, normalize=False)}. Most callbacks also accept a {\it plot\_args} dict that is fed to matplotlib, allowing additional customization. \\
 \begin{tabular}{@{}p{8cm}}
 \texttt{velocity({\it factor=},{\it scale=},{\it scale\_units=}, {\it normalize=})} \textemdash\ Uses field "x-velocity" to draw quivers\\
 \texttt{magnetic\_field({\it factor=},{\it scale=},{\it scale\_units=}, {\it normalize=})} \textemdash\ Uses field "Bx" to draw quivers\\