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
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com