<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>DPlot</title>
    <link rel="alternate" type="text/html" href="http://www.dplot.com/blog/" />
    <link rel="self" type="application/atom+xml" href="http://www.dplot.com/blog/atom.xml" />
    <id>tag:www.dplot.com,2009-04-09:/blog//1</id>
    <updated>2011-10-19T21:58:53Z</updated>
    <subtitle><![CDATA[DPlot Graph Software for Scientists &amp; Engineers]]></subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.25</generator>

<entry>
    <title>DPlot animations on YouTube</title>
    <link rel="alternate" type="text/html" href="http://www.dplot.com/blog/2011/10/dplot-animations-on-youtube.html" />
    <id>tag:www.dplot.com,2011:/blog//1.20</id>

    <published>2011-10-19T21:52:26Z</published>
    <updated>2011-10-19T21:58:53Z</updated>

    <summary>GeoLurking has posted several nifty animations of 4D scatter plots created by DPlot on YouTube which you can view here: http://www.youtube.com/user/GeoLurking. These might give you a few ideas for your own projects. DPlot does not and most likely never will...</summary>
    <author>
        <name>David Hyde</name>
        
    </author>
    
    
    <content type="html" xml:lang="en-US" xml:base="http://www.dplot.com/blog/">
        <![CDATA[<p>GeoLurking has posted several nifty animations of 4D scatter plots created by DPlot on YouTube which you can view here: <a href="http://www.youtube.com/user/GeoLurking">http://www.youtube.com/user/GeoLurking</a>. These might give you a few ideas for your own projects.</p>

<p>DPlot does <b>not</b> and most likely never will save AVI or other video formats, but there are several low cost screen-capture-to-video utilities out there that you might find useful. <a href="http://www.techsmith.com/camtasia/">Camtasia</a> has worked well for me. GeoLurking used </a><a href="http://avsvideo-tools.com/">AVS Video Tools</a>.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Average Curve module</title>
    <link rel="alternate" type="text/html" href="http://www.dplot.com/blog/2011/03/average-curve-module.html" />
    <id>tag:www.dplot.com,2011:/blog//1.19</id>

    <published>2011-03-08T01:17:55Z</published>
    <updated>2011-03-09T18:30:23Z</updated>

    <summary>Starting with version 2.3.0.8, DPlot is distributed with an &quot;Average Curve with Error Bars&quot; modulethat produces a new document with amplitudes equal to the mean of all Y values within a user-specified interval in X, and error bars with extents...</summary>
    <author>
        <name>David Hyde</name>
        
    </author>
    
    <category term="average" label="average" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="errorbars" label="error bars" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="standarddeviation" label="standard deviation" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="standarderror" label="standard error" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.dplot.com/blog/">
        <![CDATA[<p>Starting with version 2.3.0.8, DPlot is distributed with an "Average Curve with Error Bars" modulethat produces a new document with amplitudes equal to the mean of all Y values within a user-specified interval in X, and error bars with extents equal to either:
</p><div><ul>
<li>the mean minus the extreme values, </li>
<li>the standard error for the points within the given interval, or</li>
<li>the standard deviation for the points within the given interval.</li>
</ul>Here is an example from Dr. Aditya Savara:
</div>
<p><img src="/blog/images/average/rawdata.png" />
</p><p>When carbon monoxide encounters hydrogen covered palladium surfaces, the carbon monoxide can adsorb on the palladium surface and displace the hydrogen.&nbsp; This process leads to the deactivation of hydrogen membranes, and also may be important in the production of pharmaceutical drugs by palladium catalysis.&nbsp; In these experiments, carbon monoxide is introduced to a palladium crystal surface which has been precovered with hydrogen, H/Pd(111).&nbsp; The infrared absorbance due to carbon monoxide is plotted as a function of time, and shows the buildup of carbon monoxide on the surface.&nbsp; The discontinuity near 60 seconds is real, and is due to a change in the peak shape of the carbon monoxide infrared absorbance.&nbsp; This data was measured in ultrahigh vacuum conditions at the Fritz-Haber-Institut in Berlin, using an effusive molecular beam for the carbon 
monoxide exposure, and infrared reflectance-absorbance spectroscopy.
</p><p>The "Average Curve with Error Bars" command results in:
</p><p><img src="/blog/images/average/averagedcurve.png" />
</p>]]>
        
    </content>
</entry>

<entry>
    <title>Maps and Background Images</title>
    <link rel="alternate" type="text/html" href="http://www.dplot.com/blog/2011/01/maps-and-background-images.html" />
    <id>tag:www.dplot.com,2011:/blog//1.18</id>

    <published>2011-01-20T03:56:40Z</published>
    <updated>2011-01-21T23:48:53Z</updated>

    <summary>From the start of the addition of background images to DPlot graphs, maps have been in mind. See here, for example. This blog post isn&apos;t so much about announcing a new DPlot feature as it is about pointing out a...</summary>
    <author>
        <name>David Hyde</name>
        
    </author>
    
    <category term="backgroundimage" label="background image" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="maps" label="maps" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.dplot.com/blog/">
        <![CDATA[<p>From the start of the addition of background images to DPlot graphs, maps have been in mind. See <a href="http://www.dplot.com/features.htm#BGIMAGE">here</a>, for example.

</p><p>This blog post isn't so much about announcing a new DPlot feature as it is about pointing out a public domain resource that you may not be aware of. NASA has produced a whole-earth image using Mercator projection that is just about perfect for DPlot. That image is available <a href="http://upload.wikimedia.org/wikipedia/commons/7/74/Mercator-projection.jpg">here</a>. Example usage is shown at the bottom of the <a href="http://www.dplot.com/maps.htm">Geographic Maps</a> page and repeated here:</p>

<p><img src="http://www.dplot.com/blog/images/earthquakes-on-earth-background-image.png" />

</p><p>A larger version of this image is shown <a href="http://www.dplot.com/blog/images/earthquakes_with_bg_image_big.png">here</a> (~3.4Mb).

</p><p>For this particular image, use Options&gt;Extents/Intervals/Size and set the X/Y extents to <u>+</u>180 and <u>+</u>80, respectively. And of course you'll want to use Mercator Projection for your plot's scale. For a subset of this particular image you'll need to either specify the top/left coordinates within DPlot (easy for X, not so easy for Y) or crop the image within your favorite image editor.


</p>]]>
        
    </content>
</entry>

<entry>
    <title>DPlot at Watts Up With That?</title>
    <link rel="alternate" type="text/html" href="http://www.dplot.com/blog/2011/01/dplot-at-watts-up-with-that.html" />
    <id>tag:www.dplot.com,2011:/blog//1.17</id>

    <published>2011-01-04T02:33:13Z</published>
    <updated>2011-01-04T02:41:19Z</updated>

    <summary>I&apos;m of course always happy to see DPlot mentioned on the web, but particularly when it is at a site as popular as Anthony Watts&apos; Watts Up With That? And no, this isn&apos;t an especially useful blog post and yes,...</summary>
    <author>
        <name>David Hyde</name>
        
    </author>
    
    <category term="climate" label="climate" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="temperaturerecord" label="temperature record" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.dplot.com/blog/">
        <![CDATA[<p>I'm of course always happy to see DPlot mentioned on the web, but particularly when it is at a site as popular as Anthony Watts' <a href="http://wattsupwiththat.com/2011/01/03/rss-data-2010-not-the-warmest-year-in-satellite-record-but-a-close-second/">Watts Up With That?</a></p>

<p>And no, this isn't an especially useful blog post and yes, I'm showing off. Sorry. Sort of :-)
</p>]]>
        
    </content>
</entry>

<entry>
    <title>Thermal Imaging</title>
    <link rel="alternate" type="text/html" href="http://www.dplot.com/blog/2010/12/thermal-imaging.html" />
    <id>tag:www.dplot.com,2010:/blog//1.16</id>

    <published>2010-12-07T00:53:54Z</published>
    <updated>2010-12-13T23:41:35Z</updated>

    <summary>We&apos;ll end up adding a web page with user-submitted examples eventually, but these are too good to wait for. Paul has been using a FLUKE Ti-32 thermal imager to get IR readings from various objects. A patented feature of the...</summary>
    <author>
        <name>David Hyde</name>
        
    </author>
    
        <category term="Contour lines" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="contourlines" label="contour lines" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="thermalimaging" label="thermal imaging" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.dplot.com/blog/">
        <![CDATA[<p>We'll end up adding a web page with user-submitted examples eventually, but these are too good to wait for. Paul has been using a <a href="http://www.fluke.com/fluke/usen/Thermal-Imaging/Fluke-Ti32.htm?PID=56184&amp;trck=ti32" target="_blank">FLUKE Ti-32 thermal imager</a> to get IR readings from various objects. A patented feature of the Fluke camera is taking both visible and IR images simultaneously. Paul has graciously provided several images demonstrating this feature, which he went to the trouble of working with solely to show how well DPlot works with this setup... I have to like a user like that :-)

</p><p>First, the IR image produced by the FLUKE Ti-32:

</p><p><img src="/blog/images/teacup/teacup-ir.png" />

</p><p>Paul used DPlot's "Bitmap to 3D" plugin to produce this contour plot:

</p><p><img src="/blog/images/teacup/cup-of-tea.png" />

</p><p>(<b>Note:</b> This plugin is an optional component with both the licensed and trial versions of DPlot. If you do not see "Bitmap to 3D" on the "Select File Type" dialog under &quot;Plugins&quot;, you need to re-run the setup program and ensure that you check the "Image file (BMP, GIF, etc.) to 3D Surface plot" option.)

</p><p>He then added the photograph of the cup as a background:

</p><p><img src="/blog/images/teacup/cup-of-tea_with_background.png" />

</p><p>Nifty, isn't it?

</p><p>One more, this time without the photo and using DPlot's <a href="http://www.dplot.com/help/index.htm?helpid_contourplot.htm">Both shades and lines</a> setting, just because it is so darn pretty:

</p><p><img src="/blog/images/teacup/cup-of-tea-ir-shades-and-lines.png" />

</p><p>Here's another IR image converted to 3D, in this case of the counter top after removing the cup:

</p><p><img src="/blog/images/teacup/after-image-ir-2d.png" />

</p><p>Thanks, Paul!</p>]]>
        
    </content>
</entry>

<entry>
    <title>Background images</title>
    <link rel="alternate" type="text/html" href="http://www.dplot.com/blog/2010/05/background-images.html" />
    <id>tag:www.dplot.com,2010:/blog//1.15</id>

    <published>2010-05-11T00:29:14Z</published>
    <updated>2010-08-07T18:03:59Z</updated>

    <summary>From the forums: 1) I need to plot pollutant concentration contours on an aerial image. I have been evaluating dPlot and it can accept data from my dispersion modeling program. So dPlot does most of what I want except for...</summary>
    <author>
        <name>David Hyde</name>
        
    </author>
    
    <category term="backgroundimage" label="background image" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.dplot.com/blog/">
        <![CDATA[<p>From the <a href="http://www.dplot.com/forums/index.php">forums</a>:</p>

<p>1) I need to plot pollutant concentration contours on an aerial image. </p>

<p>I have been evaluating dPlot and it can accept data from my dispersion modeling program. So dPlot does most of what I want except for the final step of applying a 'base map' so that the contours appear overlaid on a background aerial image.</p>

<p>Photoshop can combine two jpgs, but I would prefer it if there was a way to do it within dPlot so I don't need Photoshop.</p>

<p>and...</p>

<p>2) I am evaluating the capability of DPlot for my application. Overall, this is the great software with this price. I am going to buy it anyway. 
My application requires the background image(s) -- layer(s) of PCBA drawings, and foreground with a 3D Contour (rainbow colored) graphic shows the NFE (Near Field Emission) level. The foreground should be able to Alpha-blend with background image.</p>

<p>This can be done with another application (like Visio), but needs additional steps. It will be a great feature if this can be done in DPlot application.</p>

<hr>

<p>Starting with version 2.2.8.8, either can be done. You can specify an image that will be drawn either in the foreground or background, with a specified transparency level and optionally a background color that will not be drawn. In addition, the alpha channel in 32-bit PNG files and the transparent color (if any) in 8-bit GIF or PNG images is respected.</p>

<p>1) The first example is a latitude-longitude recording of a Garmin GPS device overlaid on a Google Earth image:</p>

<p><img src="http://www.dplot.com/examples/garmin_bg.png" /></p>

<p>2) The following image is a surface plot with an overlaid JPG schematic drawn with a transparency value of 50 (0=invisible, 255=opaque):</p>

<p><img src="http://www.dplot.com/examples/background_pcb.png" /></p>

<p>For more information see the <a href="http://www.dplot.com/help/index.htm?helpid_background_image.htm">Background Image</a> topic in the online manual or the corresponding entry in the Help file.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Square root symbol in text</title>
    <link rel="alternate" type="text/html" href="http://www.dplot.com/blog/2010/03/square-root-symbol-in-text.html" />
    <id>tag:www.dplot.com,2010:/blog//1.14</id>

    <published>2010-03-27T17:36:41Z</published>
    <updated>2010-03-28T01:22:18Z</updated>

    <summary>From support e-mail: Q: I was wondering if there is any way in DPlot to put a square root in axis labels? What i am looking for is...say like...&quot;sqrt(t)&quot; but with the &quot;real&quot; square root symbol. A: Yes there is,...</summary>
    <author>
        <name>David Hyde</name>
        
    </author>
    
    <category term="squareroot" label="square root" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.dplot.com/blog/">
        <![CDATA[From support e-mail:

<p><b>Q:</b> I was wondering if there is any way in DPlot to put a square root in  
axis labels? What i am looking for is...say like..."sqrt(t)" but with the "real" square root symbol.</p>

<p><b>A:</b> Yes there is, if you are willing to experiment just a bit. Select the Title/Axes command on the Text menu. (This also works with the legend and with point labels and text notations). Click within the text box where you want the square root symbol, then click the α button at the bottom of the dialog box:</p>

<p><img src="http://www.dplot.com/blog/images/sqrt1.png" /></p>

<p>Now select the left portion of the square root symbol in the next-to-last row, towards the right:</p>

<p><img src="http://www.dplot.com/blog/images/sqrt2.png" /></p>

<p>click the Select button, then OK.</p>

<p>For the horizontal bar, the best you can do is an overbar code. This draws a horizontal line above the character(s) that have this attribute. But there is no button on the Title/Axes (or any other) dialog for the overbar code, so you'll need to type it yourself:</p>

<p><img src="http://www.dplot.com/blog/images/sqrt3.png" /></p>

<p>Where this all becomes a trial-and-error process is that the overbar is not specifically designed to line up perfectly with the left end of the square root symbol. With some font sizes and weights it appears to be perfect, but with others... it isn't all that good. And the results will vary by output device. Generally if it looks good on the screen it will look good in saved bitmap images or printed out, but may or may not be aligned properly in metafiles. The alignment will vary with font face (Arial tends to work well), and smaller fonts (12-16 pt) tend to do better than larger fonts. Bold fonts definitely do better. But as mentioned at the outset, you'll have to experiment. Here's a 14-pt bold Arial stab at the problem:</p>

<p><img src="http://www.dplot.com/blog/images/sqrt4.png" /></p>

<p>Unfortunately this feature does not work at <strong>all</strong> with subscripts, superscripts, etc., as the overbar will be at varying heights above the baseline. Perhaps a future release will address this problem with a sqrt formatting code.</p>

<p>For a list of all formatting codes see the <a href="http://www.dplot.com/help/index.htm?helpid_titles.htm">online Help</a> topic for the Title/Axes command, or within DPlot click the Help button on the Title/Axes dialog box.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Calling Excel Add-In functions from a Macro</title>
    <link rel="alternate" type="text/html" href="http://www.dplot.com/blog/2010/03/calling-excel-add-in-functions-from-a-macro.html" />
    <id>tag:www.dplot.com,2010:/blog//1.13</id>

    <published>2010-03-06T21:41:20Z</published>
    <updated>2010-08-07T18:06:13Z</updated>

    <summary>From support mail: Q: I have done quite a bit with your Macro language. However, I have a question about your Excel Add-In. Do you know how I could call it from an Excel Macro? I tried recording a Macro...</summary>
    <author>
        <name>David Hyde</name>
        
    </author>
    
    <category term="addin" label="Add-In" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="excel" label="Excel" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="macro" label="macro" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.dplot.com/blog/">
        <![CDATA[<em>From support mail:</em>
<p><strong>Q:</strong> I have done quite a bit with your Macro language.  However, I have a question about your Excel Add-In.  Do you know how I could call it from an Excel Macro?  I tried recording a Macro and calling your Add-In, but it didn't show in the code when I was done.

</p><p><strong>A:</strong> Unfortunately Excel doesn't record calls to Add-In functions when recording a macro using keystrokes/button presses. But the fix is simple enough: Go through your normal steps in your macro recording just before you call XYXY or XYYY or whatever. Stop recording. For Excel 2007 or 2010 select the Developer tab, click Macros, select your macro, then click Edit. On Excel 2003 select Tools&gt;Addins&gt;Macros&gt;select macro&gt;Edit. At the end of the macro add a new line with
 
</p><p>Call XYYY ' or whatever
 
</p><p>And one final step: in the VBA window select Tools&gt;References and check dplotlib.
 
</p><p><img src="http://www.dplot.com/blog/images/call_dplotlib_from_macro.png" /></p>

<p>If you are prompted for a password for the dplotlib entry on this screen, it is "dplot", without the quotation marks.</p>

<p><b>Edit</b>: Starting with the Add-In distributed with v2.2.8.1 on March 9, 2010 you have access to several Add-In functions that were previously marked "private" and so were inaccessible to your macros. Namely DPlotGetActiveDocument, DPlot_Command, and DPlot_Request. How is this useful? If the default values for scaling, fonts, tick mark intervals, plot size, or whatever set by Add-In functions are not to your liking, you can control just about any aspect of the plot with a call to DPlot_Command, as in the following:

</p><p><img src="http://www.dplot.com/blog/images/macro_calling_dplotlib5.png" /></p>

<p>To call DPlot_Command or DPlot_Request you need the index of the currently active document (XYYY and other Add-In commands activate the plots that they create). That's where DPlotGetActiveDocument comes in. The DPlot_Command call in this case sets the tick mark interval to 365 (days, in this case) on the X axis and $1000 on the Y axis. For a rather lengthy list of all available DPlot_Command commands, see <a href="http://www.dplot.com/help/index.htm?helpid_prog_xtyp_execute.htm">the Help file topic.</a></p>

<p><b><u>Important Edit:</u></b><br />
When finished with calling any DPlot functions in your macro, <b>if</b> you have called DPlot_Command or DPlot_Request, you should disconnect from the currently active DDE conversation. Otherwise the plot will work as expected, but certain mouse operations (e.g. displaying coordinates while moving your mouse across the plot) will <b>not</b> work as expected, as DPlot will think there is still an active DDE conversation and responding to those actions is not appropriate. Disconnecting from a conversation can be accomplished simply with:</p>

<p><code>Call DPlot_Finish(doc)</code></p>]]>
        
    </content>
</entry>

<entry>
    <title>Moving Average</title>
    <link rel="alternate" type="text/html" href="http://www.dplot.com/blog/2009/11/moving-average.html" />
    <id>tag:www.dplot.com,2009:/blog//1.12</id>

    <published>2009-11-04T01:48:39Z</published>
    <updated>2009-11-08T15:40:32Z</updated>

    <summary>Adapted from the Forums: Q: I need to know what mathematical algorithm is used for the moving average calculations. Normally, a moving average will require that the &quot;end regions&quot; of the graph not be included in the graph of the...</summary>
    <author>
        <name>David Hyde</name>
        
    </author>
    
    <category term="movingaverage" label="Moving average" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.dplot.com/blog/">
        <![CDATA[<em>Adapted from the <a href="http://www.dplot.com/forums">Forums:</a></em>

<p><b>Q:</b> I need to know what mathematical algorithm is used for the moving average calculations. </p>

<p>Normally, a moving average will require that the "end regions" of the graph not be included in the graph of the moving average, since, for example, a centered 11-day moving average can't provide data for the first 5 days and therefore can't be graphed. The same is true of the last 5 days in this example. I believe this problem is inherent in all moving average calculation varieties (though I'm open to being educated). </p>

<p>I bring it up because graphing the end-point regions of a moving average generates quite a bit of controversy in the climate sciences where I work because the end regions normally excluded in a moving average have to be filled in based on some sort of (often unscientific) assumption--even a simple "continue the trend" assumption. </p>

<p><b>A:</b> For versions 2.2.7.0 and earlier, the output of the Moving Average plugin is an average of the last N points, where N is the interval chosen. This is identical to the Moving Average function of Excel's Analysis ToolPak, with the exception that Excel gives "#N/A" for the first N-1 points, while the DPlot plugin gives the average of i points for i&lt;N.</p>

<p>The new version of the Moving Average plugin includes three forms, two of them new: 1) <em>Prior Moving Average</em> (identical to the only previous option), 2) <em>Central Moving Average</em> (more like what you're talking about, with point i equal to the average of points i-(N-1)/2 through i+(N-1)/2, and 3) <em>Cumulative Moving Average</em>, which is the average of all points up to and including the i'th point.</p>

<p>In addition, the new plugin allows you to include (or not) points at the tails of your data. If <em>Include tails</em> is checked, then as before the i'th point for i&lt;N is the average of the first i points for a <em>Prior Moving Average</em>. Similarly, for a <em>Central Moving Average</em> and i&lt;(N+1)/2 or greater than NP-(N-1)/2 (where NP is the number of points in the input), the output is the average of the sampled input points. If <em>Include tails</em> is <b>not</b> checked, then the output will only include points for which i<u>&gt;</u>N for a <em>Prior Moving Average</em>, or i<u>&gt;</u>(N-1)/2 and i<u>&lt;</u>NP-(N-1)/2 for a <em>Central Moving Average</em>.

</p><p>The new input dialog for the Moving Average plugin (licensed version only):</p>

<p><img src="http://www.dplot.com/forumimages/moving_average_dialog.png" /></p>

<p>Which method is appropriate for your use is dependent on what you are measuring. The <em>Prior Moving Average</em> is a well-established standard but for data that tends to increase or decrease over time, introduces a lag in the output: for a steadily increasing record the output will tend to be equal to the input N/2 measurements ago. The <em>Central Moving Average</em> eliminates this lag but may not be appropriate for your use if the current prediction should not be influenced by future data. The <em>Cumulative Moving Average</em> is mostly useful for data that doesn't increase/decrease monotonically over time and for which early data is significant for the present.</p>

<p>The new plugin is included with the 2.2.7.3 release of DPlot. Licensed users who are not on the update mailing list can get this version by selecting the <em>Check for Updates</em> command on the Help menu.</p>

<p>Example (with <em>Include tails</em> checked in all cases):</p>

<p><img src="http://www.dplot.com/blog/images/moving_average.png" /></p>]]>
        
    </content>
</entry>

<entry>
    <title>Help! DPlot&apos;s Help doesn&apos;t work!</title>
    <link rel="alternate" type="text/html" href="http://www.dplot.com/blog/2009/08/help-dplots-help-doesnt-work.html" />
    <id>tag:www.dplot.com,2009:/blog//1.11</id>

    <published>2009-08-14T23:35:36Z</published>
    <updated>2009-10-25T23:08:17Z</updated>

    <summary><![CDATA[In case you missed the recent addition to the FAQ and are having trouble with DPlot's Help: When selecting Help&gt;Contents in DPlot if you see a screen like this: ...then you almost certainly have DPlot installed on a network server...]]></summary>
    <author>
        <name>David Hyde</name>
        
    </author>
    
    <category term="help" label="help" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.dplot.com/blog/">
        <![CDATA[<p>In case you missed the recent addition to the <a href="http://www.dplot.com/faq.htm">FAQ</a> and are having trouble with DPlot's Help:

</p><p>When selecting Help&gt;Contents in DPlot if you see a screen like this:
</p><p><img src="/blog/images/networkhelp.png" alt="" width="661" height="374" />
</p><p>...then you almost certainly have DPlot installed on a network server and are running DPlot from a client system. Although the program will run fine in this configuration, the Help file will not. Unfortunately this is a Windows security "feature" introduced with a security patch for Windows XP, also affecting all Vista versions. If you are <b>certain</b> that you will not be viewing any "untrusted" CHM Help files then the good folks at EC Software have provided 
<a href="http://www.ec-software.com/products_hhreg.html" target="_blank">a fix</a>. Otherwise, your best bet is to install DPlot to all client machines rather than running from a server.
</p>]]>
        
    </content>
</entry>

<entry>
    <title>Text Placeholders</title>
    <link rel="alternate" type="text/html" href="http://www.dplot.com/blog/2009/08/text-placeholders.html" />
    <id>tag:www.dplot.com,2009:/blog//1.10</id>

    <published>2009-08-14T01:28:21Z</published>
    <updated>2010-08-07T18:07:38Z</updated>

    <summary><![CDATA[ A frequent support question is along the lines of "How do I automatically display the &lt;min, max, mean, std. deviation, etc.&gt; of a curve in a &lt;title line, axis label, legend entry, note, etc.&gt;"? Text placeholders have been available...]]></summary>
    <author>
        <name>David Hyde</name>
        
    </author>
    
    <category term="average" label="average" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="maximum" label="maximum" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mean" label="mean" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="minimum" label="minimum" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="standarddeviation" label="standard deviation" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="textplaceholders" label="text placeholders" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="textshortcuts" label="text shortcuts" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.dplot.com/blog/">
        <![CDATA[ <p>A frequent support question is along the lines of "How do I automatically display the &lt;min, max, mean, std. deviation, etc.&gt; of a curve in a &lt;title line, axis label, legend entry, note, etc.&gt;"? <a href="http://www.dplot.com/help/index.htm?helpid_text_shortcuts.htm">Text placeholders</a> have been available for a long while, but for whatever reason aren't noticed by many users. You'll probably find all the information you need in the linked Help topic, but this post will walk through an example of how this feature can be used. In the example below we'll work with a <a href="http://www.dplot.com/help/index.htm?helpid_bubbles.htm">bubble plot</a> because it has at least one oddity that isn't the case for most other plot types.

</p><p><img src="http://www.dplot.com/blog/images/textplaceholders_a.png" width="554" height="599" />

</p><p>The particulars of this graph aren't really important in this case. The data consists of two "curves"; the bubble magnitudes come from the second curve. The rainfall rate values (bubble magnitudes) vary from ~2.1 - ~11.7. The user in this case wanted to display the rainfall rates in the legend entry for the plot. It would of course be easy enough to type those values for the legend, but we'd like something a bit more automatic that can be stored in a preferences file and/or set in a macro to get the same results for other data. If the legend entry is set to:

</p><p><code>$YMIN(2) - $YMAX(2) inches/hr</code>

</p><p>...then the result looks something like:

</p><p><img src="http://www.dplot.com/blog/images/textplaceholders_b.png" width="554" height="599" />

</p><p>The (2) index references the 2<sup>nd</sup> curve (the bubble magnitudes). If the (2) were not included, then the legend would use the minimum and maximum values of the "Runoff" curve. 

</p><p>This is fine, but displays more significant figures than we'd like. Text placeholders can include an equation, and the equation itself can contain other text placeholders. So we can use the <a href="http://www.dplot.com/help/index.htm?mround.htm">MROUND</a> function:

</p><p><code>$=(MROUND($YMIN(2),0.1)) - $=(MROUND($YMAX(2),0.1)) inches/hr</code>

</p><p>... to round off the rainfall rate values to the nearest 0.1, and get:

</p><p><img src="http://www.dplot.com/blog/images/textplaceholders_c.png" width="554" height="599" />

</p><p>Questions? <a href="mailto:support@dplot.com">Let us know.</a>

</p>]]>
        
    </content>
</entry>

<entry>
    <title>Plot overlays</title>
    <link rel="alternate" type="text/html" href="http://www.dplot.com/blog/2009/07/plot-overlays.html" />
    <id>tag:dplot.com,2009:/blog//1.9</id>

    <published>2009-07-18T05:45:23Z</published>
    <updated>2010-01-27T18:15:21Z</updated>

    <summary>A frequent question in support e-mails is related to overlaying a plot with another, particularly for different plot types, e.g. overlaying a 3D surface plot with an XY plot. This feature has been a long time in making and still...</summary>
    <author>
        <name>David Hyde</name>
        
    </author>
    
    <category term="overlay" label="overlay" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.dplot.com/blog/">
        <![CDATA[<p>A frequent question in support e-mails is related to overlaying a plot with another, particularly for different plot types, e.g. overlaying a 3D surface plot with an XY plot. This feature has been a long time in making and still has a few issues (see below), but <strong>yes you can</strong> do this with the OverlayDocument macro command or, if you're a developer, by sending the OverlayDocument command to DPlot via the <a href="http://www.dplot.com/lib/index.htm?dplot_command.htm">DPlot_Command</a> function in dplotlib.dll. This feature is only available in DPlot versions 2.2 and later.

</p><p>Syntax:<br />
<strong>OverlayDocument(<em>docnum</em>|,<em>alpha</em>|<em>maskcolor</em>||)</strong> or<br />
<strong>OverlayDocument("<em>caption</em>"|,<em>alpha</em>|,<em>maskcolor</em>||)</strong>

</p><p>In the first form, <strong><em>docnum</em></strong> is the 1-based document index of the plot you want to draw on top of the currently active plot. This value corresponds to the indices you'll see for open documents on the Window menu.

</p><p>In the second form, <strong>"<em>caption</em>"</strong> is the title of that plot, shown in the document title bar. If this form is used then the caption must be delineated with quotation marks, as shown.

</p><p>The optional <strong><em>alpha</em></strong> parameter controls the transparency of the overlay. <strong><em>alpha</em></strong>=0 is completely transparent (invisible, in other words); <strong><em>alpha</em></strong>=255 is opaque (no transparency).

</p><p>The <strong><em>maskcolor</em></strong> argument specifies a color (red+green*256+blue*65536, or hex 0x00bbggrr) in the overlay that will not be drawn if <strong><em>alpha</em></strong> is between 0 and 255. This is useful for making opaque portions of the overlay transparent: in particular an opaque legend box or contour line labels with an opaque background. This feature does not work particularly well with anti-aliased lines and/or smoothed screen fonts, since you can only specify a single color. Antialiased lines and fonts are generally less of a problem with printed plots.

</p><p>If you aren't familiar with DPlot macros, there really isn't all that much to it, so don't be scared off just yet. To create a macro select the Macro command on the File menu. Type a name for the macro that you'll remember next week in the <em>Macro Name</em> box, then click <em>Edit/Create</em>. We'll start with something simple: if you have 2 open documents, document 1 is active and you want to overlay it with document 2, type:

</p><p><strong>OverlayDocument(2)</strong>

</p><p>in the macro editor window, click the Save button, then the Run button.

</p><p><strong>Example:</strong>

</p><p>Document 1 is a surface plot of the Vicksburg National Military Park area created from NASA <a href="http://www.dplot.com/features.htm#SRTM">SRTM data:
</a></p>
<p><img src="http://www.dplot.com/blog/images/overlay01.png" height="627" width="669" />

</p><p>Document 2 is an XY plot created from a <a href="http://www.dplot.com/features.htm#GARMIN">Garmin GPS device</a> during a bike ride through that same park:
</p><p><img src="http://www.dplot.com/blog/images/overlay02.png" height="646" width="469" />

</p><p>With document 1 active, the macro command <strong>OverlayDocument(2)</strong> results in:
</p><p><img src="http://www.dplot.com/blog/images/overlay03.png" height="627" width="669" />

</p><p>This feature hasn't been added to the normal menu commands in DPlot simply because there are several quirks to work out yet. Namely: transparency may (or may not) work correctly in printed plots, depending on your printer. Multiple axes in the overlay plot are not transferred to the overlaid plot. Other than the data itself, most plot features for the overlay plot are ignored: title lines, axis labels, number formatting, etc. These are all necessary and won't likely change. But the legend for a surface plot is also omitted for (currently) the same reason, and there is no way to show that legend. At least some of these limitations will likely be worked out in a future release.

</p><p>This feature is <strong>not</strong> intended for use with 3D views of 3D/4D data at this time, though DPlot will not prevent you from using it on those plot types.


</p>]]>
        
    </content>
</entry>

<entry>
    <title>Offsetting a curve</title>
    <link rel="alternate" type="text/html" href="http://www.dplot.com/blog/2009/06/offseting-a-curve.html" />
    <id>tag:dplot.com,2009:/blog//1.8</id>

    <published>2009-06-18T23:47:41Z</published>
    <updated>2010-08-07T18:09:21Z</updated>

    <summary>From support e-mail: Q: I have created a log-prob curve and have fitted an equation to it that fits very nicely. Now I would like to create a parallel curve through another known data point How would I do this?...</summary>
    <author>
        <name>David Hyde</name>
        
    </author>
    
    <category term="offsetacurve" label="offset a curve" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.dplot.com/blog/">
        <![CDATA[<em>From support e-mail:</em> 
<p><strong>Q:</strong> I have created a log-prob curve and have fitted an equation to it that fits very nicely. Now I would like to create a parallel curve through another known data point How would I do this?</p>
<p><img src="http://www.dplot.com/blog/images/offsetcurve061809a.png" height="585" width="593" /> 
</p><p><strong>A:</strong> Nothing to it. You want your new curve to have the same shape (on this scale) as the original curve but offset by some value. So in your case the logarithms of the Y values in the new curve should all be proportional to the logarithms of the Y values in the original curve. First copy your curve fit to the Clipboard using <em>Edit&gt;Copy&gt;Data Values</em> and then paste using <em>Edit&gt;Paste</em> so that you have a copy of that curve and can preserve the original.</p>
<p>It's good in your case that you have a known offset between two points with the same X values. Otherwise this would take a smidgen more work. But basically, you want the same shape curve to pass through the point X=4%, Y=553, where the original passes through X=4%, Y=2697. So the new curve should be something like Y'=10^(log<sub>10</sub>Y + log<sub>10</sub>553 - log<sub>10</sub>2697. Remembering a bit of high school algebra, this reduces to Y'=Y*553/2697 (though either form will work). Use the <em>Operate on Y</em> command on the <em>Edit</em> menu on your pasted curve with Y=Y*553/2697 to get:</p>
<p><img src="http://www.dplot.com/blog/images/offsetcurve061809b.png" height="585" width="593" /></p>
<p>... which mimics the original curve fit with an offset in Y.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Finding 0.2% offset strain</title>
    <link rel="alternate" type="text/html" href="http://www.dplot.com/blog/2009/06/finding-02-offset-strain.html" />
    <id>tag:dplot.com,2009:/blog//1.7</id>

    <published>2009-06-18T22:15:21Z</published>
    <updated>2010-12-13T23:27:23Z</updated>

    <summary>This one is intended mostly for folks who break things. Specifically, structural engineers who pull on steel (or other ductile metal) bars until they fail. From Wikipedia: Ductile metals do not have a well defined yield point. The yield strength...</summary>
    <author>
        <name>David Hyde</name>
        
    </author>
    
    <category term="02%offsetstrain" label="0.2% offset strain" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="offsetacurve" label="offset a curve" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="stressstrain" label="stress-strain" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.dplot.com/blog/">
        <![CDATA[This one is intended mostly for folks who break things. Specifically, structural engineers who pull on steel (or other ductile metal) bars until they fail. From <a href="http://en.wikipedia.org/wiki/Tensile_strength">Wikipedia</a>: 
<p></p>
<p><em>Ductile metals do not have a well defined yield point. The yield strength is typically defined by the "0.2% offset strain". The yield strength at 0.2% offset is determined by finding the intersection of the stress-strain curve with a line parallel to the initial slope of the curve and which intercepts the abscissa at 0.2%.</em></p>
<p>The question, then, is "Is there an easy way to determine the 0.2% offset strain line, without a calculator handy?" Yes, there is. Shown below is a typical stress-strain curve, in this case for a rolled steel bar.</p>
<p><img src="http://www.dplot.com/blog/images/offsetstrain1.png" height="573" width="634" /> 
</p>

<p>The first step is to find the slope of the elastic portion of the stress-strain curve. You can do that very easily with the <em>Distance from...</em> command on the <em>Info</em> menu. Ensure that <em>Snap cursor to nearest data point</em> is checked, then drag the mouse from a point near the origin along the initial (hopefully linear) slope:</p>
<p><img src="http://www.dplot.com/blog/images/offsetstrain2.png" height="574" width="637" /> 
</p>

<p>To avoid retyping (and transcription errors), drag your mouse over the "slope" value, right-click and select "Copy". Now select the <a href="http://www.dplot.com/help/index.htm?helpid_f_of_x.htm" target="_blank">Y=f(X)</a> command on the <em>Generate</em> menu. The equation we want is simply (in this case) "21.6569856057*(x-2000)" (2000 microinches/inch = 0.2% strain). For the <em>from X</em> value use 2000 (or any smaller value); for <em>to X</em> use a strain value large enough that the line will be certain to cross the stress-strain curve. You can then zoom in if you overshoot the curve by a lot. The <em>with interval dX</em> entry isn't critical, since you'll be generating a straight line.</p>

<p>Finally, select <em>Find Intersections...</em> on the <em>Info</em> menu. (If this command is disabled you likely need to sort the data points with the <em>Sort</em> command on the <em>Edit</em> menu.) Check the <em>Insert data points...</em> and <em>Add labels at intersections</em> boxes, and you get: 

</p><p><img src="http://www.dplot.com/blog/images/offsetstrain3.png" height="573" width="634" /> 

</p><p>... indicating a yield stress of ~70.5ksi at a strain of ~0.005. </p>

<em>Thanks much to Stephen Rowell for his input on this one.</em>]]>
        
    </content>
</entry>

<entry>
    <title>Ternary plot options for rocks</title>
    <link rel="alternate" type="text/html" href="http://www.dplot.com/blog/2009/06/ternary-plot-options-for-rocks.html" />
    <id>tag:dplot.com,2009:/blog//1.6</id>

    <published>2009-06-04T16:17:20Z</published>
    <updated>2009-08-04T14:37:01Z</updated>

    <summary>From support e-mail: Q: I work with mineralogical data, some of which is used for rock classification. Is it possible to define field classification boundaries, other than those in the soil plot, so that rock classifications can be plotted? I...</summary>
    <author>
        <name>David Hyde</name>
        
    </author>
    
    <category term="maficrock" label="mafic rock" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ternaryplot" label="ternary plot" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="triangleplot" label="triangle plot" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ultramaficrock" label="ultramafic rock" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.dplot.com/blog/">
        <![CDATA[<p><em>From support e-mail:</em></p>

<p><strong>Q:</strong> I work with mineralogical data, some of which is used for rock classification. Is it possible to define field classification boundaries, other than those in the soil plot, so that rock classifications can be plotted? I am using the standard IUGS rock classification diagrams for felsic, mafic and ultramafic rocks which are based on three minerals each. I have tried plotting field boundary coordinates in X-Y space and then selecting triangle plot, but the line disappears.</p>

<p><strong>A:</strong> In general you can plot any sort of boundaries and/or labels you want with a ternary plot (aka <em>triangle plot</em>, depending on what world you work in), and your "but the line disappears" is easily explained. But more on that below. First, <strong>yes you can</strong> plot <a href="http://www.dplot.com/triangle_plot.htm#MAFIC">mafic</a> and <a href="http://www.dplot.com/triangle_plot.htm#ULTRAMAFIC">ultramafic</a> rock classifications starting with version 2.2.6.</p>

<p>If the plot you have on the screen is <strong>not</strong> a triangle plot, first right-click on the graph and select <em>Triangle Plot</em> (or, equivalently, click on the Options menu, then <em>Linear/Log Scaling</em>, then <em>Triangle Plot</em>). Then right-click again on the plot and select <em>Triangle Plot Options</em> (again, the same option is available on the Options menu). You'll be presented (with version 2.2.6 or later) with this dialog box:</p>
<p><img src="http://www.dplot.com/blog/images/triplot_options.png" height="257" width="408" /></p>
<p>Select the appropriate options and click OK. For an ultramafic scale and blue boundary lines, you should now see something that looks a bit like this (minus your data):</p>
<p><img src="http://www.dplot.com/blog/images/ultramafic.png" height="517" width="719" /></p>
<p>As to the more general question, you can create whatever boundaries and labels you want, save those to a DPlot file, then later open that file and import and/or add that data to your file. Your "but the line disappears" comment is due to a default setting with regard to triangle plots. Take a look at the General command on the Options menu. Most likely the <em>Always force symbols on/lines off for triangle plots</em> option is checked. That option only applies to new data; you can either uncheck that option or later select the <em>Symbol/Line Styles</em> command on the Options menu to use a line style other than "None". </p>
<p>An example is always nice, so here is an example:</p>
<p>You want to show the boundaries for tuffs and ashes from R. Schmid's <em>Descriptive nomenclature and classification of pyroclastic deposits and fragments: Recommendations of the International Union of Geological Sciences Subcommission on the Systematics of Igneous Rocks.</em>. Yes, I know you don't really want that, but follow along anyway. The boundaries between the 3 regions will be created with normal DPlot "curves". The X,Y endpoints are: </p>
<p>(50,0) - (33.333333,33.333333),<br />(0,50) - (33.333333,33.333333), and<br />(50,50) - (33.333333,33.333333)<br />You can easily enter these points using the <em>Edit Data</em> command on the Edit menu.</p>
<p>Labels for the various regions are added with the <em>Add/Edit Note</em> command on the Text menu (or by clicking the Note button on the toolbar). You can either drag the notes to the desired location, or specify their location in terms of data space initially (no dragging required). The anchor point in data space for the notations shown below, with the justification set to Center and Middle in all cases, is:</p>
<p>vitric tuff\nvitric ash: 16.67, 66.67<br />crystal ash\ncrystal tuff: 16.67, 16.67<br />lithic tuff\nlithic ash: 66.67, 16.67</p>
<p>Once done your plot should resemble something like this:</p>
<p><img src="http://www.dplot.com/blog/images/schmid_tuff.png" height="515" width="571" /></p>
<p>Once this graph is created you can add your own data with the <em>Edit Data</em> command on the Edit menu or, if your data exists in a file, with the <em>Append</em> command on the File menu (as opposed to the <em>Open</em> command).</p>
<p>The DPlot file for this picture is available <a href="http://www.dplot.com/blog/dplotfiles/schmid_tuff.grf">here</a> (right-click and select <em>Save As</em>).</p>]]>
        
    </content>
</entry>

</feed>

