Thread Subject: text in 2D plot

Subject: text in 2D plot

From: gamecock2007@gmail.com

Date: 19 Oct, 2007 14:59:16

Message: 1 of 3

Hi,

I have a 2D plot, with 8 lines, I am trying to avoid using legend as
it becomes ugly after few members. I was trying to write text over the
lines itself (using menu ->insert -> text, which gives a horizontal
text) but most of the lines are at 45 degree slope, is there any way I
can allign the text with the line? or any other option.


Thanks.

Subject: text in 2D plot

From: Dan Haeg

Date: 19 Oct, 2007 18:14:40

Message: 2 of 3

 gamecock2007@gmail.com wrote in message
<1192805956.324792.113780@i13g2000prf.googlegroups.com>...
> Hi,
>
> I have a 2D plot, with 8 lines, I am trying to avoid using
legend as
> it becomes ugly after few members. I was trying to write
text over the
> lines itself (using menu ->insert -> text, which gives a
horizontal
> text) but most of the lines are at 45 degree slope, is
there any way I
> can allign the text with the line? or any other option.
>
>
> Thanks.
>

text(x,y,'string','Rotation',45)

Subject: text in 2D plot

From: gamecock2007@gmail.com

Date: 19 Oct, 2007 18:54:07

Message: 3 of 3

>
> text(x,y,'string','Rotation',45)


Thanks! it worked. But sometimes the text get crooked

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