<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.igorexchange.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>All new activity</title>
 <link>http://www.igorexchange.com/forum_tracker_new</link>
 <description>This feed contains all new activity that has been posted and the user has not seen.</description>
 <language>en-US</language>
<item>
 <title>Storing strings in waves</title>
 <link>http://www.igorexchange.com/node/2799</link>
 <description>&lt;p&gt;I am trying to recall strings from a wave.  This seems to work OK, so long as the wave was created within the function itself, however, it gives unexpected results when I access the data from another function.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;geshifilter&quot;&gt;&lt;pre class=&quot;igor geshifilter-igor&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span class=&quot;kw5&quot;&gt;#pragma&lt;/span&gt; rtGlobals=&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;		&lt;span class=&quot;co1&quot;&gt;// Use modern global access method.&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;Function&lt;/span&gt; test&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;make&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;T&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;O testTextWave=&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;text&amp;quot;&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;goes&amp;quot;&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;in&amp;quot;&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;here&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;print&lt;/span&gt; testTextWave
	&lt;span class=&quot;kw4&quot;&gt;print&lt;/span&gt; testTextWave&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;0&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;End&lt;/span&gt;
 
&lt;span class=&quot;kw2&quot;&gt;Function&lt;/span&gt; testX&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw2&quot;&gt;wave&lt;/span&gt; testTextWave
	&lt;span class=&quot;kw4&quot;&gt;print&lt;/span&gt; testTextWave
	&lt;span class=&quot;kw4&quot;&gt;print&lt;/span&gt; testTextWave&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;0&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;End&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;If you run test(), you get the following output:&lt;br /&gt;
&lt;div class=&quot;geshifilter&quot;&gt;&lt;pre class=&quot;igor geshifilter-igor&quot; style=&quot;font-family:monospace;&quot;&gt;•test&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
  testTextWave&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;0&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;= &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;text&amp;quot;&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;goes&amp;quot;&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;in&amp;quot;&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;here&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
  text
•testX&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
  testTextWave&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;0&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;= &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;text&amp;quot;&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;goes&amp;quot;&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;in&amp;quot;&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;here&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
  3.37009e-275&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;can anyone tell me what I am doing wrong?  The testX function can &quot;see&quot; the testTextWave just fine and print it in its entirety, but when asked to produce a single cell, it fails.&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/2799#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Thu, 09 Feb 2012 13:30:16 -0800</pubDate>
 <dc:creator>mtaylor</dc:creator>
 <guid isPermaLink="false">2799 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Is anyone here using the &quot;NIST SANS data analysis program&quot; written in Igor?</title>
 <link>http://www.igorexchange.com/node/2800</link>
 <description>&lt;p&gt;Dear All,&lt;/p&gt;
&lt;p&gt;I&#039;m currently using the above mentioned program for analysing some data I acquired from small-angle scattering experiments. &lt;/p&gt;
&lt;p&gt;It&#039;s a free program downloadable from NIST website and fully compatible with Igor.&lt;/p&gt;
&lt;p&gt;So, I&#039;d like to ask if here is any small-angle scattering experts who is familiar with this program.&lt;/p&gt;
&lt;p&gt;Best Wishes,&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/2800#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Thu, 09 Feb 2012 17:49:32 -0800</pubDate>
 <dc:creator>Igor_user</dc:creator>
 <guid isPermaLink="false">2800 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Latex in Igor?</title>
 <link>http://www.igorexchange.com/node/2781</link>
 <description>&lt;p&gt;There have been a few attempts to get Igor to use Latex output.  Some seem to work but are cumbersome (e.g., loading an image).  Direct support in igor would be nice.  In the maillist, a recent exchange highlights the need.  As one can see from Jim Prouty&#039;s response, the equivalent Igor way of including a fraction is a long, difficult to learn / remember string.  Moreover, it does not begin to approach Latex&#039;s range and control over formatting.  For example, with packages, one can distinguish in Latex among \frac, \tfrac, \sfrac, etc.  -- each of which does something slightly different.  The range of symbols is far larger, etc.&lt;/p&gt;
