I used laprint to generate the .eps file for my matlab graph. Now the problem is I changed the axis labels to a,...f but they dont seem to be aligned w.r.t the horizontal x-axis. This is the command

\psfrag{x13}[t][t]{\small a}% ..where can I change the alignment of a w.r.t the axis.

thank you.

  • @Dilip: Welcome to tex.sx. Could you please use ` to format your inline code and make sure that your question title is properly capitalized. You apparently don't want others to do this for you. Thanks. – Martin Scharrer Feb 23 '11 at 14:12
  • @Martin: thank you for your comments. I dont mind it if others correct me but it would be nice if they do so with a comment of where I was wrong. – Dilip Feb 23 '11 at 14:16
  • @Dilip: My apologies, I should have added a comment. – Martin Scharrer Feb 23 '11 at 14:40
  • I know you asked for \psfrag, but since you mentioned matlab, it might be worthwhile checking out the matlab2tikz script or, depending on the complexity of your graph, just output a datafile from matlab and do the plotting with pgfplots – Martin H Feb 23 '11 at 14:44
  • 2
    @Dilip: Besides answering your question, we also want to make sure that the page is useful for other users with the same problem. Thus it is normal for other users to edit your post to fix formatting problems, typos and remove distracting text (like “hello” and “thank you”). Please don't see this a personal attack against you, but rather as something like the Wikipedia model. – Caramdir Feb 23 '11 at 17:31

I believe, but I might be mistaken, that the matlabfrag package works around this problem. It was written by a friend of mine to overcome some of laprint's shortcomings.

Its usage is similar to laprint but you must size the graphic to your tastes before exporting it to LaTeX.

  • can you please tell me what do the [t][t] refer to in the script I put? – Dilip Feb 24 '11 at 13:12
  • got it..its the position and the postscript text reference point..:) – Dilip Feb 24 '11 at 13:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.