Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 1.10 KB | None | 0 0
  1. % \graphset{A}{\addplot...}{\addplot...}
  2. \newcommand{\graphset}[3]{
  3.  \begin{figure}[!ht]
  4.  \centering
  5.  
  6.  \pgfplotsset{
  7.        ymin={-1.2}, ymax={1.2},
  8.        xmin={-0.2}, xmax={3.2},
  9.        width=2.5in, height=1.3in,
  10.        xlabel={T},
  11.        ytick={-1,0,1},
  12.        xmajorticks=false,
  13.        axis x line=bottom,
  14.        axis y line=left,
  15.  }
  16.  
  17.  \begin{minipage}{.5\textwidth}
  18.    \centering
  19.    \begin{tikzpicture}
  20.    \begin{axis}[
  21.        title={Distance/Time Plot #1},
  22.        ylabel={X},
  23.    ]
  24.    #2
  25.    \end{axis}
  26.    \end{tikzpicture}
  27.  \end{minipage}%
  28.   \begin{minipage}{.5\textwidth}
  29.    \centering
  30.    \begin{tikzpicture}
  31.    \begin{axis}[
  32.        title={Velocity/Time Plot #1},
  33.        ylabel={V},
  34.    ]
  35.    #3
  36.    \end{axis}
  37.    \end{tikzpicture}
  38.  \end{minipage}
  39.  \end{figure}
  40. }
  41.  
  42. \subsection{Trial A}
  43. \graphset{A}{
  44.  \addplot[draw=black][domain=0:3]{0.5};
  45. }{
  46.  \addplot[draw=black][domain=0:3]{0};
  47. }
  48. In example A, the object does not move. Its position is constant, and its velocity is 0. To create this motion, the cart was placed on the track and not moved.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement