<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239232</link>
    <title>MATLAB Central Newsreader - Logarithmic Surface Plot</title>
    <description>Feed for thread: Logarithmic Surface Plot</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 14 Nov 2008 08:20:19 -0500</pubDate>
      <title>Logarithmic Surface Plot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239232#610852</link>
      <author>Alex Thiele</author>
      <description>Hello All,&lt;br&gt;
&lt;br&gt;
I am generating a 'Moving' Allan Variance script, and cannot figure out how to create a logarithmic surface plot.&lt;br&gt;
&lt;br&gt;
I have a 30x100 array. Row 1 contains my x axis data (time interval) which will be the same for all the data. And Rows 2:30 contain 29 sets of y axis data. (which would all be plotted against my row 1 data)&lt;br&gt;
&lt;br&gt;
So I have 29 sets of data that I would like to plot next to each other in a 3D plot and see how the graphs vary with time. Normally I would just do a loglog to plot one instance of the data. I tried logging the data before hand, but then obviously, all the axes scales were incorrect.&lt;br&gt;
&lt;br&gt;
Does anyone know if this is possible?&lt;br&gt;
&lt;br&gt;
Many thanks</description>
    </item>
    <item>
      <pubDate>Fri, 14 Nov 2008 15:42:21 -0500</pubDate>
      <title>Re: Logarithmic Surface Plot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239232#610926</link>
      <author>Walter Roberson</author>
      <description>Alex Thiele wrote:&lt;br&gt;
&amp;gt; I am generating a 'Moving' Allan Variance script, and cannot figure out how to create&lt;br&gt;
&amp;gt; a logarithmic surface plot.&lt;br&gt;
&lt;br&gt;
Matlab will not do surfaces in with [XYZ]Scale set to 'log'&lt;br&gt;
&lt;br&gt;
&amp;gt; I tried logging the data before hand, but then obviously, all the axes scales were incorrect.&lt;br&gt;
&lt;br&gt;
Set the [XYZ]TickLabel properties if it is just the labeling that is the problem.&lt;br&gt;
But if you need to be able to zoom or pick points with ginput() when your data&lt;br&gt;
has been log()'d ahead of time, then Yes, you are going to have difficulties.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
.signature note: I am now avoiding replying to unclear or ambiguous postings.&lt;br&gt;
Please review questions before posting them. Be specific. Use examples of what you mean,&lt;br&gt;
of what you don't mean. Specify boundary conditions, and data classes and value&lt;br&gt;
relationships -- what if we scrambled your data or used -Inf, NaN, or complex(rand,rand)?</description>
    </item>
    <item>
      <pubDate>Mon, 17 Nov 2008 14:20:18 -0500</pubDate>
      <title>Re: Logarithmic Surface Plot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239232#611280</link>
      <author>Alex Thiele</author>
      <description>Thanks for the reply.&lt;br&gt;
&lt;br&gt;
Yes, I need proper scaling. I dont want to have to perform antilogs on my data in order to get the proper reading from the plot!&lt;br&gt;
&lt;br&gt;
Hmm, it would seem this is not possible. Thanks anyway!</description>
    </item>
    <item>
      <pubDate>Mon, 17 Nov 2008 14:36:45 -0500</pubDate>
      <title>Re: Logarithmic Surface Plot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239232#611284</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Walter Roberson&quot; &amp;lt;roberson@hushmail.com&amp;gt; wrote in message &lt;br&gt;
news:c%gTk.7044$Oq2.5807@newsfe08.iad...&lt;br&gt;
&amp;gt; Alex Thiele wrote:&lt;br&gt;
&amp;gt;&amp;gt; I am generating a 'Moving' Allan Variance script, and cannot figure out &lt;br&gt;
&amp;gt;&amp;gt; how to create&lt;br&gt;
&amp;gt;&amp;gt; a logarithmic surface plot.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Matlab will not do surfaces in with [XYZ]Scale set to 'log'&lt;br&gt;
&lt;br&gt;
Sure it will, as long as the data in the appropriate dimension is positive.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
[x, y, z] = peaks;&lt;br&gt;
&lt;br&gt;
% All of x, y, and z contain negative values, so we need to translate them&lt;br&gt;
minx = min(x(:));&lt;br&gt;
miny = min(y(:));&lt;br&gt;
minz = min(z(:));&lt;br&gt;
&lt;br&gt;
% 2 is a semi-arbitrary &quot;fudge factor&quot;, designed to make absolutely sure&lt;br&gt;
% that none of the matrix elements even come close to 0&lt;br&gt;
surf(x+abs(minx)+2, y+abs(miny)+2, z+abs(minz)+2);&lt;br&gt;
&lt;br&gt;
% Set all three axes to be log scale&lt;br&gt;
set(gca, 'XScale', 'log', 'YScale', 'log', 'ZScale', 'log')&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
I also tried changing the *Scale properties before SURFing, and as long as I &lt;br&gt;
added the commands:&lt;br&gt;
&lt;br&gt;
view(3); hold on&lt;br&gt;
&lt;br&gt;
to set the axes view to the 3d view and hold the *Scale property values &lt;br&gt;
before calling SURF, it worked.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
    <item>
      <pubDate>Mon, 17 Nov 2008 17:41:02 -0500</pubDate>
      <title>Re: Logarithmic Surface Plot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239232#611325</link>
      <author>Alex Thiele</author>
      <description>&amp;gt; % Set all three axes to be log scale&lt;br&gt;
&amp;gt; set(gca, 'XScale', 'log', 'YScale', 'log', 'ZScale', 'log')&lt;br&gt;
&lt;br&gt;
Hey, it's as easy as that! There's always a simple solution! Now the only bit left to make it perfect, is to sort the colormap out! Now that I have a logarithmic surface plot, my surface color is pretty much the same! i.e. you can't see any variation because of the log scale! Hmmmm....&lt;br&gt;
&lt;br&gt;
Thanks for the help!</description>
    </item>
  </channel>
</rss>

