<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: String Annotations for Plots</title>
	<atom:link href="http://blogs.mathworks.com/loren/2007/02/08/string-annotations-for-plots/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/loren/2007/02/08/string-annotations-for-plots/</link>
	<description>Loren Shure works on design of the MATLAB language at MathWorks. She writes here about once a week on MATLAB programming and related topics.</description>
	<lastBuildDate>Thu, 16 Feb 2012 04:40:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Brian</title>
		<link>http://blogs.mathworks.com/loren/2007/02/08/string-annotations-for-plots/#comment-32288</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Tue, 24 May 2011 15:51:33 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/?p=76#comment-32288</guid>
		<description>The OS X issue sounds like a Java bug I ran into recently on the Mac with Java &#039;Sun&#039; graphics rendering. You&#039;re only likely to run into this if you have a significantly older MATLAB release on a very recent version of Mac OS X.

To check if you&#039;re running MATLAB with Sun rendering, type the following in the command window:
&lt;pre&gt;
java.lang.System.getProperty(&#039;apple.awt.graphics.UseQuartz&#039;)
&lt;/pre&gt;

If the UseQuartz property returns false, you will need to create a java.opts file inside the MATLAB bin/maci (or maci64 if you&#039;re using a 64-bit version) folder, and give it this assignment:

&lt;pre&gt;
-Dapple.awt.graphics.UseQuartz=true
&lt;/pre&gt;

If you are using MATLAB R2008a or later, this file is already present with this assignment in it.</description>
		<content:encoded><![CDATA[<p>The OS X issue sounds like a Java bug I ran into recently on the Mac with Java &#8216;Sun&#8217; graphics rendering. You&#8217;re only likely to run into this if you have a significantly older MATLAB release on a very recent version of Mac OS X.</p>
<p>To check if you&#8217;re running MATLAB with Sun rendering, type the following in the command window:</p>
<pre>
java.lang.System.getProperty('apple.awt.graphics.UseQuartz')
</pre>
<p>If the UseQuartz property returns false, you will need to create a java.opts file inside the MATLAB bin/maci (or maci64 if you&#8217;re using a 64-bit version) folder, and give it this assignment:</p>
<pre>
-Dapple.awt.graphics.UseQuartz=true
</pre>
<p>If you are using MATLAB R2008a or later, this file is already present with this assignment in it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bryan</title>
		<link>http://blogs.mathworks.com/loren/2007/02/08/string-annotations-for-plots/#comment-32283</link>
		<dc:creator>bryan</dc:creator>
		<pubDate>Mon, 23 May 2011 22:36:26 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/?p=76#comment-32283</guid>
		<description>I have Matlab R2007B running on OS X.  I would love to rotate text on plots but it always comes out jumbled.  Your circle example works because each character is assigned a location, but if I have a string the order of the characters in the string is jumbled when it is rotated. Is there something I can do?  Is this fixed in newer versions?</description>
		<content:encoded><![CDATA[<p>I have Matlab R2007B running on OS X.  I would love to rotate text on plots but it always comes out jumbled.  Your circle example works because each character is assigned a location, but if I have a string the order of the characters in the string is jumbled when it is rotated. Is there something I can do?  Is this fixed in newer versions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Hirsch</title>
		<link>http://blogs.mathworks.com/loren/2007/02/08/string-annotations-for-plots/#comment-28189</link>
		<dc:creator>Scott Hirsch</dc:creator>
		<pubDate>Mon, 07 Apr 2008 12:08:55 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/?p=76#comment-28189</guid>
		<description>Rodney - 

MATLAB does have the equivalent of the OnZoom callback.  It&#039;s a zoom property called ActionPostCallback.  Check out the help for ZOOM for explanations and examples.

Regardless, we are aware of the issues with datetick and rotated tick labels, and are very interested in addressing these in a future release.
- scott</description>
		<content:encoded><![CDATA[<p>Rodney &#8211; </p>
<p>MATLAB does have the equivalent of the OnZoom callback.  It&#8217;s a zoom property called ActionPostCallback.  Check out the help for ZOOM for explanations and examples.</p>
<p>Regardless, we are aware of the issues with datetick and rotated tick labels, and are very interested in addressing these in a future release.<br />
- scott</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ram</title>
		<link>http://blogs.mathworks.com/loren/2007/02/08/string-annotations-for-plots/#comment-28182</link>
		<dc:creator>Ram</dc:creator>
		<pubDate>Mon, 07 Apr 2008 01:14:26 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/?p=76#comment-28182</guid>
		<description>another vote for supporting vertical axis labels in matlab. what a pain. :(</description>
		<content:encoded><![CDATA[<p>another vote for supporting vertical axis labels in matlab. what a pain. :(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rodney</title>
		<link>http://blogs.mathworks.com/loren/2007/02/08/string-annotations-for-plots/#comment-16152</link>
		<dc:creator>Rodney</dc:creator>
		<pubDate>Mon, 26 Mar 2007 03:42:35 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/?p=76#comment-16152</guid>
		<description>The ability to rotate xlabel text by an arbitrary angle would be fantastic. +1 vote by me.

I have performed something similar to the kludge mentioned by Dan K before, but as mentioned by lehalle, you get very strange behaviour when zooming.

Imagine the case when you have set your own XTickLabels, the the silly user zooms on a region.. what happens? The same labels are reused!! A complete disaster.

Now what WOULD be useful (and may exist but I cannot for the life of me find it) would be a OnZoom callback. I can imagine lots of cool things that can be performed with this, particularly in a GUI aspect. And then the horrible lable kludge can be hidden in a nice compact reuseable piece of code and will actually work over all zoom ranges.

(by the way - to get around the problem previously I have created a Timer of interval 0.1 second that continuously polls the axis and axis tic locations, and if they have changed, update the plots... nowhere near as nice)

(sorry for the long post)

- Rod</description>
		<content:encoded><![CDATA[<p>The ability to rotate xlabel text by an arbitrary angle would be fantastic. +1 vote by me.</p>
<p>I have performed something similar to the kludge mentioned by Dan K before, but as mentioned by lehalle, you get very strange behaviour when zooming.</p>
<p>Imagine the case when you have set your own XTickLabels, the the silly user zooms on a region.. what happens? The same labels are reused!! A complete disaster.</p>
<p>Now what WOULD be useful (and may exist but I cannot for the life of me find it) would be a OnZoom callback. I can imagine lots of cool things that can be performed with this, particularly in a GUI aspect. And then the horrible lable kludge can be hidden in a nice compact reuseable piece of code and will actually work over all zoom ranges.</p>
<p>(by the way &#8211; to get around the problem previously I have created a Timer of interval 0.1 second that continuously polls the axis and axis tic locations, and if they have changed, update the plots&#8230; nowhere near as nice)</p>
<p>(sorry for the long post)</p>
<p>- Rod</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lehalle</title>
		<link>http://blogs.mathworks.com/loren/2007/02/08/string-annotations-for-plots/#comment-16106</link>
		<dc:creator>lehalle</dc:creator>
		<pubDate>Wed, 07 Mar 2007 13:40:26 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/?p=76#comment-16106</guid>
		<description>Hi Loren,
I just wanted to point out a problem I have for years with MATLAB about the datetick.
It seems that once you decided to use datetick to plot dates on your axe, once you have zoomed between two ticks, you loose the ticks...
I developped a small function to be able to zoom and keep ticks: I rewrite the date labels using the text function...

%% Example
figure
plot(today-100:today,cumsum(randn(101,1)))
datetick
ax=axis;axis([today-10 today ax(3:4)])
title(&#039;Where have my other ticks gone?&#039;)</description>
		<content:encoded><![CDATA[<p>Hi Loren,<br />
I just wanted to point out a problem I have for years with MATLAB about the datetick.<br />
It seems that once you decided to use datetick to plot dates on your axe, once you have zoomed between two ticks, you loose the ticks&#8230;<br />
I developped a small function to be able to zoom and keep ticks: I rewrite the date labels using the text function&#8230;</p>
<p>%% Example<br />
figure<br />
plot(today-100:today,cumsum(randn(101,1)))<br />
datetick<br />
ax=axis;axis([today-10 today ax(3:4)])<br />
title(&#8216;Where have my other ticks gone?&#8217;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loren</title>
		<link>http://blogs.mathworks.com/loren/2007/02/08/string-annotations-for-plots/#comment-16077</link>
		<dc:creator>Loren</dc:creator>
		<pubDate>Thu, 22 Feb 2007 11:53:48 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/?p=76#comment-16077</guid>
		<description>Steve-

You know where the text is roughly in one dimension for each axis (e.g., you know the centered horizontal locations from the Xtick values).  But there is not a simple way to inquire about the exact position.  There is no doubt that this is currently awkward to achieve.

--loren</description>
		<content:encoded><![CDATA[<p>Steve-</p>
<p>You know where the text is roughly in one dimension for each axis (e.g., you know the centered horizontal locations from the Xtick values).  But there is not a simple way to inquire about the exact position.  There is no doubt that this is currently awkward to achieve.</p>
<p>&#8211;loren</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Dodge</title>
		<link>http://blogs.mathworks.com/loren/2007/02/08/string-annotations-for-plots/#comment-16076</link>
		<dc:creator>Steve Dodge</dc:creator>
		<pubDate>Thu, 22 Feb 2007 04:53:59 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/?p=76#comment-16076</guid>
		<description>Loren,

the workaround you suggest requires that I know where to put the text; is there a simple way to obtain this information about existing labels? Or have I misunderstood your suggestion?

-Steve</description>
		<content:encoded><![CDATA[<p>Loren,</p>
<p>the workaround you suggest requires that I know where to put the text; is there a simple way to obtain this information about existing labels? Or have I misunderstood your suggestion?</p>
<p>-Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loren</title>
		<link>http://blogs.mathworks.com/loren/2007/02/08/string-annotations-for-plots/#comment-16069</link>
		<dc:creator>Loren</dc:creator>
		<pubDate>Tue, 20 Feb 2007 13:13:49 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/?p=76#comment-16069</guid>
		<description>Steve-

This request is on the enhancement list.  I don&#039;t get into discussions here about timing typically.

The workaround for now is to replace the ticklabels with text.  text can use the TeX interpreter and get the symbols such as pi into the label.

--Loren</description>
		<content:encoded><![CDATA[<p>Steve-</p>
<p>This request is on the enhancement list.  I don&#8217;t get into discussions here about timing typically.</p>
<p>The workaround for now is to replace the ticklabels with text.  text can use the TeX interpreter and get the symbols such as pi into the label.</p>
<p>&#8211;Loren</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/loren/2007/02/08/string-annotations-for-plots/#comment-16064</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 19 Feb 2007 15:52:06 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/?p=76#comment-16064</guid>
		<description>I find it odd that ML can do so much with text objects, but can not handle the following simple request:

x=linspace(-pi,pi);y=sin(x);
plot(x,y)
set(gca,&#039;XTick&#039;,(-pi:pi/2:pi))
set(gca,&#039;XTickLabel&#039;,{&#039;-\pi&#039;,&#039;-\pi/2&#039;,&#039;0&#039;,&#039;\pi/2&#039;,&#039;\pi&#039;})

This means that I can not use ML alone to produce publication-quality figures with symbolic tick labels. Surely this has been on the &#039;to-do&#039; list for a long time? Why is it not yet possible?</description>
		<content:encoded><![CDATA[<p>I find it odd that ML can do so much with text objects, but can not handle the following simple request:</p>
<p>x=linspace(-pi,pi);y=sin(x);<br />
plot(x,y)<br />
set(gca,&#8217;XTick&#8217;,(-pi:pi/2:pi))<br />
set(gca,&#8217;XTickLabel&#8217;,{&#8216;-\pi&#8217;,'-\pi/2&#8242;,&#8217;0&#8242;,&#8217;\pi/2&#8242;,&#8217;\pi&#8217;})</p>
<p>This means that I can not use ML alone to produce publication-quality figures with symbolic tick labels. Surely this has been on the &#8216;to-do&#8217; list for a long time? Why is it not yet possible?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

