2016-12-30 11 views
1

私はラテックスに挿入するために\ includegraphics [高さ= 1.91in、幅= 5in] {L1F2.jpg}を使用しました。私はラテックスで同様の絵を描いて、矢印の中に小さなものを入れ替えたものに似た自分のテキストを追加したいと思っています。そうする最善の方法は何ですか。ラテックスを使用してグラフを描く

enter image description here

答えて

0

あなたは\usepackage{tikz}したいと思います。 TikZとPGFで作ったグラフィックの例は、texample.net/tikzで見つけることができます。

簡単な例:

\documentclass{article} 
\usepackage{tikz} 

\begin{document} 
\begin{tikzpicture} 
    \draw[-] (0,0) -- (0,4) node[below left] {$y$}; % Draw the y-axis 
    \draw[-] (0,0) -- (4,0) node[below left] {$x$}; % Draw the x-axis 
    \foreach \x in {1,2,3} % Iterate through {1,2,3} to assist the next line 
     \draw[shift={(\x,0)}] (0,3pt) -- (0,0pt) node[below] {$x_\x$}; % Mark the intervals 
    \clip (0,0) rectangle (4,4); % Limit the domain and range of the graph 
    \draw (0,0) plot ({\x},{\x^2}); % Draw a function of \x 
\end{tikzpicture} 

\end{document} 

(私はこれは、単純な線形回帰モデルであることを認識するが、まだ始まったばかりの大学の微積分を持つ、私はまだ知らなくてはgnuplotに、この関数を書く方法を理解していません$beta_0$および$beta_1$の値)

関連する問題