&lt;p&gt;So, having an option to replace Igor&#039;s system of control for labels, etc. with Latex syntax would improve the program (and make it easier to learn for those who already know Latex).&lt;/p&gt;
&lt;p&gt;________________________________________________________&lt;/p&gt;
&lt;p&gt;On Feb 2, 2012, at 5:18 PM, David Nicholls wrote:&lt;/p&gt;
&lt;p&gt;&amp;gt; I&#039;ve been trying to insert a &quot;vertical&quot; fraction character into an annotation on a graph. i.e. I want the equivalent of the LaTex $\frac{1}{2}$&lt;br /&gt;
&amp;gt; &lt;/p&gt;
&lt;p&gt;From:   Jim Prouty&lt;br /&gt;
Subject:   Re: Vertical fractions in annotations? LaTeX? (Mac) &lt;/p&gt;
&lt;p&gt;You can use the escape codes to do this directly:&lt;/p&gt;
&lt;p&gt;This is \[1\S1\y-15\L1400\X1\Y1\M\B2\M of the total&lt;br /&gt;
________________________________________________________&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/2781#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/87">Igor Pro Wish List</category>
 <pubDate>Fri, 03 Feb 2012 13:54:26 -0800</pubDate>
 <dc:creator>bech</dc:creator>
 <guid isPermaLink="false">2781 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Column order in a table</title>
 <link>http://www.igorexchange.com/node/2798</link>
 <description>&lt;p&gt;Is there a way to reorder columns in a table without creating a new table?&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/2798#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Thu, 09 Feb 2012 12:17:30 -0800</pubDate>
 <dc:creator>patarroyo</dc:creator>
 <guid isPermaLink="false">2798 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Diagnostic Tools in motofit</title>
 <link>http://www.igorexchange.com/node/2740</link>
 <description>&lt;p&gt;I am trying to characterize the fits I am doing with motofit and am interested in the following diagnostics:&lt;/p&gt;
&lt;p&gt;1. plot of chi2 error vs. # of trials&lt;/p&gt;
&lt;p&gt;Unsure of how to do this, but I think I need to concatenate the chi2 value onto a wave during the evaluation loop and then display this wave.  Is there an easier way to do this? Chi2 is displayed in the progress window, so that value is in memory somewhere and should be grabable during execution.  My first attempt to do this unfortunately failed.&lt;/p&gt;
&lt;p&gt;2. Plot of Coefficient values vs. # of trials&lt;/p&gt;
&lt;p&gt;This one I have been able to do somewhat, utilizing /DUMP, which creates the matrix M_gencurvefitpopdump[n][*] where n is the coefficient number. (see attached image) However, there seems to be some problem here, as should I &quot;hold&quot; any variable during the fit, the output matrix is offset in such a way that I get something resembling a plaid shirt on acid (see second attached image).  The values are still there, they are just not entered into the matrix in an orderly way.  As a work-around, I have chosen to set the range of &quot;Held&quot; parameters to zero, for example varying a parameter between 200 and 200 results in a value of 200 being selected for every trial.  I would prefer not to do this, however, as it is slower and clunkier in terms of UI.&lt;/p&gt;
&lt;p&gt;The gencurvefit help file indicates the following about /DUMP:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;br /&gt;
/DUMP	At the end of every iteration Gencurvefit will dump the genetic population of the parameters that vary, into a wave called M_gencurvefitpopdump. The wave will be 3D, having dimensions [V_nterms][V_nterms*popsize][].  The number of layers represent the output after each iteration.  The first layer is that of the initial guess population and the last layer is that of the population when the fit terminates&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;However, the matrix is actually 2D and as far as I can tell contains the best (or average?) values of the population after a certain number of generations... which is why my graph was so easy to do in the first place.  Did I miss something here?  Also, I am able to do thousands of iterations, yet the number of points is much smaller, around 100 or so.&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/2740#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <enclosure url="http://www.igorexchange.com/image/view/2739/preview" length="290328" type="image/png" />
 <pubDate>Tue, 24 Jan 2012 12:45:23 -0800</pubDate>
 <dc:creator>mtaylor</dc:creator>
 <guid isPermaLink="false">2740 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Corrupted PNG file from ImageSave</title>
 <link>http://www.igorexchange.com/node/2794</link>
 <description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;a problem description:&lt;/p&gt;
&lt;p&gt;Igor 6.2.2.2&lt;br /&gt;
Win7&lt;br /&gt;
Firefox 10.0&lt;br /&gt;
Internet Explorer 9&lt;/p&gt;
&lt;p&gt;I create a PNG file e.g. as follows: &lt;/p&gt;
&lt;p&gt;•Make/O/U/B/N=(256,256,3) Img = mod(x+y,256)&lt;br /&gt;
•ImageSave/O/T=&quot;PNGf&quot; Img as &quot;C:Temp:Img1.png&quot;&lt;/p&gt;
&lt;p&gt;The resulting PNG file seems to be corrupted. If I try to open it with Firefox or Internet Explorer I get a message &quot;the image cannot be opened, because it contains errors.&quot; And that is a problem, because it means, that the resulting graphs cannot be published online. &lt;/p&gt;
&lt;p&gt;The resulting PNG file can be correctly viewed with other programs like e.g. GIMP. It is correctly displayed in the Windows file preview. A Quicktime upgrade does not help nor does a Quicktime downgrade. Both used browsers are pretty up to date. &lt;/p&gt;
&lt;p&gt;In contrast a PNG file created with the following command can be displayed without problem in Firefox and IE:&lt;/p&gt;
&lt;p&gt;•SavePICT/O/T=&quot;PNGf&quot;/B=72 as &quot;C:Temp:Img2.png&quot;&lt;/p&gt;
&lt;p&gt;So the problem seems to be related to the ImageSave command. Interestingly both browsers are affected, so it could also be connected to the operating system. &lt;/p&gt;
&lt;p&gt;Does anyone of you know how to resolve this problem? &lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;
Joerg. &lt;/p&gt;
&lt;p&gt;P.S.: Despite from this error Igor 6 works pretty fine!&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/2794#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Wed, 08 Feb 2012 15:37:04 -0800</pubDate>
 <dc:creator>joerg.kunze</dc:creator>
 <guid isPermaLink="false">2794 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Subtract the background and Converting kinetic energy to binding energy</title>
 <link>http://www.igorexchange.com/node/2792</link>
 <description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;I am a beginner in using Igor and I have some problems:&lt;/p&gt;
&lt;p&gt;1- How to subtract the background from a graph?&lt;/p&gt;
&lt;p&gt;2- In UPS measurements, How to convert the axis of the kinetic energy to binding energy or how to plot the graph from the beginning with respect to the binding energy?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Sama&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/2792#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Wed, 08 Feb 2012 08:05:37 -0800</pubDate>
 <dc:creator>sghanem</dc:creator>
 <guid isPermaLink="false">2792 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Subtract two waves</title>
 <link>http://www.igorexchange.com/node/2793</link>
 <description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;I need to know how to subtract two waves?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Sama&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/2793#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Wed, 08 Feb 2012 09:53:36 -0800</pubDate>
 <dc:creator>sghanem</dc:creator>
 <guid isPermaLink="false">2793 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Newbie: templates</title>
 <link>http://www.igorexchange.com/node/2485</link>
 <description>&lt;p&gt;No matter how many times I read the manual and forums, I still can&#039;t figure out this well for opening a template and apply the setting to the graph.&lt;br /&gt;
I hope some of you are/were OriginLab/ Kaleidagraph users.&lt;br /&gt;
The way it works for me is like this: I made a graph, modify it here and there and save it as template. That way, I can create template for each graph of IR, UV=VIS, NMR, I-V, etc etc). Open new data, plot, and then open plot=templatd-data.&lt;/p&gt;
&lt;p&gt;However the present settings are confusing to me. How should I proceed ?&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/2485#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Mon, 19 Sep 2011 20:21:05 -0700</pubDate>
 <dc:creator>jlawrence</dc:creator>
 <guid isPermaLink="false">2485 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>mie scattering code</title>
 <link>http://www.igorexchange.com/node/2665</link>
 <description>&lt;p&gt;I am currently working on a project that requires mie scattering calculation. Most of the code available is in IDL, does anyone have an igor code to do this? I will highly appreciate a timely response.&lt;br /&gt;
