<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>Kai Arzheimer &#187; animation</title> <atom:link href="http://www.kai-arzheimer.com/blog/tag/animation/feed/" rel="self" type="application/rss+xml" /><link>http://www.kai-arzheimer.com/blog</link> <description>A political science blog</description> <lastBuildDate>Sat, 21 Jan 2012 19:06:37 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>All singing, all dancing 3d function plots with beamer, pgfplots and animate.sty</title><link>http://www.kai-arzheimer.com/blog/all-singing-all-dancing-3d-function-plots-with-beamer-pgfplots-and-animate-sty/</link> <comments>http://www.kai-arzheimer.com/blog/all-singing-all-dancing-3d-function-plots-with-beamer-pgfplots-and-animate-sty/#comments</comments> <pubDate>Sat, 23 Jan 2010 21:57:17 +0000</pubDate> <dc:creator>kai</dc:creator> <category><![CDATA[Data and Methods]]></category> <category><![CDATA[My Stuff]]></category> <category><![CDATA[Political Science]]></category> <category><![CDATA[3d]]></category> <category><![CDATA[animation]]></category> <category><![CDATA[beamer]]></category> <category><![CDATA[latex]]></category> <category><![CDATA[logistic]]></category> <category><![CDATA[pdf]]></category> <category><![CDATA[pgf]]></category> <category><![CDATA[pgfplots]]></category> <category><![CDATA[plot]]></category> <category><![CDATA[standard]]></category> <category><![CDATA[stats]]></category> <category><![CDATA[teaching]]></category> <category><![CDATA[tikz]]></category><guid isPermaLink="false">http://www.kai-arzheimer.com/blog/?p=367</guid> <description><![CDATA[I use emacs/for all my textprocessing needs, and for the last four or five years, I have created all my slides with Till Tantaus excellent &#8220;beamer&#8221; class. At the moment, I&#8217;m teaching a 2nd year stats course (imagine doing this with PowerPoint &#8211; the horror! the horror!), so I sometimes use graphs from the assigned [...]]]></description> <content:encoded><![CDATA[<div id="attachment_377" class="wp-caption alignright" style="width: 160px"><a href="http://www.kai-arzheimer.com/blog/wp-content/uploads/2010/01/latent-1.png"><img class="size-thumbnail wp-image-377" title="latent-1" src="http://www.kai-arzheimer.com/blog/wp-content/uploads/2010/01/latent-1-150x150.png" alt="latent 1 150x150 All singing, all dancing 3d function plots with beamer, pgfplots and animate.sty " width="150" height="150" /></a><p class="wp-caption-text">Source: Long/Freese, Regression Models for Categorical Dependent Variables Using Stata</p></div><p>I use emacs/<img src='http://s0.wp.com/latex.php?latex=%5CLaTeX&#038;bg=ffffff&#038;fg=000&#038;s=0' alt=" All singing, all dancing 3d function plots with beamer, pgfplots and animate.sty " title='&#92;LaTeX' class='latex' />for all my textprocessing needs, and for the last four or five years, I have created all my slides with Till Tantaus excellent &#8220;beamer&#8221; class. At the moment, I&#8217;m teaching a 2nd year stats course (imagine doing this with PowerPoint &#8211; the  horror! the horror!), so I sometimes use graphs from the assigned text like this one from Long&amp;Freese that illustrates the latent variable/threshold interpretation of the binary logit model. The message should be fairly clear: <img src='http://s0.wp.com/latex.php?latex=y%5E%7B%2A%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt=" All singing, all dancing 3d function plots with beamer, pgfplots and animate.sty " title='y^{*}' class='latex' /> depends on <img src='http://s0.wp.com/latex.php?latex=x&#038;bg=ffffff&#038;fg=000&#038;s=0' alt=" All singing, all dancing 3d function plots with beamer, pgfplots and animate.sty " title='x' class='latex' /> andfollows a standard logistic distribution around its conditional mean.</p><p><span id="more-367"></span></p><div id="attachment_368" class="wp-caption alignright" style="width: 310px"><a href="http://www.kai-arzheimer.com/blog/wp-content/uploads/2010/01/animation.pdf"><img class="size-medium wp-image-368" title="animation" src="http://www.kai-arzheimer.com/blog/wp-content/uploads/2010/01/animation-300x224.jpg" alt="animation 300x224 All singing, all dancing 3d function plots with beamer, pgfplots and animate.sty " width="300" height="224" /></a><p class="wp-caption-text">Click to download the animated PDF. Requires javascript, so view in Acrobat reader.</p></div><p>But the fact that the bell-curve lies flat <em>in</em> the <img src='http://s0.wp.com/latex.php?latex=x-y%5E%7B%2A%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt=" All singing, all dancing 3d function plots with beamer, pgfplots and animate.sty " title='x-y^{*}' class='latex' /> plane confused my students no end. So I wasted half a day on creating a nice 3d-plot for them. After trying several options, I settled on pgfplots.sty, which builds on tikz/pgf, the comprehensive, portable graphics package designed by Tantau (<a href="http://www.texample.net/tikz/examples/%20" target="_blank">here&#8217;s a gallery with most amazing examples of what you can do with this little gem</a>). Plotting data and functions with pgfplots in 2d or 3d is a snap, so that was not too hard. Eventually.</p><p>Finally, in a desperate attempt to drive the message home, I enlisted the help of animate.sty, yet another amazing package that creates a javascript-based inline animation from my <img src='http://s0.wp.com/latex.php?latex=%5CLaTeX&#038;bg=ffffff&#038;fg=000&#038;s=0' alt=" All singing, all dancing 3d function plots with beamer, pgfplots and animate.sty " title='&#92;LaTeX' class='latex' /> source (requires Acrobat reader). So the bell-curves pop out of the plane, in slow motion. Did it help the students to see the light? I have no idea. <a href="http://www.kai-arzheimer.com/blog/wp-content/uploads/2010/01/animation.zip">Here is the source</a>.</p><div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/3c23bbf5-44eb-403a-b90c-614ceab8fab3/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/reblog_e.png?x-id=3c23bbf5-44eb-403a-b90c-614ceab8fab3" alt=" All singing, all dancing 3d function plots with beamer, pgfplots and animate.sty "  title="All singing, all dancing 3d function plots with beamer, pgfplots and animate.sty  photo" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div><div class="su-linkbox" id="post-367-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://www.kai-arzheimer.com/blog/all-singing-all-dancing-3d-function-plots-with-beamer-pgfplots-and-animate-sty/&quot;&gt;All singing, all dancing 3d function plots with beamer, pgfplots and animate.sty&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div>]]></content:encoded> <wfw:commentRss>http://www.kai-arzheimer.com/blog/all-singing-all-dancing-3d-function-plots-with-beamer-pgfplots-and-animate-sty/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching using disk: basic
Object Caching 839/909 objects using disk: basic

Served from: www.kai-arzheimer.com @ 2012-02-08 16:34:57 -->
