Discussion:
laPrint and Matlab textbox
(too old to reply)
cassiusdali
2008-12-09 10:10:50 UTC
Permalink
Hello everyone
I just got familiar with the LaPrint tool. Very nice one. However, I
have the following problem:
I inserted in my Matlab graph a TextBox. The problem is that in the
eps file generated by LaPrint, the TextBox is no more at the same
place.
Do you know why and how to resolve this problem.
Thanks in advance

Dali
T3X
2008-12-09 17:25:45 UTC
Permalink
Post by cassiusdali
Hello everyone
I just got familiar with the LaPrint tool. Very nice one. However, I
I inserted in my Matlab graph a TextBox. The problem is that in the
eps file generated by LaPrint, the TextBox is no more at the same
place.
Do you know why and how to resolve this problem.
Check if alignment anchors for psfrag replacement text are the same as
for the matlab textbox? They should be.

Other than that, how do you create textbox: in current axes or in
annotation layer? I'm not sure if laprint has support for annotation
layer.

Finally (I should probably start with this), there is also an option
to preserve an on-screen look. Do you use it?

Cheers,

Tomek
Gernot Hassenpflug
2008-12-10 01:56:09 UTC
Permalink
Post by T3X
Post by cassiusdali
Hello everyone
I just got familiar with the LaPrint tool. Very nice one. However, I
I inserted in my Matlab graph a TextBox. The problem is that in the
eps file generated by LaPrint, the TextBox is no more at the same
place.
Do you know why and how to resolve this problem.
Check if alignment anchors for psfrag replacement text are the same as
for the matlab textbox? They should be.
Other than that, how do you create textbox: in current axes or in
annotation layer? I'm not sure if laprint has support for annotation
layer.
Finally (I should probably start with this), there is also an option
to preserve an on-screen look. Do you use it?
You might also consider another package which is newer than laprint:
matlabfrag. Available below:

http://www.mathworks.com/matlabcentral/fileexchange/?term=tag%3A%22latex%22

There are also Matfig2PGF and matlabsyms that may help you. This work is
part of an ongoing project to improve LaTeX interaction with Matlab and
Mathematica.

Regards, Gernot
pluton
2008-12-10 14:26:36 UTC
Permalink
Post by Gernot Hassenpflug
This work is
part of an ongoing project to improve LaTeX interaction with Matlab and
Mathematica.
do you have more details on this matter ?

Thank you

Pluton
Gernot Hassenpflug
2008-12-10 15:05:59 UTC
Permalink
Post by pluton
Post by Gernot Hassenpflug
This work is
part of an ongoing project to improve LaTeX interaction with Matlab and
Mathematica.
do you have more details on this matter ?
Thank you
Pluton
What do you mean, exactly? You can probably find more description at
the link I gave in the email. As I understand it, matlabfrag has more
options and customizability, supports proper generation of binary
object together with non-binary objects in a single EPS file, etc. I
haven't played with matlab in half a year now though so I cannot say
for sure. But it is written to cure some of laprint's defects.

Regards, Gernot
--
Gernot Hassenpflug
pluton
2008-12-10 17:20:49 UTC
Permalink
Post by Gernot Hassenpflug
part of an ongoing project to improve LaTeX interaction with Matlab and
Mathematica.
ok. I was just wondering about the name of the pentionned project or
equivalent....
Gernot Hassenpflug
2008-12-10 23:44:45 UTC
Permalink
Post by pluton
Post by Gernot Hassenpflug
part of an ongoing project to improve LaTeX interaction with Matlab and
Mathematica.
ok. I was just wondering about the name of the pentionned project or
equivalent....
Yes, there is an ongoing project. I was part of it but I'm too busy to
contribute at the moment. Search for Google group "latex-graphics". Will
Robertson, Johannes Grosse, and Paul Wagenaars with their respective
interests are the main people involved. As I said, it is ongoing, there
are occasional discussions, and occasional submissions, but everything
that is created/modified does eventually end up either on CTAN and/or
the Matlab site.

Cheers, Gernot
Will Robertson
2008-12-11 03:49:56 UTC
Permalink
Post by Gernot Hassenpflug
Post by pluton
Post by Gernot Hassenpflug
part of an ongoing project to improve LaTeX interaction with Matlab and
Mathematica.
ok. I was just wondering about the name of the pentionned project or
equivalent....
Yes, there is an ongoing project. I was part of it but I'm too busy to
contribute at the moment. Search for Google group "latex-graphics". Will
Robertson, Johannes Grosse, and Paul Wagenaars with their respective
interests are the main people involved.
Yes, somewhat dormant for a while now...like most of my side projects
while I attempt to finish my PhD.

W
Gernot Hassenpflug
2008-12-11 05:37:06 UTC
Permalink
Post by Will Robertson
Post by Gernot Hassenpflug
Post by pluton
Post by Gernot Hassenpflug
part of an ongoing project to improve LaTeX interaction with Matlab and
Mathematica.
ok. I was just wondering about the name of the pentionned project or
equivalent....
Yes, there is an ongoing project. I was part of it but I'm too busy to
contribute at the moment. Search for Google group "latex-graphics". Will
Robertson, Johannes Grosse, and Paul Wagenaars with their respective
interests are the main people involved.
Yes, somewhat dormant for a while now...like most of my side projects
while I attempt to finish my PhD.
Good luck with that PhD!
cassiusdali
2008-12-11 09:56:10 UTC
Permalink
Thanks for the advices.
However I tried all of them but I still have the same problem. There
is still a shift between the matlab graph and the latex generated
file. I have this problem only with the textBox not with textArrow for
example.

cassiusdali
Post by T3X
Post by cassiusdali
Hello everyone
I just got familiar with theLaPrinttool. Very nice one. However, I
I inserted in my Matlab graph aTextBox. The problem is that in the
eps file generated byLaPrint, theTextBoxis no more at the same
place.
Do you know why and how to resolve this problem.
Check if alignment anchors for psfrag replacement text are the same as
for the matlabtextbox? They should be.
Other than that, how do you createtextbox: in current axes or in
annotation layer? I'm not sure iflaprinthas support for annotation
layer.
Finally (I should probably start with this), there is also an option
to preserve an on-screen look. Do you use it?
Cheers,
Tomek
T3X
2008-12-11 11:31:08 UTC
Permalink
Post by cassiusdali
Thanks for the advices.
However I tried all of them but I still have the same problem. There
is still a shift between the matlab graph and the latex generated
file. I have this problem only with the textBox not with textArrow for
example.
Without seeing some code I won't be able to help. Please, post a
minimal matlab script that demonstrates the problem and I will see
what I can do.

Cheers,

Tomek
pluton
2008-12-11 17:13:03 UTC
Permalink
ok, thank you for all the details

Loading...