Thank you&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/2665#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/85">IgorExchange.com</category>
 <pubDate>Thu, 15 Dec 2011 14:09:18 -0800</pubDate>
 <dc:creator>gmwaniki</dc:creator>
 <guid isPermaLink="false">2665 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Using GlobalFit to evaluate differences between two different fitting functions  </title>
 <link>http://www.igorexchange.com/node/2759</link>
 <description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have two different fitting functions which they both have the same first fitting coefficient, but different second one. I want to use them as fitting functions on same data sets. So, for each data set I have to use both functions. Here are my questions regarding this case:&lt;br /&gt;
1) What are the benefits of using GlobalFit in contrast to regular separate curve fitting with FuncFit, or is just faster method?&lt;br /&gt;
2) Is in this case useful to use GlobalFit like in case of two different functions for two different data sets?&lt;br /&gt;
3) What do you recommend to use for comparison of two different fitting functions only in one parameter on the same data set?&lt;/p&gt;
&lt;p&gt;Thank you for all information and advices.&lt;/p&gt;
&lt;p&gt;Best,&lt;br /&gt;
Dejan&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/2759#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Sun, 29 Jan 2012 15:53:23 -0800</pubDate>
 <dc:creator>arzensekd</dc:creator>
 <guid isPermaLink="false">2759 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>GetFileFolderInfo usage and flags</title>
 <link>http://www.igorexchange.com/node/2784</link>
 <description>&lt;p&gt;Hi, I&#039;m using Igor Pro 4 ans would like to use GetFileFolderInfo to check whether a file exists on a local disk. However I can&#039;t find the command in the Igor help or online. Is it only available in later Igor versions? Are there alternatives I can use to check whether a file exists with Igor 4?&lt;/p&gt;
&lt;p&gt;If it is possible to use GetFileFolderInfo, could you please post the correct usage explanation as I am not sure which flags to set.&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/2784#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Mon, 06 Feb 2012 08:35:44 -0800</pubDate>
 <dc:creator>tech-</dc:creator>
 <guid isPermaLink="false">2784 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Image Plot from matrix data</title>
 <link>http://www.igorexchange.com/node/2491</link>
 <description>&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;I would like to start by explaining how far I got on my own before I ran into the problems I am addressing here. Maybe there is some alternative along the way that will make the actual problem not appear in the first place.&lt;/p&gt;
&lt;p&gt;I am starting with data that is in what I call &quot;gnuplot format&quot;:&lt;/p&gt;
&lt;p&gt;x1  y1  z11&lt;br /&gt;
x1  y2  z12&lt;br /&gt;
x1  y3  z13&lt;/p&gt;
&lt;p&gt;x2  y1  z21&lt;br /&gt;
x2  y2  z22&lt;br /&gt;
...&lt;/p&gt;
&lt;p&gt;I didn&#039;t find out whether this can be processed directly by Igor so I extracted three files from it with python which are (x1,x2,...), (y1,y2,...), and the matrix with the z-values. These I load into Igor which allows me to plot the matrix as an image with the x- and y-wave (after adding one additional point) as the corresponding axes. &lt;/p&gt;
&lt;p&gt;The first problem is that I think the z-values in the matrix lose the knowledge about the x- and y-values they belong to. So it is up to me to set the right order for the axes. In this case I know how the image is supposed to look like but once I don&#039;t, how can I be sure which order of x- and y-values is correct?&lt;/p&gt;
&lt;p&gt;The second and more important thing to me right now is, that I have two such matrices, one running from y = 0 to 3 Tesla the other one from y = 0 to -3 Tesla. I would like to plot them in the same image plot. Is there a way to correctly join the two matrices in Igor? For that I would have to mirror the second matrix so that it runs from -3 to 0 Tesla. Only changing the order in the y-wave doesn&#039;t help because as I said above, the z-values are not connected to their &quot;real&quot; coordinates any more.&lt;/p&gt;
&lt;p&gt;Ok, I hope I followed all the forum rules correctly and there aren&#039;t too many typos.&lt;/p&gt;
&lt;p&gt;Thanks for any help,&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/2491#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Sat, 24 Sep 2011 02:25:53 -0700</pubDate>
 <dc:creator>MarkusG</dc:creator>
 <guid isPermaLink="false">2491 at http://www.igorexchange.com</guid>
</item>
<item>
 <title> box plot of average diurnal variations</title>
 <link>http://www.igorexchange.com/node/2771</link>
 <description>&lt;p&gt;Hi,&lt;br /&gt;
I am new to IGOR and my data is 5 min concentration of chemical species over a couple of weeks like so &lt;/p&gt;
&lt;p&gt;1/09/2011 18:05	0.311107&lt;br /&gt;
1/09/2011 18:10	0.277637&lt;br /&gt;
1/09/2011 18:15	0.282964&lt;br /&gt;
1/09/2011 18:20	0.232187&lt;/p&gt;
&lt;p&gt;I would like to do a box plot by the hour ie showing the mean, median etc for each hour of the day over the length of my data. I am aware of the decimation function which will average the data by the hour for me but the problem is where I have data missing, the function will give a blank cell for that hour even though there are other points during that hour period. Is there a way to get it calculate the average when there is missing data?&lt;br /&gt;
I would also appreciate any help with sorting the data by the time of day.&lt;br /&gt;
Any help would be greatly appreciated as I am struggling with this.&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/2771#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Wed, 01 Feb 2012 16:59:41 -0800</pubDate>
 <dc:creator>lcrilley</dc:creator>
 <guid isPermaLink="false">2771 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Understanding Hough Transform Output</title>
 <link>http://www.igorexchange.com/node/2788</link>
 <description>&lt;p&gt;I am starting to play with the Hough transform to analyze some images.&lt;/p&gt;
&lt;p&gt;The data is the result of microscopic inspection of sample and the x-y locations of a defect.  The question we are trying answer and quantify is are the defects the result of a larger effect.&lt;/p&gt;
&lt;p&gt;I create a binary image with the dots representing the XY locations.  I do a Hough transform and then I used particle analysis to identify the hot spots.&lt;/p&gt;
&lt;p&gt;As I understand the output the Row value should be the angle and the column should be the radial distance and the reference point should be the center of the image.&lt;br /&gt;
 &quot;The result is saved to a 2D wave M_Hough in which the rows are the angle domain and the columns are the radial domain.&quot;&lt;br /&gt;
The transform picks up four lines and that corresponds to the image. and if I look at the data from particle analysis.  First it seems as it is switched.  If we assume that the original image was scaled to 100 by 100 and if the reference point is 50,50 (center of the image) then for points that are 0 or ~180 (173) the greatest possible distance is 50, but they are listed at an assumed ~70.&lt;br /&gt;
X      Y&lt;br /&gt;
70	0&lt;br /&gt;
44	88&lt;br /&gt;
55	153&lt;br /&gt;
71	173&lt;/p&gt;
&lt;p&gt;I have obviously done something wrong, so how do I get back on track?&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/2788#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <enclosure url="http://www.igorexchange.com/files/Hough.png" length="19728" type="image/png" />
 <enclosure url="http://www.igorexchange.com/image/view/2787/preview" length="5026" type="image/png" />
 <pubDate>Mon, 06 Feb 2012 15:09:53 -0800</pubDate>
 <dc:creator>hegedus</dc:creator>
 <guid isPermaLink="false">2788 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>MatrixOp precision?</title>
 <link>http://www.igorexchange.com/node/2783</link>
 <description>&lt;p&gt;I have found a problem that when using MatrixOp I sometimes get bad values.&lt;br /&gt;
When I substitute the equivalent Make command, all is right with the world.&lt;br /&gt;
Is this due to the precision of MatrixOp?&lt;br /&gt;
Is there some other problem with my code?&lt;/p&gt;
&lt;p&gt;(Using 32 bit Igor 6.22A with 64bit Win7)&lt;/p&gt;
&lt;p&gt;here is the example code where I find the problem&lt;br /&gt;
The MatrixOp command gives some badvals while the commented out Make command generates none:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;geshifilter&quot;&gt;&lt;pre class=&quot;igor geshifilter-igor&quot; style=&quot;font-family:monospace;&quot;&gt; 
&lt;span class=&quot;kw2&quot;&gt;Function&lt;/span&gt; test&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
 
&lt;span class=&quot;kw4&quot;&gt;Make&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;D&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;O&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;N = 100E6 noise = &lt;span class=&quot;kw3&quot;&gt;enoise&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0.5&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;+ &lt;span class=&quot;nu0&quot;&gt;0.5&lt;/span&gt;
&lt;span class=&quot;kw4&quot;&gt;Extract&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;INDX&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;O noise, test0, noise &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0.01&lt;/span&gt;
&lt;span class=&quot;kw4&quot;&gt;Sort&lt;/span&gt; test0, test0 &lt;span class=&quot;co1&quot;&gt;//Make sure the wave is monotonically increasing (should be anyway, but just to make sure I am not dumb)&lt;/span&gt;
 
&lt;span class=&quot;kw4&quot;&gt;Make&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;D&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;O&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;N = &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;numpnts&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;test0&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; test1 = &lt;span class=&quot;kw3&quot;&gt;expnoise&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw4&quot;&gt;Print&lt;/span&gt; &lt;span class=&quot;kw3&quot;&gt;wavemax&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;test1&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;// Make sure that the max val does not exceed 2000&lt;/span&gt;
 
&lt;span class=&quot;kw4&quot;&gt;MatrixOp&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;O results = test0&lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2000&lt;/span&gt; + test1
&lt;span class=&quot;co1&quot;&gt;//Make/D/O/N=(numpnts(test0)) results = test0*2000 + test1&lt;/span&gt;
 
&lt;span class=&quot;kw4&quot;&gt;Differentiate&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;Meth=&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;EP=&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; results&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;D=resultsdiff
&lt;span class=&quot;kw4&quot;&gt;Extract&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;INDX resultsdiff, badvals, resultsdiff &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; 0
 
&lt;span class=&quot;kw2&quot;&gt;End&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/2783#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Sat, 04 Feb 2012 08:38:54 -0800</pubDate>
 <dc:creator>BMangum</dc:creator>
 <guid isPermaLink="false">2783 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Acquire data from serial port (RS232) and USB simultaneously?</title>
 <link>http://www.igorexchange.com/node/2785</link>
 <description>&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;I need to monitor and record the data from an RS232 temperature readout (Lakeshore 218), and from a USB DAQ reading control voltages at the same time. I want the data to appear in a single Igor session. I currently read the Lakeshore on up to eight channels, although I only need six of those. Can I add a plot of voltage vs time from a USB DAQ to this experiment easily, or am I limited to one serial port at a time? Thanks.&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/2785#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Mon, 06 Feb 2012 10:55:23 -0800</pubDate>
 <dc:creator>crazytooguy</dc:creator>
 <guid isPermaLink="false">2785 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>multidimensional maximum</title>
 <link>http://www.igorexchange.com/node/2762</link>
 <description>&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;I&#039;m new to Igor and trying to create a function to mass process a series of images.  Essentially what I need to do is find the maximum column and row number where z equals 0.  I&#039;ve used the image processing features in Igor to generate a gray scale image and used edge detection so that the image only has two z values, 0 and 255.&lt;/p&gt;
&lt;p&gt;Any help is greatly appreciated.&lt;/p&gt;
&lt;p&gt;Hopper&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/2762#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Mon, 30 Jan 2012 13:46:10 -0800</pubDate>
 <dc:creator>hopper</dc:creator>
 <guid isPermaLink="false">2762 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>load data into Igor changes my data file&#039;s time of last modification?</title>
 <link>http://www.igorexchange.com/node/2782</link>
 <description>&lt;p&gt;I&#039;m using Igor on both winXP and win7. Sometimes I transfer projects from winXP to win7. My projects includes lots of data files. I would like to import the data into .pxp file w/o changing anything on the source files. However, the loading process will change the file&#039;s Date Modified. Could anyone tell me how to avoid it? &lt;/p&gt;
&lt;p&gt;I use loadwave like this: LoadWave/Q/D/O/P=filePath fileName&lt;/p&gt;
&lt;p&gt;Weird thing is that it was not doing that at the beginning. I don&#039;t quite remember when it started doing this.&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/2782#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Fri, 03 Feb 2012 21:31:41 -0800</pubDate>
 <dc:creator>JeX</dc:creator>
 <guid isPermaLink="false">2782 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Igor crashes on Windows 7</title>
 <link>http://www.igorexchange.com/node/2774</link>
 <description>&lt;p&gt;Good evening,&lt;br /&gt;
I&#039;m experiencing problems with Igor 6.12A running on Windows 7.&lt;br /&gt;
After running an update of windows, virus scan etc. Igor started to crash: it got frozen, I cannot execute any operation except that closing using task manager?&lt;br /&gt;
did this ever happen to anyone? does someone know how to fix this? &lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/2774#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Thu, 02 Feb 2012 14:45:23 -0800</pubDate>
 <dc:creator>paolovil</dc:creator>
 <guid isPermaLink="false">2774 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Issue with ErrorBars in Function</title>
 <link>http://www.igorexchange.com/node/2780</link>
 <description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;I&#039;m working on displaying error bars on a graph and can&#039;t seem to get around this error message: &quot;When executing ErrorBars, the following problem occured: trace is not on graph&quot;. &lt;/p&gt;
