Thread Subject: Latex Label creates an annyoing '1'

Subject: Latex Label creates an annyoing '1'

From: Norman

Date: 25 Oct, 2007 12:12:56

Message: 1 of 3

Hi!

If I have a figure/plot and set the interpreter for the
ylabel to LaTeX then there will appear a strange '1'
character everytime.

This character (it might be the number 1 or the letter l) is
orientated like the label, but is positioned much farther to
the right and to the top of the plot. In fact it is beyond
the borders of the plot. I only noticed it when using
several plots in one figure (via subplot), but it appears in
single plot figure also, but the character is outside of the
visible area (but you can resize the plot and move it to the
left and bottom and then will the strange character appear too).

This character appears on prints too.

Subject: Latex Label creates an annyoing '1'

From: Norman

Date: 25 Oct, 2007 12:42:45

Message: 2 of 3

This bug seems to appear in 2007a and 2007b. And it just
looks like as if this character 1 is a kind of page number.
Perhaps Matlab uses a default style for the LaTeX
interpreter where page numbering is active?

Try to see yourself:

figure
axes
ylabel('foo','Interpreter','Latex')

The 'page number' appears sometimes within the plot,
sometimes outside the plot and sometimes beyond the visible
area (then you have to move the plot). I think this depends
on the screen resolution and the original plot size
(different in subplots).

Perhaps this issue has also something to do with the
bounding box bug (in eps exports). I believe this issue was
fixed, but perhaps just by an workaround?

Subject: Latex Label creates an annyoing '1'

From: Doug Schwarz

Date: 25 Oct, 2007 21:20:18

Message: 3 of 3

In article <1193322050.075970.183230@y42g2000hsy.googlegroups.com>,
 Randy Poe <poespam-trap@yahoo.com> wrote:

> On Oct 25, 8:42 am, "Norman " <norman.nospam.vio...@tu-berlin.de>
> wrote:
> > This bug seems to appear in 2007a and 2007b. And it just
> > looks like as if this character 1 is a kind of page number.
> > Perhaps Matlab uses a default style for the LaTeX
> > interpreter where page numbering is active?
> >
> > Try to see yourself:
> >
> > figure
> > axes
> > ylabel('foo','Interpreter','Latex')
> >
> > The 'page number' appears sometimes within the plot,
> > sometimes outside the plot and sometimes beyond the visible
> > area (then you have to move the plot). I think this depends
> > on the screen resolution and the original plot size
> > (different in subplots).
> >
> > Perhaps this issue has also something to do with the
> > bounding box bug (in eps exports). I believe this issue was
> > fixed, but perhaps just by an workaround?
>
> Confirmed. Appears in R2007a/Linux, not in R2006b/WinXP.
>
> The extraneous "1" disappears when I delete the y-label. It
> is clearly part of the label, and only appears when the
> interpreter is set to 'Latex'. With 'Tex', it doesn't appear.
>
> The positioning of that thing seems to be in something
> other than normalized or data units, e.g. pixels or
> inches. That's why its position relative to the window
> boundaries changes when you resize.
>
> - Randy
>
>
> - Randy

The "1" is a LaTeX page number. The bug has already been submitted to
The MathWorks.

The only workaround is to suppress the page number like this:

  ylabel('\thispagestyle{empty}anything','Interpreter','latex')

--
Doug Schwarz
dmschwarz&ieee,org
Make obvious changes to get real email address.

Tags for this Thread

Everyone's Tags:

latex(3), label(2), figure

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
figure Samuel 25 Apr, 2009 15:35:04
latex Samuel 25 Apr, 2009 15:34:52
label Samuel 25 Apr, 2009 15:34:48
latex Markus Pötschke 25 Nov, 2008 09:27:48
label Norman 25 Oct, 2007 08:15:19
latex Norman 25 Oct, 2007 08:15:19
rssFeed for this Thread

Contact us at files@mathworks.com