Graphics, Figures & Tables ⇒ Add arrows to Matlab generated EPS?
-
- Posts: 52
- Joined: Sat Jun 07, 2008 11:56 am
Add arrows to Matlab generated EPS?
I made a plot using Matlab and exported it using laprint.m so that psfrag will replace the matlab text with LaTeX text.
I now need to add some arrows to the plot, but I can't figure out how to.
I used Inkscape to add the arrows, but when I save it (still as an esp) psfrag no longer replaces the text. I think this is because Inkscape uses Cario to export the esp, but I'm not sure.
How can I do this? Perhaps I can save the arrows in a separate esp file and overlay it?
Thanks,
Rich
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Add arrows to Matlab generated EPS?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Add arrows to Matlab generated EPS?
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 52
- Joined: Sat Jun 07, 2008 11:56 am
Add arrows to Matlab generated EPS?
Thanks for recommending Overpic. It seems to do what I require, however, I cannot work out how to match the size/positions. I thought it would be simple as both images have the same papersize and are perfectly positioned for eachother, but when I use the following code, the arrow overlay is far too big:
Code: Select all
\begin{overpic}[width=0.6\columnwidth]{RandomWaypoint.eps}%
\put(0,0){\includegraphics[width=0.6\columnwidth]{Arrows.eps}}%
\end{overpic}
Re: Add arrows to Matlab generated EPS?
-
- Posts: 52
- Joined: Sat Jun 07, 2008 11:56 am
Add arrows to Matlab generated EPS?
http://users.cs.cf.ac.uk/R.P.Coombs/bucket/Arrows.eps
http://users.cs.cf.ac.uk/R.P.Coombs/buc ... ypoint.eps
I have also attached the file used to insert the images (and use psfrag), so to display the images you should only need this code:
Code: Select all
\begin{figure}
\begin{center}
\import{RandomWaypoint.tex}
\end{center}
\end{figure}
Thanks!
- Attachments
-
- RandomWaypoint.tex
- This is the file which includes the images (using overpic) and has the psfrag stuff.
- (1.55 KiB) Downloaded 346 times
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Add arrows to Matlab generated EPS?
You can put them into a ZIP or RAR archive. I will contact the administrator and ask him to extend the list of allowed file types.stinkinrich88 wrote:[...] It would not let me upload eps files to this site [...]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 52
- Joined: Sat Jun 07, 2008 11:56 am
Re: Add arrows to Matlab generated EPS?
- Attachments
-
- RandomWaypoint.zip
- (6.39 KiB) Downloaded 260 times
Add arrows to Matlab generated EPS?
Code: Select all
% Figure:
\begin{overpic}{RandomWaypoint.eps}%
\put(50,50){\includegraphics{Arrows.eps}}%
\end{overpic}
\end{psfrags}%
Code: Select all
\documentclass{report}
\usepackage{graphicx,xcolor,psfrag}
\usepackage[abs]{overpic}
\begin{document}
\begin{figure}[!ht]
\centering
\scalebox{.6}{\input{RandomWaypoint.tex}}
\end{figure}
\end{document}
-
- Posts: 52
- Joined: Sat Jun 07, 2008 11:56 am
Re: Add arrows to Matlab generated EPS?
