2016-12-30 107 views
1

我使用\ includegraphics [height = 1.91in,width = 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$。)