&lt;p&gt;Here is the bit of the function I&#039;m working with:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;geshifilter&quot;&gt;&lt;pre class=&quot;igor geshifilter-igor&quot; style=&quot;font-family:monospace;&quot;&gt;		&lt;span class=&quot;co1&quot;&gt;//get info on the source graph&lt;/span&gt;
		&lt;span class=&quot;kw2&quot;&gt;String&lt;/span&gt; yAxisName= &lt;span class=&quot;kw3&quot;&gt;StringByKey&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;YAXIS&amp;quot;&lt;/span&gt;, &lt;span class=&quot;kw3&quot;&gt;TraceInfo&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;theGraphName, theTraceName,0&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;	
		&lt;span class=&quot;kw2&quot;&gt;String&lt;/span&gt; axType= &lt;span class=&quot;kw3&quot;&gt;StringByKey&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;AXTYPE&amp;quot;&lt;/span&gt;, &lt;span class=&quot;kw3&quot;&gt;AxisInfo&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;theGraphName,yAxisName&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;			
		&lt;span class=&quot;kw2&quot;&gt;String&lt;/span&gt; EbarStr = &lt;span class=&quot;st0&quot;&gt;&amp;quot;SEM_&amp;quot;&lt;/span&gt; + newTraceName&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;5&lt;/span&gt;,&lt;span class=&quot;kw3&quot;&gt;strlen&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;newTraceName&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;
		&lt;span class=&quot;co1&quot;&gt;//display the first trace or append the traces&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;strswitch&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;axType&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
				&lt;span class=&quot;kw1&quot;&gt;case&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;right&amp;quot;&lt;/span&gt;:
					&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;isXY&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
						&lt;span class=&quot;kw4&quot;&gt;AppendToGraph&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;R&lt;/span&gt;=&lt;span class=&quot;re0&quot;&gt;$YAxisName&lt;/span&gt; theNewTrace vs newXWave
						&lt;span class=&quot;kw4&quot;&gt;ErrorBars&lt;/span&gt; theNewTrace &lt;span class=&quot;kw3&quot;&gt;Y&lt;/span&gt;,&lt;span class=&quot;kw2&quot;&gt;wave&lt;/span&gt;=&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$EbarStr&lt;/span&gt;,&lt;span class=&quot;re0&quot;&gt;$EbarStr&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; 
						&lt;span class=&quot;kw4&quot;&gt;Edit&lt;/span&gt; newXWave
					&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
						&lt;span class=&quot;kw4&quot;&gt;AppendToGraph&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;R&lt;/span&gt;=&lt;span class=&quot;re0&quot;&gt;$YAxisName&lt;/span&gt; theNewTrace
						&lt;span class=&quot;kw4&quot;&gt;ErrorBars&lt;/span&gt; theNewTrace &lt;span class=&quot;kw3&quot;&gt;Y&lt;/span&gt;,&lt;span class=&quot;kw2&quot;&gt;wave&lt;/span&gt;=&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$EbarStr&lt;/span&gt;,&lt;span class=&quot;re0&quot;&gt;$EbarStr&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; 
					&lt;span class=&quot;kw1&quot;&gt;endif&lt;/span&gt;
					&lt;span class=&quot;kw4&quot;&gt;execute&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;q&lt;/span&gt; &lt;span class=&quot;kw3&quot;&gt;StringByKey&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;SETAXISCMD&amp;quot;&lt;/span&gt;, &lt;span class=&quot;kw3&quot;&gt;AxisInfo&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;theGraphName,yAxisName&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;	 
				&lt;span class=&quot;kw1&quot;&gt;break&lt;/span&gt;
				default:
					&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;isXY&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
						&lt;span class=&quot;kw4&quot;&gt;AppendToGraph&lt;/span&gt; theNewTrace  vs newXWave
						&lt;span class=&quot;kw4&quot;&gt;ErrorBars&lt;/span&gt; theNewTrace &lt;span class=&quot;kw3&quot;&gt;Y&lt;/span&gt;,&lt;span class=&quot;kw2&quot;&gt;wave&lt;/span&gt;=&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$EbarStr&lt;/span&gt;,&lt;span class=&quot;re0&quot;&gt;$EbarStr&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; 
						&lt;span class=&quot;kw4&quot;&gt;Edit&lt;/span&gt; newXWave
					&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
						&lt;span class=&quot;kw4&quot;&gt;AppendToGraph&lt;/span&gt; theNewTrace 
						&lt;span class=&quot;kw4&quot;&gt;ErrorBars&lt;/span&gt; theNewTrace &lt;span class=&quot;kw3&quot;&gt;Y&lt;/span&gt;,&lt;span class=&quot;kw2&quot;&gt;wave&lt;/span&gt;=&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$EbarStr&lt;/span&gt;,&lt;span class=&quot;re0&quot;&gt;$EbarStr&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; 
					&lt;span class=&quot;kw1&quot;&gt;endif&lt;/span&gt;
					&lt;span class=&quot;kw4&quot;&gt;execute&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;q&lt;/span&gt; &lt;span class=&quot;kw3&quot;&gt;StringByKey&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;SETAXISCMD&amp;quot;&lt;/span&gt;, &lt;span class=&quot;kw3&quot;&gt;AxisInfo&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;theGraphName,yAxisName&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;	 
			&lt;span class=&quot;kw1&quot;&gt;endswitch&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;
I&#039;d love to learn why this is happening. The error bar waves certainly exist in the root. Can I use the $ operator to reference these waves? Thank you for any help you can provide.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;
MVW&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/2780#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Fri, 03 Feb 2012 12:31:29 -0800</pubDate>
 <dc:creator>mvwilcox</dc:creator>
 <guid isPermaLink="false">2780 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Custom peak function in MPF2 - what happened to the fit wave?</title>
 <link>http://www.igorexchange.com/node/2747</link>
 <description>&lt;p&gt;I am using Multi Peak Fitting 2 to treat some x-ray photoemission spectroscopy (XPS) data. The model lineshape for the peaks is the so-called Doniac-Sunjic function, an asymmetric Lorenzian-like peak given analytically by&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;br /&gt;
DS(a, G, A, x0) = A*( cos( Pi*a/2 + (1-a)*arctan((x-x0)/G)  )   /  (G^2 + (x-x0)^2)^(1/2-a/2)&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
Here A is the amplitude, G is the width, x0 is the centroid, and a is the asymmetry parameter.  With a=0 the function simplifies to a Lorentzian, and with a between 0 and 1 it is asymmetric towards lower values of x. Typical fit values of a should be 0.1-0.3.&lt;/p&gt;
&lt;p&gt;I believe I have successfully programmed this as an MPF2 fit function, and I can get the peaks to show up in the subcomponent axis. The fit appears to complete correctly, giving me reasonable-looking peaks.  However, the fitted curve is not present on the graph - the original data is there, and the residuals look as if no fit is present (direct copy of the data, so it&#039;s subtracting zero from the data), see the attached image.&lt;/p&gt;
&lt;p&gt;If I switch the peak type to Gaussian, it works correctly. The fit function reappears, and the residuals are calculated properly as well...&lt;/p&gt;
&lt;p&gt;Have I messed up the peak definition? Why is it drawing the individual peaks, but not the fit function? Is it the arctangent function screwing me up?&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/2747#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <enclosure url="http://www.igorexchange.com/image/view/2746/preview" length="20180" type="image/jpeg" />
 <pubDate>Wed, 25 Jan 2012 09:33:15 -0800</pubDate>
 <dc:creator>josh_ld</dc:creator>
 <guid isPermaLink="false">2747 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>How to create a blinking image marker?</title>
 <link>http://www.igorexchange.com/node/2772</link>
 <description>&lt;p&gt;I have a 2-D image graph, and want to put a blinking marker on the display. This marker should be relatively small, and blink as rapidly as possible (up to 4 Hz) for ease of perception. My approach has been to use a drawing object, and get it to update as rapidly as possible. I have tried to adapt one method described in the IP manual, but have not succeeded in my goals. I am hoping someone can show me where I am going wrong, or suggest an alternate approach. The code shown clears the old marker, shows a new marker, but does not blink further, even though the loop has five iterations. The only marker attribute that needs to change is from fillfgc=(....) with specified colors, to fillpat=0 (transparent). An alternative would be to remove and redraw the marker, but I had no better luck with that.&lt;br /&gt;
&lt;div class=&quot;geshifilter&quot;&gt;&lt;pre class=&quot;igor geshifilter-igor&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;function&lt;/span&gt; drawdot&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;x&lt;/span&gt;,&lt;span class=&quot;kw3&quot;&gt;y&lt;/span&gt;, contrast&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw2&quot;&gt;variable&lt;/span&gt; &lt;span class=&quot;kw3&quot;&gt;x&lt;/span&gt;, &lt;span class=&quot;kw3&quot;&gt;y&lt;/span&gt;, contrast
	&lt;span class=&quot;kw2&quot;&gt;variable&lt;/span&gt; ticks0,  &lt;span class=&quot;kw3&quot;&gt;j&lt;/span&gt;
	&lt;span class=&quot;kw2&quot;&gt;variable&lt;/span&gt; color = &lt;span class=&quot;nu0&quot;&gt;65535&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt; + contrast&lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;65535&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;    &lt;span class=&quot;co1&quot;&gt;//	sets the blinker contrast in the autoscaled image&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;SetDrawLayer&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;W=Graph2&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;K  UserFront           &lt;span class=&quot;co1&quot;&gt;//	clear old draw objects&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;SetDrawLayer&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;W=Graph2 UserFront
 
	&lt;span class=&quot;kw1&quot;&gt;for&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;j&lt;/span&gt;=0;j&lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;5&lt;/span&gt;;j+=&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;	&lt;span class=&quot;co1&quot;&gt;//	blink loop&lt;/span&gt;
	     &lt;span class=&quot;kw4&quot;&gt;SetDrawEnv&lt;/span&gt; gstart, gname = greydot
	     &lt;span class=&quot;kw4&quot;&gt;SetDrawEnv&lt;/span&gt; xcoord= bottom,ycoord= left,fillfgc= &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;color,color,color&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;,linethick= &lt;span class=&quot;nu0&quot;&gt;0.00&lt;/span&gt;
	     &lt;span class=&quot;kw4&quot;&gt;DrawOval&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;W=Graph2  &lt;span class=&quot;kw3&quot;&gt;x&lt;/span&gt;, &lt;span class=&quot;kw3&quot;&gt;y&lt;/span&gt;, x-&lt;span class=&quot;nu0&quot;&gt;0.02&lt;/span&gt;, y-&lt;span class=&quot;nu0&quot;&gt;0.02&lt;/span&gt;	&lt;span class=&quot;co1&quot;&gt;//  a variable greyscale fill pattern&lt;/span&gt;
	     &lt;span class=&quot;kw4&quot;&gt;SetDrawEnv&lt;/span&gt; gstop
	     &lt;span class=&quot;kw4&quot;&gt;DoUpdate&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;W=Graph2
 
	     ticks0 = &lt;span class=&quot;kw3&quot;&gt;ticks&lt;/span&gt;
	     &lt;span class=&quot;kw1&quot;&gt;do&lt;/span&gt;
	     &lt;span class=&quot;kw1&quot;&gt;while&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ticks-ticks0&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;60&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;	&lt;span class=&quot;co1&quot;&gt;//	delay one second, for example&lt;/span&gt;
 
	     &lt;span class=&quot;kw4&quot;&gt;DrawAction&lt;/span&gt; getgroup=greydot, delete, begininsert
	     &lt;span class=&quot;kw4&quot;&gt;SetDrawEnv&lt;/span&gt; gstart, gname = greydot
	     &lt;span class=&quot;kw4&quot;&gt;SetDrawEnv&lt;/span&gt; xcoord= bottom,ycoord= left,fillpat=0 ,linethick= &lt;span class=&quot;nu0&quot;&gt;0.00&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;// no fill&lt;/span&gt;
	     &lt;span class=&quot;kw4&quot;&gt;DrawOval&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;W=Graph2  &lt;span class=&quot;kw3&quot;&gt;x&lt;/span&gt;, &lt;span class=&quot;kw3&quot;&gt;y&lt;/span&gt;, x-&lt;span class=&quot;nu0&quot;&gt;0.02&lt;/span&gt;, y-&lt;span class=&quot;nu0&quot;&gt;0.02&lt;/span&gt;	  &lt;span class=&quot;co1&quot;&gt;// effectively invisible&lt;/span&gt;
	     &lt;span class=&quot;kw4&quot;&gt;SetDrawEnv&lt;/span&gt; gstop
	     &lt;span class=&quot;kw4&quot;&gt;DrawAction&lt;/span&gt; endinsert
	     &lt;span class=&quot;kw4&quot;&gt;DoUpdate&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;W=Graph2
 
	     ticks0 = &lt;span class=&quot;kw3&quot;&gt;ticks&lt;/span&gt;
	     &lt;span class=&quot;kw1&quot;&gt;do&lt;/span&gt;
	     &lt;span class=&quot;kw1&quot;&gt;while&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ticks-ticks0&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;60&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;endfor&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/2772#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Thu, 02 Feb 2012 07:38:22 -0800</pubDate>
 <dc:creator>s.r.chinn</dc:creator>
 <guid isPermaLink="false">2772 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Igor on Linux ???</title>
 <link>http://www.igorexchange.com/node/1365</link>
 <description>&lt;p&gt;We are often asked if we might port Igor to Linux. The answer is that it is a possibility for the future but not the near future.&lt;/p&gt;
&lt;p&gt;Some Igor users have reported success running Igor on Linux under &lt;a href=&quot;http://www.winehq.org/&quot; rel=&quot;nofollow&quot;&gt;Wine&lt;/a&gt; or under &lt;a href=&quot;http://www.codeweavers.com/products/cxlinux/&quot; rel=&quot;nofollow&quot;&gt;Crossover Office&lt;/a&gt; which, as I understand it, is a commercialized version of Wine.&lt;/p&gt;
&lt;p&gt;If you have comments about Igor on Linux or want to encourage (or discourage) us from porting to Linux in the future, feel free to add your comments here.&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/1365#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Wed, 17 Feb 2010 00:34:08 -0800</pubDate>
 <dc:creator>hrodstein</dc:creator>
 <guid isPermaLink="false">1365 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>V_r2</title>
 <link>http://www.igorexchange.com/node/2770</link>
 <description>&lt;p&gt;When fitting a line into a data set the V_r2 represent the correlation coefficient right?, If this is true when you force the best fit line to pass through the origin (0,0) the V_r2 seem to improve, and I don’t think that is right.... What is the best to get a true V_r2 value if the line is forced through 0,0&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/2770#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/85">IgorExchange.com</category>
 <pubDate>Tue, 31 Jan 2012 16:40:01 -0800</pubDate>
 <dc:creator>gmwaniki</dc:creator>
 <guid isPermaLink="false">2770 at http://www.igorexchange.com</guid>
</item>
</channel>
</rss>

