Thread Subject: why tabs aren't displayed on a legend?

Subject: why tabs aren't displayed on a legend?

From: pietro

Date: 31 Jan, 2012 14:58:10

Message: 1 of 5

Hi all,

I want to create plots with tab in the lengend. I used something like that:
legend(['a' char(9) 'b1'],['b1' char(9) 'c']);

but it is displayed something like:

'ab1'
'b1c'.

Does anyone have any idea to display tabs on a legend?

thanks

Pietro

Subject: why tabs aren't displayed on a legend?

From: dpb

Date: 31 Jan, 2012 15:26:45

Message: 2 of 5

On 1/31/2012 8:58 AM, pietro wrote:
> Hi all,
> I want to create plots with tab in the lengend. I used something like that:
> legend(['a' char(9) 'b1'],['b1' char(9) 'c']);
>
> but it is displayed something like:
>
> 'ab1'
> 'b1c'.
>
> Does anyone have any idea to display tabs on a legend?
...

Expand them as spaces. TeX interpreter doesn't know about \t afaict

--

Subject: why tabs aren't displayed on a legend?

From: pietro

Date: 31 Jan, 2012 15:54:09

Message: 3 of 5

dpb <none@non.net> wrote in message <jg917k$7as$1@speranza.aioe.org>...
> On 1/31/2012 8:58 AM, pietro wrote:
> > Hi all,
> > I want to create plots with tab in the lengend. I used something like that:
> > legend(['a' char(9) 'b1'],['b1' char(9) 'c']);
> >
> > but it is displayed something like:
> >
> > 'ab1'
> > 'b1c'.
> >
> > Does anyone have any idea to display tabs on a legend?
> ...
>
> Expand them as spaces. TeX interpreter doesn't know about \t afaict
>
> --

Hi dpb,

Thanks for your reply. Doesn't TeX interpreter have the tab character? I already tried with spaces but unfortunately the letter aren't aligned perfectly, so I was looking for a niceier way.

Thanks again

Pietro

Subject: why tabs aren't displayed on a legend?

From: dpb

Date: 31 Jan, 2012 17:38:10

Message: 4 of 5

On 1/31/2012 9:54 AM, pietro wrote:
...

> Thanks for your reply. Doesn't TeX interpreter have the tab character? I
> already tried with spaces but unfortunately the letter aren't aligned
> perfectly, so I was looking for a niceier way.
...

No \t according to documentation re: TeX interpreter here, anyway; and
if it didn't do it there that's pretty telling I'd think... :)

Use a non-proportional font to get even spacing w/ blanks if that's a
need or use text() and spacing manually (a fair amount of work undoubtedly).

--

Subject: why tabs aren't displayed on a legend?

From: pietro

Date: 1 Feb, 2012 16:20:10

Message: 5 of 5

dpb <none@non.net> wrote in message <jg98tv$rdt$2@speranza.aioe.org>...
> On 1/31/2012 9:54 AM, pietro wrote:
> ...
>
> > Thanks for your reply. Doesn't TeX interpreter have the tab character? I
> > already tried with spaces but unfortunately the letter aren't aligned
> > perfectly, so I was looking for a niceier way.
> ...
>
> No \t according to documentation re: TeX interpreter here, anyway; and
> if it didn't do it there that's pretty telling I'd think... :)
>
> Use a non-proportional font to get even spacing w/ blanks if that's a
> need or use text() and spacing manually (a fair amount of work undoubtedly).
>
> --

Oh thanks I'm going to try it.

Pietro

Tags for this Thread

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.

rssFeed for this Thread

Contact us at files@mathworks.com