【发布时间】:2016-12-30 00:05:08
【问题描述】:
我使用 \includegraphics[height=1.91in,width=5in]{L1F2.jpg} 插入乳胶。但我想在乳胶中绘制类似的图片并在其上添加我自己的文本,类似于包含的内容并更改箭头中的小部分。最好的方法是什么。
【问题讨论】:
我使用 \includegraphics[height=1.91in,width=5in]{L1F2.jpg} 插入乳胶。但我想在乳胶中绘制类似的图片并在其上添加我自己的文本,类似于包含的内容并更改箭头中的小部分。最好的方法是什么。
【问题讨论】:
你会想要\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}
(我知道这是一个简单的线性回归模型,但是刚开始大学微积分,在不知道$beta_0$和$beta_1$的值的情况下,我还不明白如何在gnuplot中编写这个函数。)
【讨论】: