Graphics, Figures & Tables.eps, Latex & pstricks - more psfrag functionality?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
maja z
Posts: 18
Joined: Mon May 18, 2009 8:53 pm

.eps, Latex & pstricks - more psfrag functionality?

Post by maja z »

Hi!
I may be missing something obvious, but here's my problem:

I've got an .eps graphic (from R), and I include it in a .tex file using includegraphics in a pspicture environment.

Now I can use psfrag to replace the original labels with Latex typeset ones. So far so good.

Now I want to add another set of labels that are at the same heights as the original ones, but on the right hand side of the picture. This is effectively an offset to the right from the original label coordinates.

Is this possible? Obviously not with psfrag itself - it only allows you to replace each label once, and even if it did allow you to replace it twice, the positioning arguments are only r,l,c,b,t and the like, so I couldn't manipulate the position as much as I would like.

But it must be possible somehow to "reuse" the coordinates psfrag has and adjust them e.g. horizontally?

Of course I can use \rput and manually position another set of labels, but clearly that is not very elegant!

Any tips are greatly appreciated!

Maja.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply