text crossing lines (plot versus contour)

text crossing lines (plot versus contour)

Post by Paul » Sat, 08 Mar 2008 00:20:19


> plot(1:10)

notice how the number 5 and the straight line cross each
other. Compare this to labeled contours where the numbers
have a little white space around them.

How can I do this when I use text in plots?
 
 
 

text crossing lines (plot versus contour)

Post by us » Sat, 08 Mar 2008 01:41:01

"Paul ":
<SNIP cannot see his/her numbers...


one of the solutions

plot(1:10,'-or','markerfacecolor',[1,0,0]);
xoff=.2;
yoff=.3;
text(5+xoff,5+yoff,'5','backgroundcolor',[0,1,0]);

us