<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-2906</id>
	<title>Nabble - matplotlib - users</title>
	<updated>2009-12-04T14:20:13Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/matplotlib---users-f2906.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/matplotlib---users-f2906.html" />
	<subtitle type="html">matplotlib - users mailing list</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26642470</id>
	<title>Re: animated axis</title>
	<published>2009-12-04T14:20:13Z</published>
	<updated>2009-12-04T14:20:13Z</updated>
	<author>
		<name>andreyd</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;avee wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;Dear users,
&lt;br&gt;I have been working on a scope based on matplotlib to monitor acquisition data. In order to enhance frame per seconds, I have used matplotlib's blit capabilities and works ok. No flickering, nice and smooth. Here's how it's done, take note that bbox is taken from the figure and not the axes object in order to make the scale animated. The problem I have, is that the figure is all white because of this.. just a question of esthetics :-) If bbox is taken from the axis, the scale will never be drawn. Any suggestion?
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
This worked for me:
&lt;br&gt;to remove axis temporary and than to take background of the whole picture but without ticks and labels of this axis:
&lt;br&gt;&lt;br&gt;&amp;nbsp;self.axxaxis = self.ax.get_xaxis()
&lt;br&gt;&amp;nbsp;
&lt;br&gt;# store ticker &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp;MJF = self.axxaxis.get_major_formatter()
&lt;br&gt;&amp;nbsp;MJL = self.axxaxis.get_major_locator()
&lt;br&gt;#remove axis
&lt;br&gt;&amp;nbsp;self.axxaxis.set_major_formatter(NullFormatter())
&lt;br&gt;&amp;nbsp;self.axxaxis.set_major_locator(NullLocator())
&lt;br&gt;&lt;br&gt;&amp;nbsp;self.draw()
&lt;br&gt;&lt;br&gt;&amp;nbsp;... 
&lt;br&gt;&amp;nbsp;take background for blit
&lt;br&gt;&amp;nbsp;...
&lt;br&gt;&lt;br&gt;# restore ticker
&lt;br&gt;&amp;nbsp;self.axxaxis.set_major_formatter(MJF)
&lt;br&gt;&amp;nbsp;self.axxaxis.set_major_locator(MJL) 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/animated-axis-tp26635860p26642470.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26649271</id>
	<title>Re: AxesGrid problem.</title>
	<published>2009-12-04T13:07:49Z</published>
	<updated>2009-12-04T13:07:49Z</updated>
	<author>
		<name>Jae-Joon Lee</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Dec 4, 2009 at 2:49 PM, Ryan Neve &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26649271&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ryan.neve@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;

Than you for your assistance with AxesGrid.&lt;br&gt;&lt;br&gt;Concerning the documentation, on this page:&lt;a href=&quot;http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.htm&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.htm&lt;/a&gt; it says:&lt;br&gt;






&lt;table border=&quot;1&quot;&gt;&lt;colgroup&gt;
&lt;col width=&quot;19%&quot;&gt;
&lt;col width=&quot;11%&quot;&gt;
&lt;col width=&quot;70%&quot;&gt;
&lt;/colgroup&gt;
&lt;thead valign=&quot;bottom&quot;&gt;
&lt;tr&gt;&lt;th&gt;Name&lt;/th&gt;
&lt;th&gt;Default&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody valign=&quot;top&quot;&gt;








&lt;tr&gt;&lt;td&gt;aspect&lt;/td&gt;
&lt;td style=&quot;background-color:rgb(255, 255, 102)&quot;&gt;True&lt;/td&gt;
&lt;td&gt;aspect of axes&lt;/td&gt;
&lt;/tr&gt;





&lt;/tbody&gt;&lt;/table&gt;&lt;br&gt;then a few lines below:&lt;br&gt;&amp;quot;&lt;i&gt;aspect&lt;/i&gt;&lt;dl&gt;&lt;dd&gt;By default (&lt;span style=&quot;background-color:rgb(255, 255, 102)&quot;&gt;False&lt;/span&gt;), widths and heigths of axes in the grid are
scaled independently. If True, they are scaled according to their
data limits (similar to aspect parameter in mpl).&amp;quot;&lt;/dd&gt;&lt;/dl&gt;&lt;blockquote style=&quot;margin:1.5em 0pt&quot;&gt;&lt;/blockquote&gt;&lt;b&gt;&lt;/b&gt;&lt;/blockquote&gt;&lt;div&gt;Thanks a lot.&lt;/div&gt;&lt;div&gt;This need to be fixed.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;

&lt;b&gt;Here is a more complete example of my code:&lt;br&gt;&lt;/b&gt;In the following code, x_grid and y_grid are are arrays created by meshgrid and represent time and water depth respectively.&lt;br&gt;

z_dim is a dictionary of one or more arrays of sensor readings corresponding to the depths and times in x_grid and y_grid.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Please, &amp;quot;more&amp;quot; complete example does not make any difference unless it is complete. &lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Try the following code. This is based on the first part of your example. It will show empty axes but without extra ticklabels. Again, I think an extra axes is added to the figure somewhere in your code. And, without a complete, runnable (but simple) code, there is not much I (or others) can help.&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;-JJ&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;from matplotlib import pyplot&lt;/div&gt;&lt;div&gt;from mpl_toolkits.axes_grid import AxesGrid&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;nrows = 3&lt;/div&gt;&lt;div&gt;DAP_figure = pyplot.figure(1,(20,8))&lt;/div&gt;

&lt;div&gt;pyplot.figtext(0.05,.5,&amp;quot;Depth (m)&amp;quot;,rotation=&amp;#39;vertical&amp;#39;,verticalalignment=&amp;#39;center&amp;#39;)&lt;/div&gt;&lt;div&gt;# Create a grid of axes with the AxesGrid helper class&lt;/div&gt;&lt;div&gt;my_grid = AxesGrid(DAP_figure, 111, # Only one grid in this figure&lt;/div&gt;

&lt;div&gt;                nrows_ncols = (nrows,1), # one or more rows, but only one column&lt;/div&gt;&lt;div&gt;                axes_pad = 0.0, #pad between axes in inches&lt;/div&gt;&lt;div&gt;                aspect=False, # If True, all plots are superimposed upon one another.&lt;/div&gt;

&lt;div&gt;                add_all=True, # not sure why this would ever be False&lt;/div&gt;&lt;div&gt;                share_all=True, # I think this means that all axes have the same x &amp;amp; y scales&lt;/div&gt;&lt;div&gt;                label_mode = &amp;quot;L&amp;quot;, # labels for depth on left and time on bottom&lt;/div&gt;

&lt;div&gt;                cbar_location=&amp;quot;right&amp;quot;,&lt;/div&gt;&lt;div&gt;                cbar_mode=&amp;quot;each&amp;quot;, # each axes has a different scale&lt;/div&gt;&lt;div&gt;                cbar_size=&amp;quot;2%&amp;quot;,&lt;/div&gt;&lt;div&gt;                cbar_pad=&amp;quot;1%&amp;quot;,&lt;/div&gt;

&lt;div&gt;                )&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;pyplot.draw()&lt;/div&gt;&lt;div&gt;pyplot.show()&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26649271&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/AxesGrid-problem.-tp26614691p26649271.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26648527</id>
	<title>Re: Rotating X-Labels on AxesGrid?</title>
	<published>2009-12-04T12:09:14Z</published>
	<updated>2009-12-04T12:09:14Z</updated>
	<author>
		<name>Jae-Joon Lee</name>
	</author>
	<content type="html">First of all, unless you're displaying multiple images (with aspect),
&lt;br&gt;there is not much of benefit &amp;nbsp;of using axes_grid toolkit. So I
&lt;br&gt;strongly recommend you to stick to subplot.
&lt;br&gt;&lt;br&gt;&lt;br&gt;axes_grid toolkit uses different kind of artists to draw ticklabels.
&lt;br&gt;Therefore, most of the matplotlib command that try to change the
&lt;br&gt;properties of the ticklabels does not work.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/axislines.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/axislines.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;You may recover the original matplotlib behavior, but some of the
&lt;br&gt;feature in axes_grid toolkit won't work.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html#axisline&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html#axisline&lt;/a&gt;&lt;br&gt;&lt;br&gt;axes_grid way of rotating ticklabels is
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;ax.axis[&amp;quot;bottom&amp;quot;].major_ticklabels.set_rotation(90)
&lt;br&gt;&lt;br&gt;But, you may want to fiddle with other properties also.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;ax.axis[&amp;quot;bottom&amp;quot;].major_ticklabels.set_va(&amp;quot;top&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp;ax.axis[&amp;quot;bottom&amp;quot;].major_tick_pad = -8
&lt;br&gt;&lt;br&gt;Anyhow, I must admit that handling of ticklabels in axes_grid toolkit
&lt;br&gt;is a bit messy currently. And I hope to improve it soon.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;-JJ
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Fri, Dec 4, 2009 at 12:56 PM, &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26648527&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;PHobson@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hey folks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm trying to make some bar plots using AxesGrid and the set_xlabels method doesn't seem to notice that I'm passing a 'rotation' kwarg.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here's a small script that showing that this doesn't work:
&lt;br&gt;&amp;gt; # ------------------------------------------
&lt;br&gt;&amp;gt; import matplotlib.pyplot as pl
&lt;br&gt;&amp;gt; from mpl_toolkits.axes_grid import AxesGrid
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; fig = pl.figure()
&lt;br&gt;&amp;gt; grid = AxesGrid(fig, 111, nrows_ncols=(1,1), axes_pad=0.12)
&lt;br&gt;&amp;gt; xlabs = ['paul', 'chris', 'patti']
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; for ax in grid:
&lt;br&gt;&amp;gt;    ax.plot([1,2,3], [2,2.5,3], 'bo')
&lt;br&gt;&amp;gt;    ax.set_ylim([0,5])
&lt;br&gt;&amp;gt;    ax.set_xlim([0,4])
&lt;br&gt;&amp;gt;    ax.set_xticks([1,2,3])
&lt;br&gt;&amp;gt;    ax.set_xticklabels(xlabs, rotation=90)
&lt;br&gt;&amp;gt; # -----------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; As you can see from the attached image, my labels aren't rotating. This is obviously a trivial example, but I'm trying to plot some chemical concentrations and the names are quite long.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any tips? Should I just be using subpolot instead?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Python 2.6.2 and:
&lt;br&gt;&amp;gt; In [25]: import matplotlib as mpl
&lt;br&gt;&amp;gt; In [26]: mpl.__version__
&lt;br&gt;&amp;gt; Out[26]: '0.99.1'
&lt;br&gt;&amp;gt; In [27]: import numpy as np
&lt;br&gt;&amp;gt; In [28]: np.__version__
&lt;br&gt;&amp;gt; Out[28]: '1.3.0'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Paul M. Hobson
&lt;br&gt;&amp;gt; Senior Staff Engineer
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Geosyntec Consultants
&lt;br&gt;&amp;gt; 55 SW Yamhill St, Ste 200
&lt;br&gt;&amp;gt; Portland, OR 97204
&lt;br&gt;&amp;gt; Phone: (503) 222-9518
&lt;br&gt;&amp;gt; www.geosyntec.com
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;&amp;gt; a free event focused on virtualization and cloud computing.
&lt;br&gt;&amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Matplotlib-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26648527&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26648527&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Rotating-X-Labels-on-AxesGrid--tp26646498p26648527.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26648493</id>
	<title>legend with</title>
	<published>2009-12-04T12:07:22Z</published>
	<updated>2009-12-04T12:07:22Z</updated>
	<author>
		<name>Chuck Pepe-Ranney</name>
	</author>
	<content type="html">I am trying to plot a line area graph similar to a stacked bar chart.&lt;br&gt;&lt;br&gt;E.g&lt;br&gt;&lt;font face=&quot;courier new,monospace&quot;&gt;import matplotlib.pyplot as plt&lt;br&gt;import numpy as np&lt;br&gt;fig = plt.figure()&lt;br&gt;ax = fig.add_subplot(111)&lt;br&gt;
ind = np.arange(3)&lt;br&gt;y1 = np.array([1,2,3])&lt;br&gt;y2 = y1 * 2&lt;br&gt;a = ax.fill_between(ind, y1, np.zeros(len(ind)), facecolor=&amp;#39;r&amp;#39;)&lt;br&gt;b = ax.fill_between(ind, y2, y1, facecolor=&amp;#39;b&amp;#39;)&lt;br&gt;plt.show()&lt;br&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;br&gt;
However, when I try to make my legend,&lt;br&gt;&lt;br&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;ax.legend((a,b),(&amp;#39;a&amp;#39;,&amp;#39;b&amp;#39;))&lt;br&gt;&lt;br style=&quot;font-family: arial,helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-family: arial,helvetica,sans-serif;&quot;&gt;I get an AttributeError.  How do I extract the information I need from the PolyCollection object to make a legend?&lt;/span&gt;&lt;br style=&quot;font-family: arial,helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-family: arial,helvetica,sans-serif;&quot;&gt;Thanks,&lt;/span&gt;&lt;br style=&quot;font-family: arial,helvetica,sans-serif;&quot;&gt;&lt;br style=&quot;font-family: arial,helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-family: arial,helvetica,sans-serif;&quot;&gt;- Chuck&lt;/span&gt;&lt;/span&gt; &lt;/font&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;/font&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26648493&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/legend-with-tp26648493p26648493.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26648233</id>
	<title>Re: AxesGrid problem.</title>
	<published>2009-12-04T11:49:46Z</published>
	<updated>2009-12-04T11:49:46Z</updated>
	<author>
		<name>RyanN-2</name>
	</author>
	<content type="html">Than you for your assistance with AxesGrid.&lt;br&gt;&lt;br&gt;Concerning the documentation, on this page:&lt;a href=&quot;http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.htm&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.htm&lt;/a&gt; it says:&lt;br&gt;




&lt;table border=&quot;1&quot;&gt;&lt;colgroup&gt;
&lt;col width=&quot;19%&quot;&gt;
&lt;col width=&quot;11%&quot;&gt;
&lt;col width=&quot;70%&quot;&gt;
&lt;/colgroup&gt;
&lt;thead valign=&quot;bottom&quot;&gt;
&lt;tr&gt;&lt;th&gt;Name&lt;/th&gt;
&lt;th&gt;Default&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody valign=&quot;top&quot;&gt;








&lt;tr&gt;&lt;td&gt;aspect&lt;/td&gt;
&lt;td style=&quot;background-color: rgb(255, 255, 102);&quot;&gt;True&lt;/td&gt;
&lt;td&gt;aspect of axes&lt;/td&gt;
&lt;/tr&gt;





&lt;/tbody&gt;&lt;/table&gt;&lt;br&gt;then a few lines below:&lt;br&gt;&amp;quot;&lt;i&gt;aspect&lt;/i&gt;&lt;dl&gt;&lt;dd&gt;By default (&lt;span style=&quot;background-color: rgb(255, 255, 102);&quot;&gt;False&lt;/span&gt;), widths and heigths of axes in the grid are
scaled independently. If True, they are scaled according to their
data limits (similar to aspect parameter in mpl).&amp;quot;&lt;/dd&gt;&lt;/dl&gt;&lt;blockquote style=&quot;margin: 1.5em 0pt;&quot;&gt;&lt;/blockquote&gt;&lt;b&gt;Here is a more complete example of my code:&lt;br&gt;&lt;/b&gt;In the following code, x_grid and y_grid are are arrays created by meshgrid and represent time and water depth respectively.&lt;br&gt;

z_dim is a dictionary of one or more arrays of sensor readings corresponding to the depths and times in x_grid and y_grid.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;from matplotlib import pyplot&lt;br&gt;from mpl_toolkits.axes_grid import AxesGrid&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;
&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;nrows = len(z_dim) # Number of rows&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;DAP_figure = pyplot.figure(1,(20,8))&lt;br&gt;
pyplot.figtext(0.05,.5,&amp;quot;Depth (m)&amp;quot;,rotation=&amp;#39;vertical&amp;#39;,verticalalignment=&amp;#39;center&amp;#39;)&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;# Create a grid of axes with the AxesGrid helper class&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;
&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;my_grid = AxesGrid(DAP_figure, 111, # Only one grid in this figure&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                nrows_ncols = (nrows,1), # one or more rows, but only one column&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;
&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                axes_pad = 0.0, #pad between axes in inches&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                aspect=False, # If True, all plots are superimposed upon one another.&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;
&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                add_all=True, # not sure why this would ever be False&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                share_all=True, # I think this means that all axes have the same x &amp;amp; y scales&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;
&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                label_mode = &amp;quot;L&amp;quot;, # labels for depth on left and time on bottom&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                cbar_location=&amp;quot;right&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;
&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                cbar_mode=&amp;quot;each&amp;quot;, # each axes has a different scale&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                cbar_size=&amp;quot;2%&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;
&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                cbar_pad=&amp;quot;1%&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                )&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;
&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;for i,parameter in enumerate(z_dim):&lt;br&gt;    z_dim[parameter] = maskDAP(z_dim[parameter],parameter,dev_mult) #Need to mask NaNs and outliers for each grid&lt;br&gt;
    ax = my_grid[i].pcolor(x_grid,y_grid,z_dim[parameter])&lt;br&gt;    my_grid[i].set_ylabel(long_name[parameter]) # Puts a y label on every graph.&lt;br&gt;    my_grid.cbar_axes[i].colorbar(ax) &lt;br&gt;    my_grid.cbar_axes[i].axis[&amp;quot;right&amp;quot;].toggle(ticklabels=True,label=True)&lt;br&gt;
    my_grid.cbar_axes[i].set_ylabel(units[parameter]) #Puts the units on the right side of the colorbar&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;pyplot.draw()&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;
&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;pyplot.show()&lt;/span&gt;&lt;br&gt;&lt;br&gt;I do need a separate colorbar for each plot as they are results of different sensors all taken at the same time and depth scales.&lt;br&gt;Here is what I have now:&lt;br&gt;
&lt;img title=&quot;wutSM.png&quot; alt=&quot;wutSM.png&quot; src=&quot;http://imgur.com/wutSM.png&quot; height=&quot;226&quot; width=&quot;420&quot;&gt;&lt;br&gt;Which, aside from the extra scale labels on the x and y axis is getting close.&lt;br&gt;&lt;br&gt;Thank You for your help,&lt;br&gt;&lt;br&gt;-Ryan&lt;br&gt;

&lt;br&gt;&lt;br&gt;&lt;b&gt;matplotlib version:&lt;/b&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Dec 3, 2009 at 4:36 PM, Jae-Joon Lee &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26648233&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lee.j.joon@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;&lt;div&gt;On Thu, Dec 3, 2009 at 3:40 PM, Ryan Neve &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26648233&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ryan.neve@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;



&lt;div style=&quot;text-align: left; margin-left: 40px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;I tried all sorts of things, but finally, by setting &lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;aspect=False&lt;/span&gt; I got it to work. In the documentation, the table says this defaults to True and the explanation of aspect below says it defaults to False. Although I don&amp;#39;t entirely understand what is going on, I think this threw me off.&lt;br&gt;




So then I had this: &lt;br&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;Can you be more specific about which documentation says the default aspect is False? This may need to be fixed. Note that AxesGrid is designed for displaying images with aspect=True. Otherwise, you may better stick to the subplot..&lt;/div&gt;

&lt;div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;img title=&quot;84Kna.png&quot; alt=&quot;84Kna.png&quot; src=&quot;http://imgur.com/84Kna.png&quot; height=&quot;170&quot; width=&quot;420&quot;&gt;&lt;br&gt;



... which looks much better, except that there are two sets of x and y axis
labels? This seems to have something to do with the colorbar. I&amp;#39;ve got:&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;To me, there is another axes underneath the AxesGrid. It is hard to tell without a complete code.&lt;/div&gt;

&lt;div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div&gt;
&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                    label_mode = &amp;quot;L&amp;quot;, &lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;
&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                    cbar_location=&amp;quot;right&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;
&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                    cbar_mode=&amp;quot;each&amp;quot;, &lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;
&lt;/div&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                    cbar_size=&amp;quot;2%&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;
&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                    cbar_pad=&amp;quot;0.5%&amp;quot;&lt;br&gt;&lt;br&gt;&lt;/span&gt;Now I&amp;#39;m trying to get scales and labels on my colorbars.&lt;br&gt;I tried:&lt;br&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;for i,parameter in enumerate(z_dim):&lt;br&gt;




    ax = my_grid[i].pcolor(x_grid,y_grid,&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;z_dim[parameter]&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;) # This is the pcolor plot&lt;br&gt;    my_grid[i].set_ylabel(&amp;#39;Depth&amp;#39;) # Correctly puts a y label on every plot.&lt;br&gt;




    cb = my_grid.cbar_axes[i].colorbar(ax) # Puts in a colorbar for this axes?s&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;    cb.set_ylabel(parameter) #It would be nice if this was on the far right next to the colorbar. I don&amp;#39;t see it anywhere. Perhaps underneath something?&lt;/span&gt;&lt;/blockquote&gt;



&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;The label of the colorbar is set to invisible by default (this is a bug). So, try something like&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;    my_grid.cbar_axes[i].set_ylabel(parameter)&lt;/div&gt;&lt;div&gt;    my_grid.cbar_axes[i].axis[&amp;quot;right&amp;quot;].toggle(ticklabels=True,&lt;/div&gt;



&lt;div&gt;                                              label=True)&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;

&lt;br&gt;


&lt;img title=&quot;DPkWz.png&quot; alt=&quot;DPkWz.png&quot; src=&quot;http://imgur.com/DPkWz.png&quot; height=&quot;170&quot; width=&quot;420&quot;&gt;&lt;br&gt;It looks like perhaps the colorbar axes is inside the ax axes rather than besides it?&lt;br&gt;In the &lt;a href=&quot;http://matplotlib.sourceforge.net/examples/axes_grid/demo_axes_grid.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;demo_grid_with_each_cbar&lt;/a&gt; example, how would you put a scale and label on the colorbar like in this plot:?&lt;br&gt;




&lt;img title=&quot;58dFK.png&quot; alt=&quot;58dFK.png&quot; src=&quot;http://imgur.com/58dFK.png&quot; height=&quot;135&quot; width=&quot;200&quot;&gt;&lt;br&gt;I can put a y_label on each contour plot, but since they all have depth, I&amp;#39;d like to label this only once.&lt;br&gt;Is there a way to label the entire AxesGrid (or is that subplot?)?&lt;br&gt;




&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;Does label_mode=&amp;quot;1&amp;quot; do what you want?&lt;/div&gt;&lt;div&gt;You may manually make some of the labels invisible.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Please post a &amp;quot;complete&amp;quot;, but simple, script that reproduces your problem. Otherwise, it is hard to track down what is wrong.&lt;/div&gt;



&lt;div&gt;Also, please report what version of matplotlib you&amp;#39;re using. The axes_grid toolkit is relatively new and some of the feature may not work in older versions.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Regards,&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;

&lt;font color=&quot;#888888&quot;&gt;
&lt;div&gt;
-JJ&lt;/div&gt;&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Thank you very much for your help,&lt;br&gt;

&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;-Ryan&lt;/font&gt;&lt;div&gt;
&lt;div&gt;
&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Dec 2, 2009 at 10:21 PM, Jae-Joon Lee &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26648233&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lee.j.joon@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;


&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;This happens because, when the AxesGrid is created, gca() is set to the last axes, which is the last colobar axes.&lt;br&gt;




&lt;br&gt;If you use axes_grid toolkit, you&amp;#39;d better not use pyplot command that works on axes. Instead, use axes method directly.&lt;br&gt;


&lt;br&gt;For example, instead of  &amp;quot;pyplot.pcolor(..)&amp;quot; , use &amp;quot;ax.pcolor(..)&amp;quot;.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;&lt;br&gt;-JJ&lt;br&gt;&lt;br&gt;&lt;br&gt; &lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;On Wed, Dec 2, 2009 at 2:18 PM, Ryan Neve &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26648233&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ryan.neve@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;







&lt;/div&gt;&lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;Hello,&lt;br&gt;&lt;br&gt;I&amp;#39;m trying to use AxesGrid but I&amp;#39;m running into a problem:&lt;br&gt;




I can plot a single pcolor plot:&lt;br&gt;



&lt;img title=&quot;58dFK.png&quot; alt=&quot;58dFK.png&quot; src=&quot;http://imgur.com/58dFK.png&quot; height=&quot;135&quot; width=&quot;200&quot;&gt;&lt;br&gt;But when I try to use AxesGrid, my pcolor plot is ending up where I expect my colorbar to be.&lt;br&gt;&lt;img title=&quot;mEbTA.png&quot; alt=&quot;mEbTA.png&quot; src=&quot;http://i.imgur.com/mEbTA.png&quot; height=&quot;96&quot; width=&quot;96&quot;&gt;&lt;br&gt;








&lt;br&gt;I want to have up to 6 of these plots stacked vertically, sharing a common time axis and y (depth) scale.&lt;br&gt;&lt;br&gt;I&amp;#39;ll try to simplify my code to show what I&amp;#39;m doing:&lt;br&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;








&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;# I have arrays x_grid and y_grid for time and water depth.&lt;br&gt;# z_dim is a dictionary of arrays (one for each plot)&lt;br&gt;# In the plot above it has two arrays.&lt;br&gt;from matplotlib import pyplot&lt;br&gt;








nrows = len(z_dim) # Number of rows is the number of arrays &lt;br&gt;My_figure = pyplot.figure(1,(8,8))&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;my_grid = AxesGrid(My_figure, 111, #Is this always 111?&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;








&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                nrows_ncols = (nrows,1), # Always one column&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                axes_pad = 0.1,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;








&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                add_all=True,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                share_all=True, # They all share the same time and depth scales&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;








&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                label_mode = &amp;quot;L&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                cbar_location=&amp;quot;right&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;








&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                cbar_mode=&amp;quot;each&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                cbar_size=&amp;quot;7%&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;








&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                cbar_pad=&amp;quot;2%&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                )&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;








&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;for row_no,parameter in enumerate(z_dim):&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;    ax = my_grid[row_no]&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;








&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;    ax = pyplot.pcolor(x_grid,y_grid,z_dim[parameter])&lt;br&gt;pyplot.draw()&lt;br&gt;pyplot.show()&lt;/span&gt;&lt;br&gt;&lt;br&gt;I eventually want to end up with something like this matlab output (which I didn&amp;#39;t generate):&lt;br&gt;








&lt;img title=&quot;jiIaK.png&quot; alt=&quot;jiIaK.png&quot; src=&quot;http://imgur.com/jiIaK.png&quot; height=&quot;200&quot; width=&quot;200&quot;&gt;&lt;br&gt;but without the duplication of x scales.&lt;br&gt;&lt;br&gt;I&amp;#39;m new to pyplot and even after reading the documentation much of this is baffling.&lt;br&gt;







&lt;font color=&quot;#888888&quot;&gt;
&lt;br&gt;-Ryan&lt;br&gt;&lt;br&gt;
&lt;/font&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;------------------------------------------------------------------------------&lt;br&gt;
Join us December 9, 2009 for the Red Hat Virtual Experience,&lt;br&gt;
a free event focused on virtualization and cloud computing.&lt;br&gt;
Attend in-depth sessions from your desk. Your couch. Anywhere.&lt;br&gt;
&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
Matplotlib-users mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26648233&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26648233&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/AxesGrid-problem.-tp26614691p26648233.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26636375</id>
	<title>Matplotlib - navigation toolbar - delete x and y labelling</title>
	<published>2009-12-04T10:57:39Z</published>
	<updated>2009-12-04T10:57:39Z</updated>
	<author>
		<name>redrum</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;I'd like to delete x and y labelling in the navigation toolbar.
&lt;br&gt;&lt;br&gt;See picture: &lt;a href=&quot;http://img256.imageshack.us/img256/1608/capturepc.th.png&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://img256.imageshack.us/img256/1608/capturepc.th.png&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;img src=&quot;http://old.nabble.com/file/p26636375/Capture.png&quot; border=&quot;0&quot; /&gt;&lt;br&gt;&lt;br&gt;How can I do this ?
&lt;br&gt;&lt;br&gt;Thanks for your answer</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Matplotlib---navigation-toolbar---delete-x-and-y-labelling-tp26636375p26636375.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26646498</id>
	<title>Rotating X-Labels on AxesGrid?</title>
	<published>2009-12-04T09:56:51Z</published>
	<updated>2009-12-04T09:56:51Z</updated>
	<author>
		<name>PHobson</name>
	</author>
	<content type="html">Hey folks,
&lt;br&gt;&lt;br&gt;I'm trying to make some bar plots using AxesGrid and the set_xlabels method doesn't seem to notice that I'm passing a 'rotation' kwarg.
&lt;br&gt;&lt;br&gt;Here's a small script that showing that this doesn't work:
&lt;br&gt;# ------------------------------------------
&lt;br&gt;import matplotlib.pyplot as pl
&lt;br&gt;from mpl_toolkits.axes_grid import AxesGrid
&lt;br&gt;&lt;br&gt;fig = pl.figure()
&lt;br&gt;grid = AxesGrid(fig, 111, nrows_ncols=(1,1), axes_pad=0.12)
&lt;br&gt;xlabs = ['paul', 'chris', 'patti']
&lt;br&gt;&lt;br&gt;for ax in grid:
&lt;br&gt;&amp;nbsp; &amp;nbsp; ax.plot([1,2,3], [2,2.5,3], 'bo')
&lt;br&gt;&amp;nbsp; &amp;nbsp; ax.set_ylim([0,5])
&lt;br&gt;&amp;nbsp; &amp;nbsp; ax.set_xlim([0,4])
&lt;br&gt;&amp;nbsp; &amp;nbsp; ax.set_xticks([1,2,3])
&lt;br&gt;&amp;nbsp; &amp;nbsp; ax.set_xticklabels(xlabs, rotation=90)
&lt;br&gt;# -----------------------------------------
&lt;br&gt;&lt;br&gt;As you can see from the attached image, my labels aren't rotating. This is obviously a trivial example, but I'm trying to plot some chemical concentrations and the names are quite long.
&lt;br&gt;&lt;br&gt;Any tips? Should I just be using subpolot instead?
&lt;br&gt;&lt;br&gt;Python 2.6.2 and:
&lt;br&gt;In [25]: import matplotlib as mpl
&lt;br&gt;In [26]: mpl.__version__
&lt;br&gt;Out[26]: '0.99.1'
&lt;br&gt;In [27]: import numpy as np
&lt;br&gt;In [28]: np.__version__
&lt;br&gt;Out[28]: '1.3.0'
&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;&lt;br&gt;Paul M. Hobson &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;Senior Staff Engineer
&lt;br&gt;-- 
&lt;br&gt;Geosyntec Consultants 
&lt;br&gt;55 SW Yamhill St, Ste 200
&lt;br&gt;Portland, OR 97204
&lt;br&gt;Phone: (503) 222-9518
&lt;br&gt;www.geosyntec.com
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26646498&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;rotate_test.png&lt;/strong&gt; (30K) &lt;a href=&quot;http://old.nabble.com/attachment/26646498/0/rotate_test.png&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Rotating-X-Labels-on-AxesGrid--tp26646498p26646498.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26645015</id>
	<title>Unable to plot simple matplotlib figures</title>
	<published>2009-12-04T08:20:22Z</published>
	<updated>2009-12-04T08:20:22Z</updated>
	<author>
		<name>Lisa M Winter</name>
	</author>
	<content type="html">Hello.
&lt;br&gt;&lt;br&gt;I installed matplotlib from source in Mac OS 10.6. &amp;nbsp;However, I am &amp;nbsp;
&lt;br&gt;unable to print this simple example plot:
&lt;br&gt;from pylab import *
&lt;br&gt;plot([1,2,3])
&lt;br&gt;show()
&lt;br&gt;&lt;br&gt;Here is what I get when I try using TkAgg as the backend:
&lt;br&gt;&lt;br&gt;casa98-125-dhcp:.matplotlib lisa$ python simple_plot.py --verbose- 
&lt;br&gt;helpful
&lt;br&gt;$HOME=/Users/lisa
&lt;br&gt;matplotlib data path /Users/lisa/.local/lib/python2.6/site-packages/ 
&lt;br&gt;matplotlib/mpl-data
&lt;br&gt;loaded rc file /Users/lisa/.matplotlib/matplotlibrc
&lt;br&gt;matplotlib version 0.99.1.1
&lt;br&gt;verbose.level helpful
&lt;br&gt;interactive is True
&lt;br&gt;units is False
&lt;br&gt;platform is darwin
&lt;br&gt;CONFIGDIR=/Users/lisa/.matplotlib
&lt;br&gt;Using fontManager instance from /Users/lisa/.matplotlib/fontList.cache
&lt;br&gt;backend TkAgg version 8.5
&lt;br&gt;Traceback (most recent call last):
&lt;br&gt;&amp;nbsp; File &amp;quot;simple_plot.py&amp;quot;, line 2, in &amp;lt;module&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; plot([1,2,3])
&lt;br&gt;&amp;nbsp; File &amp;quot;/Users/lisa/.local/lib/python2.6/site-packages/matplotlib/ 
&lt;br&gt;pyplot.py&amp;quot;, line 2134, in plot
&lt;br&gt;&amp;nbsp; &amp;nbsp; ax = gca()
&lt;br&gt;&amp;nbsp; File &amp;quot;/Users/lisa/.local/lib/python2.6/site-packages/matplotlib/ 
&lt;br&gt;pyplot.py&amp;quot;, line 582, in gca
&lt;br&gt;&amp;nbsp; &amp;nbsp; ax = &amp;nbsp;gcf().gca(**kwargs)
&lt;br&gt;&amp;nbsp; File &amp;quot;/Users/lisa/.local/lib/python2.6/site-packages/matplotlib/ 
&lt;br&gt;pyplot.py&amp;quot;, line 276, in gcf
&lt;br&gt;&amp;nbsp; &amp;nbsp; return figure()
&lt;br&gt;&amp;nbsp; File &amp;quot;/Users/lisa/.local/lib/python2.6/site-packages/matplotlib/ 
&lt;br&gt;pyplot.py&amp;quot;, line 254, in figure
&lt;br&gt;&amp;nbsp; &amp;nbsp; **kwargs)
&lt;br&gt;&amp;nbsp; File &amp;quot;/Users/lisa/.local/lib/python2.6/site-packages/matplotlib/ 
&lt;br&gt;backends/backend_tkagg.py&amp;quot;, line 91, in new_figure_manager
&lt;br&gt;&amp;nbsp; &amp;nbsp; canvas = FigureCanvasTkAgg(figure, master=window)
&lt;br&gt;&amp;nbsp; File &amp;quot;/Users/lisa/.local/lib/python2.6/site-packages/matplotlib/ 
&lt;br&gt;backends/backend_tkagg.py&amp;quot;, line 158, in __init__
&lt;br&gt;&amp;nbsp; &amp;nbsp; master=self._tkcanvas, width=w, height=h)
&lt;br&gt;&amp;nbsp; File &amp;quot;/System/Library/Frameworks/Python.framework/Versions/2.6/lib/ 
&lt;br&gt;python2.6/lib-tk/Tkinter.py&amp;quot;, line 3284, in __init__
&lt;br&gt;&amp;nbsp; &amp;nbsp; Image.__init__(self, 'photo', name, cnf, master, **kw)
&lt;br&gt;&amp;nbsp; File &amp;quot;/System/Library/Frameworks/Python.framework/Versions/2.6/lib/ 
&lt;br&gt;python2.6/lib-tk/Tkinter.py&amp;quot;, line 3240, in __init__
&lt;br&gt;&amp;nbsp; &amp;nbsp; self.tk.call(('image', 'create', imgtype, name,) + options)
&lt;br&gt;_tkinter.TclError: integer value too large to represent
&lt;br&gt;&lt;br&gt;&lt;br&gt;I've tried the MacOSX backend and that opens a GUI that has the label &amp;nbsp;
&lt;br&gt;Figure 1 but no plot. &amp;nbsp;Saving to a post script file does not work &amp;nbsp;
&lt;br&gt;either. &amp;nbsp;Does anyone know what the problem is?
&lt;br&gt;&lt;br&gt;Lisa
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26645015&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Unable-to-plot-simple-matplotlib-figures-tp26645015p26645015.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26643045</id>
	<title>Re: Publish to HTML</title>
	<published>2009-12-04T06:07:22Z</published>
	<updated>2009-12-04T06:07:22Z</updated>
	<author>
		<name>AlanIsaac</name>
	</author>
	<content type="html">Another possibility is pyReport:
&lt;br&gt;&lt;a href=&quot;http://gael-varoquaux.info/computers/pyreport/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gael-varoquaux.info/computers/pyreport/&lt;/a&gt;&lt;br&gt;&lt;br&gt;Alan Isaac
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26643045&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Publish-to-HTML-tp26638664p26643045.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26642960</id>
	<title>Beginner Problem with drawing</title>
	<published>2009-12-04T06:01:54Z</published>
	<updated>2009-12-04T06:01:54Z</updated>
	<author>
		<name>Sebastian Rhode-3</name>
	</author>
	<content type="html">Hi guys,&lt;br&gt;&lt;br&gt;i wrote a little program to display filter sets used for microscopy. The spectra data are shown using matplotlib and wxmpl. The GUI hat a menu item &amp;quot;Set Lines&amp;quot; --&amp;gt; an extra Frame with checkboxes will open up.&lt;br&gt;
Upon checking or unchecking, the laser lines should be displayed or deleted inside the main panel as vertical lines, but I juts can not figure out, how to acess the meain panel when checking.&lt;br&gt;&lt;br&gt;The problem is located in line 58, 63 and 68&lt;br&gt;
&lt;br&gt;Here is the code:&lt;br&gt;&lt;br&gt;#!/usr/bin/env python&lt;br&gt;&lt;br&gt;import numpy&lt;br&gt;from pylab import *&lt;br&gt;import scipy&lt;br&gt;import scipy.linalg&lt;br&gt;import wx&lt;br&gt;import wxmpl&lt;br&gt;import os, sys&lt;br&gt;&lt;br&gt;&lt;br&gt;xmin = 350&lt;br&gt;xmax = 700&lt;br&gt;ymin = 0&lt;br&gt;
ymax = 1.05&lt;br&gt;&lt;br&gt;&lt;br&gt;# normalizes dye spectra to 1&lt;br&gt;def normspec(datain):&lt;br&gt;        out = datain&lt;br&gt;        out[:,1] = datain[:,1]/datain[:,1].max(0)&lt;br&gt;        return out&lt;br&gt;&lt;br&gt;# converts filters spectra to 0-1 range&lt;br&gt;
def normspec_filter(datain):&lt;br&gt;        out = datain&lt;br&gt;        if datain[:,1].max(0)&amp;gt;10:&lt;br&gt;            out[:,1] = datain[:,1]/100&lt;br&gt;        return out&lt;br&gt;&lt;br&gt;class MyApp(wx.App):&lt;br&gt;    def OnInit(self):&lt;br&gt;        self.frame = MyFrame(None, -1, &amp;#39;FilterSpectra&amp;#39;)&lt;br&gt;
        self.frame.Show(True)&lt;br&gt;        return True&lt;br&gt;        &lt;br&gt;class SetLaser(wx.Frame):&lt;br&gt;    def __init__(self, parent, id, title):&lt;br&gt;        wx.Frame.__init__(self, parent, id, title, size=(220, 130))&lt;br&gt;&lt;br&gt;        wl = array([405, 445, 473])&lt;br&gt;
        panel = wx.Panel(self, -1)&lt;br&gt;&lt;br&gt;        self.cb0 = wx.CheckBox(panel, 10, str(wl[0])+&amp;#39;nm&amp;#39;, (10,  10)) &lt;br&gt;        self.cb1 = wx.CheckBox(panel, 11, str(wl[1])+&amp;#39;nm&amp;#39;, (80,  10))&lt;br&gt;        self.cb2 = wx.CheckBox(panel, 12, str(wl[2])+&amp;#39;nm&amp;#39;, (150, 10))&lt;br&gt;
        &lt;br&gt;        self.Bind(wx.EVT_CHECKBOX, self.on_checkbox0, id=10)&lt;br&gt;        self.Bind(wx.EVT_CHECKBOX, self.on_checkbox1, id=11) &lt;br&gt;        self.Bind(wx.EVT_CHECKBOX, self.on_checkbox2, id=12) &lt;br&gt;        &lt;br&gt;        self.CenterOnParent()&lt;br&gt;
        self.Show()&lt;br&gt;        &lt;br&gt;    def on_checkbox0(self, event):&lt;br&gt;            self.cb0value = event.IsChecked() &lt;br&gt;            print self.cb0value&lt;br&gt;            self.glaser0, = self.axes.plot([wl[i],wl[i]],[0,1],&amp;#39;b&amp;#39;, lw=2)&lt;br&gt;
            &lt;br&gt;    def on_checkbox1(self, event):&lt;br&gt;            self.cb1value = event.IsChecked() &lt;br&gt;            print self.cb1value&lt;br&gt;            self.glaser1, = self.axes.plot([wl[i],wl[i]],[0,1],&amp;#39;b&amp;#39;, lw=2)&lt;br&gt;
            &lt;br&gt;    def on_checkbox2(self, event):&lt;br&gt;            self.cb2value = event.IsChecked() &lt;br&gt;            print self.cb2value&lt;br&gt;            self.glaser2, = self.axes.plot([wl[i],wl[i]],[0,1],&amp;#39;b&amp;#39;, lw=2)&lt;br&gt;
&lt;br&gt;class MyFrame(wx.Frame):&lt;br&gt;    def __init__(self, parent, id, title):&lt;br&gt;        wx.Frame.__init__(self, parent, id, title, size=(1000, 800))&lt;br&gt;        &lt;br&gt;        menuBar = wx.MenuBar()&lt;br&gt;        self.CreateStatusBar()&lt;br&gt;
        #--------------------------------------------------------------&lt;br&gt;        file = wx.Menu()&lt;br&gt;        file.Append(100, &amp;#39;Save As ...&amp;#39;, &amp;#39;Saves Figure as ...&amp;#39;)&lt;br&gt;        file.AppendSeparator()&lt;br&gt;        file.Append(113, &amp;#39;&amp;amp;Quit\tCtrl+W&amp;#39;)&lt;br&gt;
        #--------------------------------------------------------------&lt;br&gt;        dyes = wx.Menu()&lt;br&gt;        dyes.Append(101, &amp;#39;&amp;amp;Load Dye Absorption&amp;#39;, &amp;#39;Loads Absorption Spectra (*.abs)&amp;#39;)&lt;br&gt;        dyes.Append(102, &amp;#39;&amp;amp;Load Dye Fluorescence&amp;#39;, &amp;#39;Loads Fluorescence Emission Spectra (*.flu)&amp;#39;)&lt;br&gt;
        dyes.AppendSeparator()&lt;br&gt;        dyes.Append(111, &amp;#39;&amp;amp;Delete last Absorption&amp;#39;, &amp;#39;Deletes last Absorption Spectra&amp;#39;)&lt;br&gt;        dyes.Append(112, &amp;#39;&amp;amp;Delete last Fluorescence&amp;#39;, &amp;#39;Deletes last Fluorescence Emission&amp;#39;)&lt;br&gt;
        #--------------------------------------------------------------&lt;br&gt;        &lt;br&gt;        filter = wx.Menu()&lt;br&gt;        filter.Append(103, &amp;#39;&amp;amp;Load Excitation Filter&amp;#39;, &amp;#39;Loads Excitation Filter (*.ex)&amp;#39;)&lt;br&gt;
        filter.Append(104, &amp;#39;&amp;amp;Load Dichroic Mirror&amp;#39;, &amp;#39;Loads Dichroic Mirror (*.di)&amp;#39;)&lt;br&gt;        filter.Append(105, &amp;#39;&amp;amp;Load Emission Filter&amp;#39;, &amp;#39;Loads Emission Filter (*.em)&amp;#39;)&lt;br&gt;        filter.AppendSeparator()&lt;br&gt;
        filter.Append(107, &amp;#39;&amp;amp;Delete last EX filter&amp;#39;, &amp;#39;Deletes the last EX filter&amp;#39;)&lt;br&gt;        filter.Append(108, &amp;#39;&amp;amp;Delete last DI mirror&amp;#39;, &amp;#39;Deletes the last DI mirror&amp;#39;)&lt;br&gt;        filter.Append(109, &amp;#39;&amp;amp;Delete last EM filter&amp;#39;, &amp;#39;Deletes the last EM filter&amp;#39;)    &lt;br&gt;
        #--------------------------------------------------------------&lt;br&gt;        lightsource = wx.Menu()&lt;br&gt;        lightsource.Append(106, &amp;#39;&amp;amp;Load Light Source&amp;#39;, &amp;#39;Loads Spectral Data of Light Source (*.txt)&amp;#39;)&lt;br&gt;
        lightsource.AppendSeparator()&lt;br&gt;        lightsource.Append(110, &amp;#39;&amp;amp;Delete last Light Source&amp;#39;, &amp;#39;Deletes the last Light Source&amp;#39;)&lt;br&gt;        #--------------------------------------------------------------&lt;br&gt;
        laserline = wx.Menu()&lt;br&gt;        laserline.Append(114, &amp;#39;&amp;amp;Set Laser Lines&amp;#39;,&amp;#39; Displays the selected laser lines&amp;#39;)&lt;br&gt;        #--------------------------------------------------------------&lt;br&gt;        menuBar.Append(file, &amp;#39;&amp;amp;File&amp;#39;)&lt;br&gt;
        menuBar.Append(dyes, &amp;#39;&amp;amp;Dyes&amp;#39;)&lt;br&gt;        menuBar.Append(filter, &amp;#39;&amp;amp;Filter&amp;#39;)&lt;br&gt;        menuBar.Append(lightsource, &amp;#39;&amp;amp;Light Source&amp;#39;)&lt;br&gt;        menuBar.Append(laserline, &amp;#39;&amp;amp;Laser Lines&amp;#39;)&lt;br&gt;
        #--------------------------------------------------------------&lt;br&gt;        self.SetMenuBar(menuBar)&lt;br&gt;        #--------------------------------------------------------------&lt;br&gt;        self.Bind(wx.EVT_MENU, self.saveas,        id = 100)&lt;br&gt;
        self.Bind(wx.EVT_MENU, self.openabs,    id = 101)&lt;br&gt;        self.Bind(wx.EVT_MENU, self.openflu,    id = 102)&lt;br&gt;        self.Bind(wx.EVT_MENU, self.openex,        id = 103)&lt;br&gt;        self.Bind(wx.EVT_MENU, self.opendi,        id = 104)&lt;br&gt;
        self.Bind(wx.EVT_MENU, self.openem,        id = 105)&lt;br&gt;        self.Bind(wx.EVT_MENU, self.openls,        id = 106)&lt;br&gt;        self.Bind(wx.EVT_MENU, self.delex,        id = 107)&lt;br&gt;        self.Bind(wx.EVT_MENU, self.deldi,        id = 108)&lt;br&gt;
        self.Bind(wx.EVT_MENU, self.delem,        id = 109)&lt;br&gt;        self.Bind(wx.EVT_MENU, self.dells,        id = 110)&lt;br&gt;        self.Bind(wx.EVT_MENU, self.delabs,        id = 111)&lt;br&gt;        self.Bind(wx.EVT_MENU, self.delflu,        id = 112)&lt;br&gt;
        self.Bind(wx.EVT_MENU, self.OnQuit,        id = 113)&lt;br&gt;        self.Bind(wx.EVT_MENU, self.laserlines,    id = 114)    &lt;br&gt;        &lt;br&gt;        self.plotPanel = wxmpl.PlotPanel(self, -1,)&lt;br&gt;        fig = self.plotPanel.get_figure()&lt;br&gt;
        self.axes = fig.gca()&lt;br&gt;        self.axes.set_xticks(arange(xmin - 100, xmax + 100,  25))&lt;br&gt;        self.axes.set_yticks(arange(ymin - 100, ymax + 100, 0.1));&lt;br&gt;        self.axes.axis([xmin,xmax,ymin,ymax])&lt;br&gt;
        self.axes.grid(True)&lt;br&gt;        self.axes.set_xlabel(&amp;#39;Wavelength [nm]&amp;#39;,fontsize=16)&lt;br&gt;        self.axes.set_ylabel(&amp;#39;Transmission [%] or Intensity [a.u.]&amp;#39;,fontsize=16)&lt;br&gt;        &lt;br&gt;&lt;br&gt;    def openex(self, event):&lt;br&gt;
        dlg = wx.FileDialog(self, &amp;quot;Choose a Excitation Filter&amp;quot;, os.getcwd(), &amp;quot;&amp;quot;, &amp;quot;*.ex*&amp;quot;, wx.OPEN)&lt;br&gt;        if dlg.ShowModal() == wx.ID_OK:&lt;br&gt;            pathex = dlg.GetPath()&lt;br&gt;            mypathex = os.path.basename(pathex)&lt;br&gt;
            self.SetStatusText(&amp;quot;Selected EX: %s&amp;quot; % mypathex)&lt;br&gt;            ex = numpy.loadtxt(pathex)&lt;br&gt;            ex = normspec_filter(ex)&lt;br&gt;            self.gex, = self.axes.plot(ex[:,0],ex[:,1],&amp;#39;b&amp;#39;, lw=2,label = mypathex)&lt;br&gt;
            #self.axes.plot(ex[:,0],ex[:,1],&amp;#39;b&amp;#39;, lw=2,label = mypathex)&lt;br&gt;            self.axes.axis([xmin,xmax,ymin,ymax])&lt;br&gt;            self.axes.legend(loc=4)&lt;br&gt;            self.plotPanel.draw()&lt;br&gt;&lt;br&gt;        dlg.Destroy()&lt;br&gt;
#...&lt;br&gt;# --&amp;gt; here is some more code ...&lt;br&gt;#...            &lt;br&gt;class MyApp(wx.App):&lt;br&gt;    def OnInit(self):&lt;br&gt;        myframe = MyFrame(None, -1, &amp;quot;FilterSpectra&amp;quot;)&lt;br&gt;        myframe.CenterOnScreen()&lt;br&gt;        myframe.Show(True)&lt;br&gt;
        return True&lt;br&gt;        &lt;br&gt;&lt;br&gt;app = MyApp(0)&lt;br&gt;app.MainLoop()&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Dr. Sebastian Rhode&lt;br&gt;Grünwalder Str. 103a&lt;br&gt;81547 München&lt;br&gt;Tel: +49 89 4703091&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642960&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sebrhode@...&lt;/a&gt;&lt;br&gt;

&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642960&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Beginner-Problem-with-drawing-tp26642960p26642960.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26642729</id>
	<title>Re: Publish to HTML</title>
	<published>2009-12-04T05:45:27Z</published>
	<updated>2009-12-04T05:45:27Z</updated>
	<author>
		<name>AlanIsaac</name>
	</author>
	<content type="html">On 12/4/2009 2:17 AM, David Arnold wrote:
&lt;br&gt;&amp;gt; I am wondering if Sampledoc type files can be used for this same
&lt;br&gt;&amp;gt; purpose. Is there a way you can gather the output html and upload them
&lt;br&gt;&amp;gt; to our Sakai drop boxes?
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;Is the following at all related to what you want to do?
&lt;br&gt;Using reStructuredText, you can use the `include` directive
&lt;br&gt;to include code files, and the `figure` directive to include
&lt;br&gt;figures. &amp;nbsp;The code is actually in the file produced with the
&lt;br&gt;rst2html script; the figures remain in separate files.
&lt;br&gt;&lt;br&gt;Alan Isaac
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642729&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Publish-to-HTML-tp26638664p26642729.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26642869</id>
	<title>Re: Publish to HTML</title>
	<published>2009-12-04T05:33:10Z</published>
	<updated>2009-12-04T05:33:10Z</updated>
	<author>
		<name>John Hunter-4</name>
	</author>
	<content type="html">On Fri, Dec 4, 2009 at 1:17 AM, David Arnold &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642869&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dwarnold45@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; All.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I see the Sphinx tutorial Sampledoc on the Matplotlib site and am
&lt;br&gt;&amp;gt; working through the tutorial. This semester, my students have really
&lt;br&gt;&amp;gt; enjoyed using Matlab's publish to HTML tool, then they upload the
&lt;br&gt;&amp;gt; resulting files to their Drop Box on our Sakai course management system.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am wondering if Sampledoc type files can be used for this same
&lt;br&gt;&amp;gt; purpose. Is there a way you can gather the output html and upload them
&lt;br&gt;&amp;gt; to our Sakai drop boxes?
&lt;/div&gt;&lt;br&gt;I'm not familiar with the Sakai drop interface, but you can certainly
&lt;br&gt;upload the files generated by Sphinx in _build/html to a web site.
&lt;br&gt;There are normally a bunch of files that need to be uploaded, so it
&lt;br&gt;would help if Sakai supports some kind of directory or zipfile upload.
&lt;br&gt;&lt;br&gt;JDH
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642869&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Publish-to-HTML-tp26638664p26642869.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26635860</id>
	<title>animated axis</title>
	<published>2009-12-04T03:37:23Z</published>
	<updated>2009-12-04T03:37:23Z</updated>
	<author>
		<name>avee</name>
	</author>
	<content type="html">Dear users,
&lt;br&gt;I have been working on a scope based on matplotlib to monitor acquisition data. In order to enhance frame per seconds, I have used matplotlib's blit capabilities and works ok. No flickering, nice and smooth. Here's how it's done, take note that bbox is taken from the figure and not the axes object in order to make the scale animated. The problem I have, is that the figure is all white because of this.. just a question of esthetics :-) If bbox is taken from the axis, the scale will never be drawn. Any suggestion?
&lt;br&gt;&lt;br&gt;# Set all the animated object to animated
&lt;br&gt;self.ax.get_xaxis().set_animated(True)
&lt;br&gt;line = Line2D(tdata,ydata,animated=True)
&lt;br&gt;&lt;br&gt;# Then a copy of the display
&lt;br&gt;background = self.canvas.copy_from_bbox(self.fig.bbox)
&lt;br&gt;&lt;br&gt;# then loop over the acquisition and update
&lt;br&gt;self.ax.set_xlim(tdata[-1] - self.maxt,tdata[-1]) # update axis
&lt;br&gt;self.line.set_data(tdata,ydata) # update line data
&lt;br&gt;&lt;br&gt;self.canvas.restore_region(background) # restore background
&lt;br&gt;&lt;br&gt;self.ax.draw_artist(self.line[0]) # redraw line
&lt;br&gt;self.ax.draw_artist(self.ax.get_xaxis()) # redraw axis
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;self.canvas.blit(self.fig.bbox) # blit
&lt;br&gt;&lt;br&gt;&lt;img src=&quot;http://old.nabble.com/file/p26635860/acquisition.png&quot; border=&quot;0&quot; /&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/animated-axis-tp26635860p26635860.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26640232</id>
	<title>Re: Computing Simple Statistics from a Histogram</title>
	<published>2009-12-04T01:58:47Z</published>
	<updated>2009-12-04T01:58:47Z</updated>
	<author>
		<name>Wayne Watson</name>
	</author>
	<content type="html">Hi, actually, more question was more informational than how to do it. I
&lt;br&gt;wrote a function to do it, but wondered why such a function didn't seem
&lt;br&gt;to exist. In my case, the histogram is from a small processor that
&lt;br&gt;produces &amp;nbsp;frequency data from 307K points. Unraveling the frequency data
&lt;br&gt;and returning it to original set of points seems counterproductive. The
&lt;br&gt;data is produced from the pixel values in a 640x480 image.
&lt;br&gt;&lt;br&gt;Matthias Michler wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Wayne,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; you are right all these function use the sample-data and not the pdf / 
&lt;br&gt;&amp;gt; frequency of occurence-histogram, because typically the data is available and 
&lt;br&gt;&amp;gt; not the pdf. Maybe the scipy mailing list could give you a solution to your 
&lt;br&gt;&amp;gt; problem.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In case that your freqency of occurence are integers you could do something 
&lt;br&gt;&amp;gt; like the following to generate the sample-data and than you the previous 
&lt;br&gt;&amp;gt; mentioned functions:
&lt;br&gt;&amp;gt; bin_centers = np.array([ 1., &amp;nbsp;2., &amp;nbsp;3., &amp;nbsp;4., &amp;nbsp;5.])
&lt;br&gt;&amp;gt; n_vals = np.array([1, 3, 0, 2, 1])
&lt;br&gt;&amp;gt; sample_new = np.array([])
&lt;br&gt;&amp;gt; for bin_center, n in zip(bin_centers, n_vals): 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; # append new value 'n' times: 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; sample_new = np.concatenate((sample_new, [bin_center]*n))
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Kind regards,
&lt;br&gt;&amp;gt; Matthias
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Tuesday 01 December 2009 17:51:31 Wayne Watson wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; I do not believe that any of those calculations are based on the pdf,
&lt;br&gt;&amp;gt;&amp;gt; frequency of occurrence-histogram. This, (1, 2,2, 4, 2,5,4) and not this
&lt;br&gt;&amp;gt;&amp;gt; (1,3, 0,2,1). The latter are the frequencies of occurrence for 1,2,3,4,5.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; John Hunter wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On Tue, Dec 1, 2009 at 6:32 AM, Wayne Watson
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26640232&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sierra_mtnview@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Is there some statistics function that computes the mean, std. dev.,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; min/max, etc. from a frequency distribution?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; numpy has many functions for basic descriptive statistics. &amp;nbsp;If &amp;quot;data&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; is an array of your data, you can do (import numpy as np)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; mean: np.mean(data)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; median: np.median(data)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; standard deviation: np.std(data)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; min: np.min(data)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; max: np.max(data)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; In scipy.stats, there are many more (skew, kurtosis, etc...) &amp;nbsp;See
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; also, this example:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/py4science/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/py4science/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; examples/stats_descriptives.py?view=markup&amp;pathrev=4027
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; JDH
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;&amp;gt; a free event focused on virtualization and cloud computing. 
&lt;br&gt;&amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Matplotlib-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26640232&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Obz Site: &amp;nbsp;39° 15' 7&amp;quot; N, 121° 2' 32&amp;quot; W, 2700 feet
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The popular press and many authorities believe the number
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; of pedofiles that prowl the web is 50,00. There are no
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; figures that support this. The number of children below
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 18 years of age kidnapped by strangers is 1 in 600,000,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; or 115 per year. -- The Science of Fear by D. Gardner
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Web Page: &amp;lt;www.speckledwithstars.net/&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26640232&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Computing-Simple-Statistics-from-a-Histogram-tp26590996p26640232.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26638664</id>
	<title>Publish to HTML</title>
	<published>2009-12-03T23:17:30Z</published>
	<updated>2009-12-03T23:17:30Z</updated>
	<author>
		<name>dwarnold</name>
	</author>
	<content type="html">All.
&lt;br&gt;&lt;br&gt;I see the Sphinx tutorial Sampledoc on the Matplotlib site and am &amp;nbsp;
&lt;br&gt;working through the tutorial. This semester, my students have really &amp;nbsp;
&lt;br&gt;enjoyed using Matlab's publish to HTML tool, then they upload the &amp;nbsp;
&lt;br&gt;resulting files to their Drop Box on our Sakai course management system.
&lt;br&gt;&lt;br&gt;I am wondering if Sampledoc type files can be used for this same &amp;nbsp;
&lt;br&gt;purpose. Is there a way you can gather the output html and upload them &amp;nbsp;
&lt;br&gt;to our Sakai drop boxes?
&lt;br&gt;&lt;br&gt;David Arnold
&lt;br&gt;College of the Redwoods
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26638664&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Publish-to-HTML-tp26638664p26638664.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26634326</id>
	<title>Re: How to display axis numbers inside the figure area</title>
	<published>2009-12-03T14:23:46Z</published>
	<updated>2009-12-03T14:23:46Z</updated>
	<author>
		<name>Pekeika</name>
	</author>
	<content type="html">&lt;br&gt;Matthias,
&lt;br&gt;&lt;br&gt;And I saw your code now :) and it pretty much looks like mine, with some more or less formatting. Attached is one of my figures where you can see my result!&lt;img src=&quot;http://old.nabble.com/file/p26634326/Spill%2BVerification%2Bof%2Btwenty%252C%2Bhigh%2Bu%2Bagain%2Bafter%2Bchange%2Bpredicted%2Bat%2Btime%2B7.79%2Bdays.jpeg&quot; border=&quot;0&quot; /&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-display-axis-numbers-inside-the-figure-area-tp26578109p26634326.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26634238</id>
	<title>Re: How to display axis numbers inside the figure area</title>
	<published>2009-12-03T14:16:18Z</published>
	<updated>2009-12-03T14:16:18Z</updated>
	<author>
		<name>Pekeika</name>
	</author>
	<content type="html">Matthias,
&lt;br&gt;&lt;br&gt;Thanks for answering. I already solved my problem. I found that there is no function to display on grids the value of the axis (bad when you need to display lat, longitude)... so I made it myself using the text() function and using yticks() and xticks() along with all the formatting properties, all inside of the text function...
&lt;br&gt;&lt;br&gt;Its pretty nice now,
&lt;br&gt;Angelica.
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-display-axis-numbers-inside-the-figure-area-tp26578109p26634238.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26633799</id>
	<title>Re: Plotting curves filled with nonuniform color patch</title>
	<published>2009-12-03T13:46:33Z</published>
	<updated>2009-12-03T13:46:33Z</updated>
	<author>
		<name>Tony Yu-3</name>
	</author>
	<content type="html">&lt;br&gt;On Dec 3, 2009, at 3:58 PM, Jae-Joon Lee wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; line 1486 of _backend_agg.cpp says
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;/* TODO: Support clip paths */
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; So, it seems that, apparently, clipping with arbitrary path has not
&lt;br&gt;&amp;gt; been implemented yet for gouraud shading (pcolormesh will be properly
&lt;br&gt;&amp;gt; clipped if shading is not used).
&lt;br&gt;&amp;gt; I hope Michael pick this up some time soon.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Meanwhile, you may open a feature request ticket on this.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -JJ
&lt;/div&gt;&lt;br&gt;&lt;br&gt;Hey Jae-Joon,
&lt;br&gt;&lt;br&gt;Thanks for digging into this. Feature request added.
&lt;br&gt;&lt;br&gt;By the way, I was looking through the feature requests and noticed an open feature request (ID: 2112292) that was satisfied by the addition of spines in the last major release. Just an FYI, if someone with privileges wants to close the request.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;-Tony
&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26633799&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Plotting-curves-filled-with-nonuniform-color-patch-tp26616377p26633799.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26633647</id>
	<title>Re: AxesGrid problem.</title>
	<published>2009-12-03T13:36:23Z</published>
	<updated>2009-12-03T13:36:23Z</updated>
	<author>
		<name>Jae-Joon Lee</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Dec 3, 2009 at 3:40 PM, Ryan Neve &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26633647&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ryan.neve@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;

&lt;div style=&quot;text-align:left;margin-left:40px&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;text-align:left&quot;&gt;I tried all sorts of things, but finally, by setting &lt;span style=&quot;font-family:courier new,monospace&quot;&gt;aspect=False&lt;/span&gt; I got it to work. In the documentation, the table says this defaults to True and the explanation of aspect below says it defaults to False. Although I don&amp;#39;t entirely understand what is going on, I think this threw me off.&lt;br&gt;


So then I had this: &lt;br&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Can you be more specific about which documentation says the default aspect is False? This may need to be fixed. Note that AxesGrid is designed for displaying images with aspect=True. Otherwise, you may better stick to the subplot..&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;&lt;img title=&quot;84Kna.png&quot; alt=&quot;84Kna.png&quot; src=&quot;http://imgur.com/84Kna.png&quot; height=&quot;170&quot; width=&quot;420&quot;&gt;&lt;br&gt;

... which looks much better, except that there are two sets of x and y axis
labels? This seems to have something to do with the colorbar. I&amp;#39;ve got:&lt;div class=&quot;im&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;To me, there is another axes underneath the AxesGrid. It is hard to tell without a complete code.&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;&lt;div class=&quot;im&quot;&gt;
&lt;span style=&quot;font-family:courier new,monospace&quot;&gt;                    label_mode = &amp;quot;L&amp;quot;, &lt;/span&gt;&lt;br style=&quot;font-family:courier new,monospace&quot;&gt;
&lt;span style=&quot;font-family:courier new,monospace&quot;&gt;                    cbar_location=&amp;quot;right&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family:courier new,monospace&quot;&gt;
&lt;span style=&quot;font-family:courier new,monospace&quot;&gt;                    cbar_mode=&amp;quot;each&amp;quot;, &lt;/span&gt;&lt;br style=&quot;font-family:courier new,monospace&quot;&gt;
&lt;/div&gt;&lt;span style=&quot;font-family:courier new,monospace&quot;&gt;                    cbar_size=&amp;quot;2%&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family:courier new,monospace&quot;&gt;
&lt;span style=&quot;font-family:courier new,monospace&quot;&gt;                    cbar_pad=&amp;quot;0.5%&amp;quot;&lt;br&gt;&lt;br&gt;&lt;/span&gt;Now I&amp;#39;m trying to get scales and labels on my colorbars.&lt;br&gt;I tried:&lt;br&gt;&lt;span style=&quot;font-family:courier new,monospace&quot;&gt;for i,parameter in enumerate(z_dim):&lt;br&gt;


    ax = my_grid[i].pcolor(x_grid,y_grid,&lt;/span&gt;&lt;span style=&quot;font-family:courier new,monospace&quot;&gt;z_dim[parameter]&lt;/span&gt;&lt;span style=&quot;font-family:courier new,monospace&quot;&gt;) # This is the pcolor plot&lt;br&gt;    my_grid[i].set_ylabel(&amp;#39;Depth&amp;#39;) # Correctly puts a y label on every plot.&lt;br&gt;


    cb = my_grid.cbar_axes[i].colorbar(ax) # Puts in a colorbar for this axes?s&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;font-family:courier new,monospace&quot;&gt;    cb.set_ylabel(parameter) #It would be nice if this was on the far right next to the colorbar. I don&amp;#39;t see it anywhere. Perhaps underneath something?&lt;/span&gt;&lt;/blockquote&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;The label of the colorbar is set to invisible by default (this is a bug). So, try something like&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;    my_grid.cbar_axes[i].set_ylabel(parameter)&lt;/div&gt;&lt;div&gt;    my_grid.cbar_axes[i].axis[&amp;quot;right&amp;quot;].toggle(ticklabels=True,&lt;/div&gt;

&lt;div&gt;                                              label=True)&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;&lt;br&gt;


&lt;img title=&quot;DPkWz.png&quot; alt=&quot;DPkWz.png&quot; src=&quot;http://imgur.com/DPkWz.png&quot; height=&quot;170&quot; width=&quot;420&quot;&gt;&lt;br&gt;It looks like perhaps the colorbar axes is inside the ax axes rather than besides it?&lt;br&gt;In the &lt;a href=&quot;http://matplotlib.sourceforge.net/examples/axes_grid/demo_axes_grid.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;demo_grid_with_each_cbar&lt;/a&gt; example, how would you put a scale and label on the colorbar like in this plot:?&lt;br&gt;


&lt;img title=&quot;58dFK.png&quot; alt=&quot;58dFK.png&quot; src=&quot;http://imgur.com/58dFK.png&quot; height=&quot;135&quot; width=&quot;200&quot;&gt;&lt;br&gt;I can put a y_label on each contour plot, but since they all have depth, I&amp;#39;d like to label this only once.&lt;br&gt;Is there a way to label the entire AxesGrid (or is that subplot?)?&lt;br&gt;


&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Does label_mode=&amp;quot;1&amp;quot; do what you want?&lt;/div&gt;&lt;div&gt;You may manually make some of the labels invisible.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Please post a &amp;quot;complete&amp;quot;, but simple, script that reproduces your problem. Otherwise, it is hard to track down what is wrong.&lt;/div&gt;

&lt;div&gt;Also, please report what version of matplotlib you&amp;#39;re using. The axes_grid toolkit is relatively new and some of the feature may not work in older versions.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Regards,&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;
&lt;div&gt;
-JJ&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;Thank you very much for your help,&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;-Ryan&lt;/font&gt;&lt;div&gt;
&lt;div&gt;
&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Dec 2, 2009 at 10:21 PM, Jae-Joon Lee &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26633647&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lee.j.joon@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;


&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;This happens because, when the AxesGrid is created, gca() is set to the last axes, which is the last colobar axes.&lt;br&gt;


&lt;br&gt;If you use axes_grid toolkit, you&amp;#39;d better not use pyplot command that works on axes. Instead, use axes method directly.&lt;br&gt;


&lt;br&gt;For example, instead of  &amp;quot;pyplot.pcolor(..)&amp;quot; , use &amp;quot;ax.pcolor(..)&amp;quot;.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;&lt;br&gt;-JJ&lt;br&gt;&lt;br&gt;&lt;br&gt; &lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;On Wed, Dec 2, 2009 at 2:18 PM, Ryan Neve &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26633647&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ryan.neve@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;





&lt;/div&gt;&lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;Hello,&lt;br&gt;&lt;br&gt;I&amp;#39;m trying to use AxesGrid but I&amp;#39;m running into a problem:&lt;br&gt;


I can plot a single pcolor plot:&lt;br&gt;



&lt;img title=&quot;58dFK.png&quot; alt=&quot;58dFK.png&quot; src=&quot;http://imgur.com/58dFK.png&quot; height=&quot;135&quot; width=&quot;200&quot;&gt;&lt;br&gt;But when I try to use AxesGrid, my pcolor plot is ending up where I expect my colorbar to be.&lt;br&gt;&lt;img title=&quot;mEbTA.png&quot; alt=&quot;mEbTA.png&quot; src=&quot;http://i.imgur.com/mEbTA.png&quot; height=&quot;96&quot; width=&quot;96&quot;&gt;&lt;br&gt;






&lt;br&gt;I want to have up to 6 of these plots stacked vertically, sharing a common time axis and y (depth) scale.&lt;br&gt;&lt;br&gt;I&amp;#39;ll try to simplify my code to show what I&amp;#39;m doing:&lt;br&gt;&lt;br style=&quot;font-family:courier new,monospace&quot;&gt;






&lt;span style=&quot;font-family:courier new,monospace&quot;&gt;# I have arrays x_grid and y_grid for time and water depth.&lt;br&gt;# z_dim is a dictionary of arrays (one for each plot)&lt;br&gt;# In the plot above it has two arrays.&lt;br&gt;from matplotlib import pyplot&lt;br&gt;






nrows = len(z_dim) # Number of rows is the number of arrays &lt;br&gt;My_figure = pyplot.figure(1,(8,8))&lt;/span&gt;&lt;br style=&quot;font-family:courier new,monospace&quot;&gt;&lt;span style=&quot;font-family:courier new,monospace&quot;&gt;my_grid = AxesGrid(My_figure, 111, #Is this always 111?&lt;/span&gt;&lt;br style=&quot;font-family:courier new,monospace&quot;&gt;






&lt;span style=&quot;font-family:courier new,monospace&quot;&gt;                nrows_ncols = (nrows,1), # Always one column&lt;/span&gt;&lt;br style=&quot;font-family:courier new,monospace&quot;&gt;&lt;span style=&quot;font-family:courier new,monospace&quot;&gt;                axes_pad = 0.1,&lt;/span&gt;&lt;br style=&quot;font-family:courier new,monospace&quot;&gt;






&lt;span style=&quot;font-family:courier new,monospace&quot;&gt;                add_all=True,&lt;/span&gt;&lt;br style=&quot;font-family:courier new,monospace&quot;&gt;&lt;span style=&quot;font-family:courier new,monospace&quot;&gt;                share_all=True, # They all share the same time and depth scales&lt;/span&gt;&lt;br style=&quot;font-family:courier new,monospace&quot;&gt;






&lt;span style=&quot;font-family:courier new,monospace&quot;&gt;                label_mode = &amp;quot;L&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family:courier new,monospace&quot;&gt;&lt;span style=&quot;font-family:courier new,monospace&quot;&gt;                cbar_location=&amp;quot;right&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family:courier new,monospace&quot;&gt;






&lt;span style=&quot;font-family:courier new,monospace&quot;&gt;                cbar_mode=&amp;quot;each&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family:courier new,monospace&quot;&gt;&lt;span style=&quot;font-family:courier new,monospace&quot;&gt;                cbar_size=&amp;quot;7%&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family:courier new,monospace&quot;&gt;






&lt;span style=&quot;font-family:courier new,monospace&quot;&gt;                cbar_pad=&amp;quot;2%&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family:courier new,monospace&quot;&gt;&lt;span style=&quot;font-family:courier new,monospace&quot;&gt;                )&lt;/span&gt;&lt;br style=&quot;font-family:courier new,monospace&quot;&gt;






&lt;span style=&quot;font-family:courier new,monospace&quot;&gt;for row_no,parameter in enumerate(z_dim):&lt;/span&gt;&lt;br style=&quot;font-family:courier new,monospace&quot;&gt;&lt;span style=&quot;font-family:courier new,monospace&quot;&gt;    ax = my_grid[row_no]&lt;/span&gt;&lt;br style=&quot;font-family:courier new,monospace&quot;&gt;






&lt;span style=&quot;font-family:courier new,monospace&quot;&gt;    ax = pyplot.pcolor(x_grid,y_grid,z_dim[parameter])&lt;br&gt;pyplot.draw()&lt;br&gt;pyplot.show()&lt;/span&gt;&lt;br&gt;&lt;br&gt;I eventually want to end up with something like this matlab output (which I didn&amp;#39;t generate):&lt;br&gt;






&lt;img title=&quot;jiIaK.png&quot; alt=&quot;jiIaK.png&quot; src=&quot;http://imgur.com/jiIaK.png&quot; height=&quot;200&quot; width=&quot;200&quot;&gt;&lt;br&gt;but without the duplication of x scales.&lt;br&gt;&lt;br&gt;I&amp;#39;m new to pyplot and even after reading the documentation much of this is baffling.&lt;br&gt;





&lt;font color=&quot;#888888&quot;&gt;
&lt;br&gt;-Ryan&lt;br&gt;&lt;br&gt;
&lt;/font&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;------------------------------------------------------------------------------&lt;br&gt;
Join us December 9, 2009 for the Red Hat Virtual Experience,&lt;br&gt;
a free event focused on virtualization and cloud computing.&lt;br&gt;
Attend in-depth sessions from your desk. Your couch. Anywhere.&lt;br&gt;
&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
Matplotlib-users mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26633647&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26633647&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/AxesGrid-problem.-tp26614691p26633647.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26633134</id>
	<title>Re: Plotting curves filled with nonuniform color patch</title>
	<published>2009-12-03T12:58:56Z</published>
	<updated>2009-12-03T12:58:56Z</updated>
	<author>
		<name>Jae-Joon Lee</name>
	</author>
	<content type="html">line 1486 of _backend_agg.cpp says
&lt;br&gt;&lt;br&gt;&amp;nbsp; /* TODO: Support clip paths */
&lt;br&gt;&lt;br&gt;So, it seems that, apparently, clipping with arbitrary path has not
&lt;br&gt;been implemented yet for gouraud shading (pcolormesh will be properly
&lt;br&gt;clipped if shading is not used).
&lt;br&gt;I hope Michael pick this up some time soon.
&lt;br&gt;&lt;br&gt;Meanwhile, you may open a feature request ticket on this.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;-JJ
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Wed, Dec 2, 2009 at 5:13 PM, Tony S Yu &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26633134&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tsyu80@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Dec 2, 2009, at 3:53 PM, Tony S Yu wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I'm having hard time understanding some of the differences between functions used to plot color patches (not sure what to call them).
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I'm trying to fill a curve with a nonuniform color patch (like fill or fill_between but the color in the patch varies). I've attached code that almost does what I want; my question concerns the color patch (which is created by the call to plt.pcolor in the code below). I'd like to have nonuniform grid spacing in the color values, and also shading (i.e. interpolation of color between points). Here's what I understand:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; pcolor: allows nonuniform grid spacing, but it doesn't do shading.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; imshow: allows color shading, but requires uniform spacing
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; pcolormesh: allows color interpolation and nonuniform grid spacing
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; pcolormesh seems like the ideal candidate, but when I replace pcolor with pcolormesh (code commented out below pcolor call), the path doesn't get clipped by set_clip_path (but no errors are raised); in other words, the color shading fills the entire plot area. Is this a bug?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Is there a way of making this plot work that I've overlooked?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks!
&lt;br&gt;&amp;gt;&amp;gt; -Tony
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Nevermind, I found NonUniformImage after some digging. The working code is attached below if anyone is interested.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If anyone knows the answer, I'm still curious if the clipping behavior for pcolormesh is a bug.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; -Tony
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; #~~~~ example code
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; import numpy as np
&lt;br&gt;&amp;gt; import matplotlib.pyplot as plt
&lt;br&gt;&amp;gt; from matplotlib.image import NonUniformImage
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; def nonuniform_imshow(x, y, C, **kwargs):
&lt;br&gt;&amp;gt;    &amp;quot;&amp;quot;&amp;quot;Plot image with nonuniform pixel spacing.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;    This function is a convenience method for calling image.NonUniformImage.
&lt;br&gt;&amp;gt;    &amp;quot;&amp;quot;&amp;quot;
&lt;br&gt;&amp;gt;    ax = plt.gca()
&lt;br&gt;&amp;gt;    im = NonUniformImage(ax, **kwargs)
&lt;br&gt;&amp;gt;    im.set_data(x, y, C)
&lt;br&gt;&amp;gt;    ax.images.append(im)
&lt;br&gt;&amp;gt;    return im
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; def plot_filled_curve(x, y, c):
&lt;br&gt;&amp;gt;    &amp;quot;&amp;quot;&amp;quot;Plot curve filled with linear color gradient
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;    Parameters
&lt;br&gt;&amp;gt;    ----------
&lt;br&gt;&amp;gt;    x, y : arrays
&lt;br&gt;&amp;gt;        points describing curve
&lt;br&gt;&amp;gt;    c : array
&lt;br&gt;&amp;gt;        color values underneath curve. Must match the lengths of `x` and `y`.
&lt;br&gt;&amp;gt;    &amp;quot;&amp;quot;&amp;quot;
&lt;br&gt;&amp;gt;    # add end points so that fill extends to the x-axis
&lt;br&gt;&amp;gt;    x_closed = np.concatenate([x[:1], x, x[-1:]])
&lt;br&gt;&amp;gt;    y_closed = np.concatenate([[0], y, [0]])
&lt;br&gt;&amp;gt;    # fill between doesn't work here b/c it returns a PolyCollection, plus it
&lt;br&gt;&amp;gt;    # adds the lower half of the plot by adding a Rect with a border
&lt;br&gt;&amp;gt;    patch, = plt.fill(x_closed, y_closed, facecolor='none')
&lt;br&gt;&amp;gt;    im = nonuniform_imshow(x, [0, y.max()], np.vstack((c, c)),
&lt;br&gt;&amp;gt;                           interpolation='bilinear', cmap=plt.cm.gray)
&lt;br&gt;&amp;gt;    im.set_clip_path(patch)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; if __name__ == '__main__':
&lt;br&gt;&amp;gt;    line = np.linspace(0, 1, 6)
&lt;br&gt;&amp;gt;    x = np.hstack((line, [1, 2]))
&lt;br&gt;&amp;gt;    y = np.hstack((line**2, [1, 1]))
&lt;br&gt;&amp;gt;    c = np.hstack((line, [0, 0]))
&lt;br&gt;&amp;gt;    plot_filled_curve(x, y, c)
&lt;br&gt;&amp;gt;    plt.show()
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;&amp;gt; a free event focused on virtualization and cloud computing.
&lt;br&gt;&amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Matplotlib-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26633134&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26633134&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Plotting-curves-filled-with-nonuniform-color-patch-tp26616377p26633134.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26632853</id>
	<title>Re: AxesGrid problem.</title>
	<published>2009-12-03T12:40:08Z</published>
	<updated>2009-12-03T12:40:08Z</updated>
	<author>
		<name>RyanN-2</name>
	</author>
	<content type="html">Thank You, &lt;br&gt;I think I have a better understanding. In my figure, there are six axes, three for the plots: grid[i] and three for their colorbars: grid.cbar_axes[i].&lt;br&gt;I changed my code as you suggested and got something like:&lt;br&gt;
&lt;div style=&quot;text-align: left; margin-left: 40px;&quot;&gt;&lt;img title=&quot;UKM0g.png&quot; alt=&quot;UKM0g.png&quot; src=&quot;http://imgur.com/UKM0g.png&quot; height=&quot;281&quot; width=&quot;420&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;I tried all sorts of things, but finally, by setting &lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;aspect=False&lt;/span&gt; I got it to work. In the documentation, the table says this defaults to True and the explanation of aspect below says it defaults to False. Although I don&amp;#39;t entirely understand what is going on, I think this threw me off.&lt;br&gt;
So then I had this: &lt;br&gt;&lt;/div&gt;&lt;img title=&quot;84Kna.png&quot; alt=&quot;84Kna.png&quot; src=&quot;http://imgur.com/84Kna.png&quot; height=&quot;170&quot; width=&quot;420&quot;&gt;&lt;br&gt;... which looks much better, except that there are two sets of x and y axis
labels? This seems to have something to do with the colorbar. I&amp;#39;ve got:&lt;br&gt;
&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                    label_mode = &amp;quot;L&amp;quot;, &lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;
&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                    cbar_location=&amp;quot;right&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;
&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                    cbar_mode=&amp;quot;each&amp;quot;, &lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;
&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                    cbar_size=&amp;quot;2%&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;
&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                    cbar_pad=&amp;quot;0.5%&amp;quot;&lt;br&gt;&lt;br&gt;&lt;/span&gt;Now I&amp;#39;m trying to get scales and labels on my colorbars.&lt;br&gt;I tried:&lt;br&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;for i,parameter in enumerate(z_dim):&lt;br&gt;
    ax = my_grid[i].pcolor(x_grid,y_grid,&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;z_dim[parameter]&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;) # This is the pcolor plot&lt;br&gt;    my_grid[i].set_ylabel(&amp;#39;Depth&amp;#39;) # Correctly puts a y label on every plot.&lt;br&gt;
    cb = my_grid.cbar_axes[i].colorbar(ax) # Puts in a colorbar for this axes?s&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;    cb.set_ylabel(parameter) #It would be nice if this was on the far right next to the colorbar. I don&amp;#39;t see it anywhere. Perhaps underneath something?&lt;/span&gt;&lt;br&gt;
&lt;img title=&quot;DPkWz.png&quot; alt=&quot;DPkWz.png&quot; src=&quot;http://imgur.com/DPkWz.png&quot; height=&quot;170&quot; width=&quot;420&quot;&gt;&lt;br&gt;It looks like perhaps the colorbar axes is inside the ax axes rather than besides it?&lt;br&gt;In the &lt;a href=&quot;http://matplotlib.sourceforge.net/examples/axes_grid/demo_axes_grid.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;demo_grid_with_each_cbar&lt;/a&gt; example, how would you put a scale and label on the colorbar like in this plot:?&lt;br&gt;
&lt;img title=&quot;58dFK.png&quot; alt=&quot;58dFK.png&quot; src=&quot;http://imgur.com/58dFK.png&quot; height=&quot;135&quot; width=&quot;200&quot;&gt;&lt;br&gt;I can put a y_label on each contour plot, but since they all have depth, I&amp;#39;d like to label this only once.&lt;br&gt;Is there a way to label the entire AxesGrid (or is that subplot?)?&lt;br&gt;
&lt;br&gt;Thank you very much for your help,&lt;br&gt;&lt;br&gt;-Ryan&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Dec 2, 2009 at 10:21 PM, Jae-Joon Lee &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26632853&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lee.j.joon@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;This happens because, when the AxesGrid is created, gca() is set to the last axes, which is the last colobar axes.&lt;br&gt;
&lt;br&gt;If you use axes_grid toolkit, you&amp;#39;d better not use pyplot command that works on axes. Instead, use axes method directly.&lt;br&gt;


&lt;br&gt;For example, instead of  &amp;quot;pyplot.pcolor(..)&amp;quot; , use &amp;quot;ax.pcolor(..)&amp;quot;.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;&lt;br&gt;-JJ&lt;br&gt;&lt;br&gt;&lt;br&gt; &lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;On Wed, Dec 2, 2009 at 2:18 PM, Ryan Neve &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26632853&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ryan.neve@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;



&lt;/div&gt;&lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;Hello,&lt;br&gt;&lt;br&gt;I&amp;#39;m trying to use AxesGrid but I&amp;#39;m running into a problem:&lt;br&gt;
I can plot a single pcolor plot:&lt;br&gt;



&lt;img title=&quot;58dFK.png&quot; alt=&quot;58dFK.png&quot; src=&quot;http://imgur.com/58dFK.png&quot; height=&quot;135&quot; width=&quot;200&quot;&gt;&lt;br&gt;But when I try to use AxesGrid, my pcolor plot is ending up where I expect my colorbar to be.&lt;br&gt;&lt;img title=&quot;mEbTA.png&quot; alt=&quot;mEbTA.png&quot; src=&quot;http://i.imgur.com/mEbTA.png&quot; height=&quot;96&quot; width=&quot;96&quot;&gt;&lt;br&gt;




&lt;br&gt;I want to have up to 6 of these plots stacked vertically, sharing a common time axis and y (depth) scale.&lt;br&gt;&lt;br&gt;I&amp;#39;ll try to simplify my code to show what I&amp;#39;m doing:&lt;br&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;




&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;# I have arrays x_grid and y_grid for time and water depth.&lt;br&gt;# z_dim is a dictionary of arrays (one for each plot)&lt;br&gt;# In the plot above it has two arrays.&lt;br&gt;from matplotlib import pyplot&lt;br&gt;




nrows = len(z_dim) # Number of rows is the number of arrays &lt;br&gt;My_figure = pyplot.figure(1,(8,8))&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;my_grid = AxesGrid(My_figure, 111, #Is this always 111?&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;




&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                nrows_ncols = (nrows,1), # Always one column&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                axes_pad = 0.1,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;




&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                add_all=True,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                share_all=True, # They all share the same time and depth scales&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;




&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                label_mode = &amp;quot;L&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                cbar_location=&amp;quot;right&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;




&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                cbar_mode=&amp;quot;each&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                cbar_size=&amp;quot;7%&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;




&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                cbar_pad=&amp;quot;2%&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                )&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;




&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;for row_no,parameter in enumerate(z_dim):&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;    ax = my_grid[row_no]&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;




&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;    ax = pyplot.pcolor(x_grid,y_grid,z_dim[parameter])&lt;br&gt;pyplot.draw()&lt;br&gt;pyplot.show()&lt;/span&gt;&lt;br&gt;&lt;br&gt;I eventually want to end up with something like this matlab output (which I didn&amp;#39;t generate):&lt;br&gt;




&lt;img title=&quot;jiIaK.png&quot; alt=&quot;jiIaK.png&quot; src=&quot;http://imgur.com/jiIaK.png&quot; height=&quot;200&quot; width=&quot;200&quot;&gt;&lt;br&gt;but without the duplication of x scales.&lt;br&gt;&lt;br&gt;I&amp;#39;m new to pyplot and even after reading the documentation much of this is baffling.&lt;br&gt;



&lt;font color=&quot;#888888&quot;&gt;
&lt;br&gt;-Ryan&lt;br&gt;&lt;br&gt;
&lt;/font&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;------------------------------------------------------------------------------&lt;br&gt;
Join us December 9, 2009 for the Red Hat Virtual Experience,&lt;br&gt;
a free event focused on virtualization and cloud computing.&lt;br&gt;
Attend in-depth sessions from your desk. Your couch. Anywhere.&lt;br&gt;
&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
Matplotlib-users mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26632853&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26632853&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/AxesGrid-problem.-tp26614691p26632853.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26631538</id>
	<title>numpy loadtxt and comments</title>
	<published>2009-12-03T11:15:01Z</published>
	<updated>2009-12-03T11:15:01Z</updated>
	<author>
		<name>Peter I. Hansen</name>
	</author>
	<content type="html">Hi All
&lt;br&gt;&lt;br&gt;Not really about matplotlib, but since the load() function was removed
&lt;br&gt;it seems we have to use numpy.loadtxt in stead.
&lt;br&gt;I'm reading some datafiles that have comment line beginning with both
&lt;br&gt;'#' and '@'. Is there a way to assign two different values to the
&lt;br&gt;'comments' keyword?
&lt;br&gt;&lt;br&gt;Thanks, Peter
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26631538&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/numpy-loadtxt-and-comments-tp26631538p26631538.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26630922</id>
	<title>Re: How to display axis numbers inside the figure area</title>
	<published>2009-12-03T10:37:43Z</published>
	<updated>2009-12-03T10:37:43Z</updated>
	<author>
		<name>Matthias Michler</name>
	</author>
	<content type="html">Hi Angelica,
&lt;br&gt;&lt;br&gt;I have to admit I don't get the point of what you want to do and maybe this is 
&lt;br&gt;true for others too. I tried something (see attachement), but maybe it is 
&lt;br&gt;better if you could set up an small example script or draw a picture of what 
&lt;br&gt;you want to see finally.
&lt;br&gt;&lt;br&gt;Kind regards,
&lt;br&gt;Matthias
&lt;br&gt;&lt;br&gt;On Monday 30 November 2009 18:09:29 Pekeika wrote:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Good morning All,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am creating figures that need to overlay with maps, so disabling the box
&lt;br&gt;&amp;gt; around my figures is a must. (need no title, legend, etc...) I have my
&lt;br&gt;&amp;gt; plain figure now without surroundings but now need the axis numbers &amp;quot;on&amp;quot;
&lt;br&gt;&amp;gt; the grid inside the plot area (like latitude and longitude numbers appear
&lt;br&gt;&amp;gt; next to the grids on maps)... I cannot find a function or an argument for
&lt;br&gt;&amp;gt; the axis() or axes() functions that translates axes into the plot area...
&lt;br&gt;&amp;gt; Any ideas please?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thank you so much,
&lt;br&gt;&amp;gt; Angelica.
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26630922&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;axes_numbers.png&lt;/strong&gt; (10K) &lt;a href=&quot;http://old.nabble.com/attachment/26630922/0/axes_numbers.png&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;axes_numbers.py&lt;/strong&gt; (259 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26630922/1/axes_numbers.py&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-display-axis-numbers-inside-the-figure-area-tp26578109p26630922.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26630814</id>
	<title>Re: Cross axis arrows</title>
	<published>2009-12-03T10:30:04Z</published>
	<updated>2009-12-03T10:30:04Z</updated>
	<author>
		<name>Jae-Joon Lee</name>
	</author>
	<content type="html">You need to add the patch to the second axes.
&lt;br&gt;&lt;br&gt;patch = ConnectionPatch((.5, .5), (.7, .3), 'data', 'data',
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; axesA=ax1, axesB=ax2,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; zorder=100, arrowstyle='fancy',
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; connectionstyle='Angle3',
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mutation_scale=10)
&lt;br&gt;ax2.add_patch(patch)
&lt;br&gt;&lt;br&gt;However, this does not work right out of the box currently (which
&lt;br&gt;should &amp;nbsp;be bug).
&lt;br&gt;As a workaround, add a following line and it will work.
&lt;br&gt;&lt;br&gt;patch.set_annotation_clip(False)
&lt;br&gt;&lt;br&gt;It would be appreciated if you file a bug report for a future reference.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://sourceforge.net/tracker/?atid=560720&amp;group_id=80706&amp;func=browse&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/tracker/?atid=560720&amp;group_id=80706&amp;func=browse&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;-JJ
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Thu, Dec 3, 2009 at 9:31 AM, Stephane Raynaud
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26630814&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stephane.raynaud@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; how to make this arrow not disappear below the right plot?
&lt;br&gt;&amp;gt; Here is the code :
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------
&lt;br&gt;&amp;gt; from matplotlib.patches import *
&lt;br&gt;&amp;gt; import matplotlib.pyplot as P
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; P.figure(figsize=(5, 3))
&lt;br&gt;&amp;gt; ax1 = P.subplot(121)
&lt;br&gt;&amp;gt; P.plot([0, 1])
&lt;br&gt;&amp;gt; ax2 = P.subplot(122)
&lt;br&gt;&amp;gt; P.plot([0, 1])
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; patch = ConnectionPatch((.5, .5), (.7, .3), 'data', 'data', axesA=ax1,
&lt;br&gt;&amp;gt; axesB=ax2,
&lt;br&gt;&amp;gt;     zorder=100, arrowstyle='fancy',clip_on=False, connectionstyle='Angle3',
&lt;br&gt;&amp;gt; mutation_scale=100)
&lt;br&gt;&amp;gt; ax1.add_patch(patch)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; P.savefig('cross_arrow.png')
&lt;br&gt;&amp;gt; P.show()
&lt;br&gt;&amp;gt; ------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Stephane Raynaud
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;&amp;gt; a free event focused on virtualization and cloud computing.
&lt;br&gt;&amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Matplotlib-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26630814&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26630814&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cross-axis-arrows-tp26626874p26630814.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26630748</id>
	<title>Re: usetex=True and savefig(eps-file)</title>
	<published>2009-12-03T10:26:01Z</published>
	<updated>2009-12-03T10:26:01Z</updated>
	<author>
		<name>Matthias Michler</name>
	</author>
	<content type="html">Hi Jouni,
&lt;br&gt;&lt;br&gt;thanks again for your advice.
&lt;br&gt;&lt;br&gt;I don't think that I do have 'some setting that causes temporary files to end 
&lt;br&gt;up in the root directory&amp;quot;, because my system is more or less kubuntu (8.04) 
&lt;br&gt;out of the box.
&lt;br&gt;&lt;br&gt;But maybe you are nevertheless right, because in tmp there are ./root 
&lt;br&gt;and ./lost+found, which I am not allowed to enter.
&lt;br&gt;Finally this error is due to the behaviour of ps-backend and my TEX-path, 
&lt;br&gt;which searches in all sub-directories.
&lt;br&gt;&lt;br&gt;Thanks a lot for your time and advice to locate the root of the strange &amp;nbsp;
&lt;br&gt;behaviour. 
&lt;br&gt;&lt;br&gt;Kind regards,
&lt;br&gt;Matthias 
&lt;br&gt;&lt;br&gt;On Thursday 03 December 2009 19:04:55 Jouni K. Seppänen wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Matthias Michler &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26630748&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;MatthiasMichler@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; &amp;gt; Do you know why is happens only for &amp;nbsp;ps/eps-files?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The ps backend uses TeX in a different way than the other backends. It
&lt;br&gt;&amp;gt; uses psfrag and dvips to construct the final file.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Have you set any TeX-related environment variables or edited any
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; configuration files? What does &amp;quot;kpsepath tex&amp;quot; print?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; in my .zshrc I set
&lt;br&gt;&amp;gt; &amp;gt; TEXINPUTS=~/Texte/Styles//:.//:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It's probably the .// entry, which causes TeX to search all
&lt;br&gt;&amp;gt; subdirectories of the current directory. The ps backend does something
&lt;br&gt;&amp;gt; like
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; cd /tmp &amp;&amp; latex file.tex
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; so it should just look in subdirectories of the temporary directory, but
&lt;br&gt;&amp;gt; perhaps it somehow goes awry. Do you have some setting that causes
&lt;br&gt;&amp;gt; temporary files to end up in the root directory?
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26630748&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/usetex%3DTrue-and-savefig%28eps-file%29-tp26373179p26630748.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26630430</id>
	<title>Re: usetex=True and savefig(eps-file)</title>
	<published>2009-12-03T10:04:55Z</published>
	<updated>2009-12-03T10:04:55Z</updated>
	<author>
		<name>Jouni K. Seppänen</name>
	</author>
	<content type="html">Matthias Michler &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26630430&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;MatthiasMichler@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&lt;br&gt;&amp;gt; Do you know why is happens only for &amp;nbsp;ps/eps-files?
&lt;br&gt;&lt;br&gt;The ps backend uses TeX in a different way than the other backends. It
&lt;br&gt;uses psfrag and dvips to construct the final file.
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; Have you set any TeX-related environment variables or edited any
&lt;br&gt;&amp;gt;&amp;gt; configuration files? What does &amp;quot;kpsepath tex&amp;quot; print?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; in my .zshrc I set
&lt;br&gt;&amp;gt; TEXINPUTS=~/Texte/Styles//:.//:
&lt;br&gt;&lt;br&gt;It's probably the .// entry, which causes TeX to search all
&lt;br&gt;subdirectories of the current directory. The ps backend does something
&lt;br&gt;like
&lt;br&gt;&lt;br&gt;cd /tmp &amp;&amp; latex file.tex
&lt;br&gt;&lt;br&gt;so it should just look in subdirectories of the temporary directory, but
&lt;br&gt;perhaps it somehow goes awry. Do you have some setting that causes
&lt;br&gt;temporary files to end up in the root directory?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jouni K. Seppänen
&lt;br&gt;&lt;a href=&quot;http://www.iki.fi/jks&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.iki.fi/jks&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26630430&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/usetex%3DTrue-and-savefig%28eps-file%29-tp26373179p26630430.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26626874</id>
	<title>Cross axis arrows</title>
	<published>2009-12-03T06:31:55Z</published>
	<updated>2009-12-03T06:31:55Z</updated>
	<author>
		<name>Stephane Raynaud</name>
	</author>
	<content type="html">Hi,&lt;br&gt;&lt;br&gt;how to make this arrow not disappear below the right plot?&lt;br&gt;Here is the code :&lt;br&gt;&lt;br&gt;------------------------------------------------------------&lt;br&gt;from matplotlib.patches import *&lt;br&gt;import matplotlib.pyplot as P&lt;br&gt;
&lt;br&gt;P.figure(figsize=(5, 3))&lt;br&gt;ax1 = P.subplot(121)&lt;br&gt;P.plot([0, 1])&lt;br&gt;ax2 = P.subplot(122)&lt;br&gt;P.plot([0, 1])&lt;br&gt;&lt;br&gt;&lt;br&gt;patch = ConnectionPatch((.5, .5), (.7, .3), &amp;#39;data&amp;#39;, &amp;#39;data&amp;#39;, axesA=ax1, axesB=ax2, &lt;br&gt;
    zorder=100, arrowstyle=&amp;#39;fancy&amp;#39;,clip_on=False, connectionstyle=&amp;#39;Angle3&amp;#39;, mutation_scale=100)&lt;br&gt;ax1.add_patch(patch)&lt;br&gt;&lt;br&gt;P.savefig(&amp;#39;cross_arrow.png&amp;#39;)&lt;br&gt;P.show()&lt;br&gt;------------------------------------------------------------&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Stephane Raynaud&lt;br&gt;
&lt;br /&gt; &lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26626874&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;cross_arrow.png&lt;/strong&gt; (20K) &lt;a href=&quot;http://old.nabble.com/attachment/26626874/0/cross_arrow.png&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cross-axis-arrows-tp26626874p26626874.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26623021</id>
	<title>Re: Extending patches.Rectangle class</title>
	<published>2009-12-03T01:16:54Z</published>
	<updated>2009-12-03T01:16:54Z</updated>
	<author>
		<name>Jorge Scandaliaris-3</name>
	</author>
	<content type="html">Jae-Joon Lee &amp;lt;lee.j.joon@...&amp;gt; writes:
&lt;br&gt;&amp;lt;...&amp;gt;
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It depends on your mileage.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; However, a patch in matplotlib usually means a closed path. If you add
&lt;br&gt;&amp;gt; additional lines, you need to be careful not to mess the filling of
&lt;br&gt;&amp;gt; the rectangle.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I guess it would better to simply use separate artists for additional
&lt;br&gt;&amp;gt; lines you want. You may create a container artist for patches and
&lt;br&gt;&amp;gt; lines if you want.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -JJ
&lt;/div&gt;&lt;br&gt;Thanks, that's sounds like a better way indeed. I'll work in this direction.
&lt;br&gt;&lt;br&gt;Jorge
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26623021&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Extending-patches.Rectangle-class-tp26592613p26623021.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26622975</id>
	<title>Re: usetex=True and savefig(eps-file)</title>
	<published>2009-12-03T01:12:50Z</published>
	<updated>2009-12-03T01:12:50Z</updated>
	<author>
		<name>Matthias Michler</name>
	</author>
	<content type="html">Hi Jouni,
&lt;br&gt;&lt;br&gt;Thanks for your explaination.
&lt;br&gt;&lt;br&gt;On Wednesday 02 December 2009 17:20:37 Jouni K. Seppänen wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Matthias Michler &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26622975&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;MatthiasMichler@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; &amp;gt; ./root/article.cls.tex: Permission denied
&lt;br&gt;&amp;gt; &amp;gt; ./root/article.cls: Permission denied
&lt;br&gt;&amp;gt; &amp;gt; ./lost+found/article.cls.tex: Permission denied
&lt;br&gt;&amp;gt; &amp;gt; ./lost+found/article.cls: Permission denied
&lt;br&gt;&amp;gt; &amp;gt; ./root/article.cls.tex: Permission denied
&lt;br&gt;&amp;gt; &amp;gt; ./root/article.cls: Permission denied
&lt;br&gt;&amp;gt; &amp;gt; ./lost+found/article.cls.tex: Permission denied
&lt;br&gt;&amp;gt; &amp;gt; ./lost+found/article.cls: Permission denied
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That looks like a TeX configuration problem. I'm guessing that when TeX
&lt;br&gt;&amp;gt; encounters \documentclass{article}, it asks the path-searching library
&lt;br&gt;&amp;gt; for &amp;quot;article.cls&amp;quot;, and for some reason /root and /lost+found are
&lt;br&gt;&amp;gt; included in the path. You don't have permission as normal user to access
&lt;br&gt;&amp;gt; these directories, so the library causes error messages to be printed.
&lt;br&gt;&amp;gt; The path probably also includes the correct directories, so the search
&lt;br&gt;&amp;gt; eventually succeeds, but then article.cls wants to input size10.clo,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; causing a new round of errors:
&lt;br&gt;&amp;gt; &amp;gt; ./root/size10.clo.tex: Permission denied
&lt;br&gt;&amp;gt; &amp;gt; ./root/size10.clo: Permission denied
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (etc)
&lt;/div&gt;&lt;br&gt;Do you know why is happens only for &amp;nbsp;ps/eps-files?
&lt;br&gt;&lt;br&gt;&amp;gt; Have you set any TeX-related environment variables or edited any
&lt;br&gt;&amp;gt; configuration files? What does &amp;quot;kpsepath tex&amp;quot; print?
&lt;br&gt;&lt;br&gt;in my .zshrc I set
&lt;br&gt;TEXINPUTS=~/Texte/Styles//:.//:
&lt;br&gt;export TEXINPUTS
&lt;br&gt;&lt;br&gt;and &amp;quot;$ kpsepath tex&amp;quot; yields
&lt;br&gt;/home/michler/Texte/Styles//:.//:.:/home/michler/.texmf-config/tex/kpsewhich//:/home/michler/.texmf-var/tex/kpsewhich//:/home/michler/texmf/tex/kpsewhich//:/etc/texmf/tex/kpsewhich//:!!/var/lib/texmf/tex/kpsewhich//:!!/usr/local/share/texmf/tex/kpsewhich//:!!/usr/share/texmf/tex/kpsewhich//:!!/usr/share/texmf-texlive/tex/kpsewhich//:/home/michler/.texmf-config/tex/generic//:/home/michler/.texmf-var/tex/generic//:/home/michler/texmf/tex/generic//:/etc/texmf/tex/generic//:!!/var/lib/texmf/tex/generic//:!!/usr/local/share/texmf/tex/generic//:!!/usr/share/texmf/tex/generic//:!!/usr/share/texmf-texlive/tex/generic//:/home/michler/.texmf-config/tex///:/home/michler/.texmf-var/tex///:/home/michler/texmf/tex///:/etc/texmf/tex///:!!/var/lib/texmf/tex///:!!/usr/local/share/texmf/tex///:!!/usr/share/texmf/tex///:!!/usr/share/texmf-texlive/tex///
&lt;br&gt;&lt;br&gt;Furthermore I did (as root):
&lt;br&gt;$ cd /root &amp;nbsp; &amp;nbsp;$ cd /lost+found/ &amp;nbsp;and $ cd /tmp/
&lt;br&gt;and
&lt;br&gt;$ ls **/*tex **/*.cls
&lt;br&gt;but always got
&lt;br&gt;ls: cannot access **/*tex: No such file or directory
&lt;br&gt;ls: cannot access **/*.cls: No such file or directory
&lt;br&gt;... That means there are no tex or cls-files.
&lt;br&gt;&lt;br&gt;Do you have any idea what's wrong?
&lt;br&gt;&lt;br&gt;Kind regards,
&lt;br&gt;Matthias
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26622975&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/usetex%3DTrue-and-savefig%28eps-file%29-tp26373179p26622975.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26622855</id>
	<title>Re: mplot3d: plot_surface() and contour on grid?</title>
	<published>2009-12-03T01:01:15Z</published>
	<updated>2009-12-03T01:01:15Z</updated>
	<author>
		<name>Matthias Michler</name>
	</author>
	<content type="html">Thanks a lot!
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Matthias
&lt;br&gt;&lt;br&gt;On Wednesday 02 December 2009 17:10:54 Reinier Heeres wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Matthias,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have a similar patch lying around somewhere, and I will try to apply
&lt;br&gt;&amp;gt; it soon. I've been terribly busy lately, but I expect some nice
&lt;br&gt;&amp;gt; mplot3d enhancements in the very near future.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Reinier
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Wed, Dec 2, 2009 at 4:22 PM, Matthias Michler
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26622855&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;MatthiasMichler@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; Hi Andrew,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; do you have any idea if the patch (or a part of it) may get a part of
&lt;br&gt;&amp;gt; &amp;gt; matplotlib-svn some day?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Kind regards,
&lt;br&gt;&amp;gt; &amp;gt; Matthias
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On Friday 09 October 2009 23:25:28 Andrew Straw wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Matthias Michler wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Hello list,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; I'm not an expert in axes3d, but in case the feature which Nicolas
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; requested is not possible in an easy manner up to now, I propose an
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; additional kwarg for axes3d.Axes3D.contour. Something like *offset*.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; If offset is None the z-values of the contour lines corresponds to
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; given Z and otherwise offset is used for the z-values of the contour
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; lines. I attached a changed axes3d.py and a patch against current svn.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; The result is illustrated in the contour3d_demo.png.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Could any of the experts have a look at it and tell me if this could
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; be useful, please?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Thanks in advance for any comments.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Kind regards
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Matthias
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; On Wednesday 30 September 2009 19:22:42 Nicolas Bigaouette wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; I have a nice plot_surface() using mplot3d (see attachement).
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; I'd like to project the surface on the axis xoy, xoz and yoz with a
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; contour, similar to this figure:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://homepages.ulb.ac.be/~dgonze/INFO/matlab/fig19.jpg&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://homepages.ulb.ac.be/~dgonze/INFO/matlab/fig19.jpg&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Is it possible using matplotlib and mplot3d?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Thanx!
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Hi Matthias,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; I committed your patch to a github branch of MPL, but I'll let Reinier
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; actually commit something based on this to MPL.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://github.com/astraw/matplotlib/tree/dev/michler-3d-contourf-offsets&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://github.com/astraw/matplotlib/tree/dev/michler-3d-contourf-offsets&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; -Andrew
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26622855&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mplot3d%3A-plot_surface%28%29-and-contour-on-grid--tp25685489p26622855.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26621731</id>
	<title>Re: Output to any vector format openoffice can use</title>
	<published>2009-12-03T00:48:55Z</published>
	<updated>2009-12-03T00:48:55Z</updated>
	<author>
		<name>marcusantonius</name>
	</author>
	<content type="html">Thak you very much for pointing this out to me. I was not aware that Inkscape is able to output to .odg. Unfortunatly export into .odg works badly. I converted .svg files, and both were rendered totally incorrect. All the axes labels vanished, in a lineplot it connected the end of the line to the origin, leading to a diagonal line which should not be there, and the rasterized image included by pcolorfast was also not included. Therefore I fear that exporting into .odg is not a usable alternative. </content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Output-to-any-vector-format-openoffice-can-use-tp26589911p26621731.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26620878</id>
	<title>Re: countour plot custom labels</title>
	<published>2009-12-02T20:36:13Z</published>
	<updated>2009-12-02T20:36:13Z</updated>
	<author>
		<name>Jae-Joon Lee</name>
	</author>
	<content type="html">This would only meaningful if you set contour levels manually.
&lt;br&gt;&lt;br&gt;plt.figure()
&lt;br&gt;levels = [-1, 0, 1]
&lt;br&gt;fmt = {-1.:&amp;quot;-1&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.:&amp;quot;0&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.:&amp;quot;+1&amp;quot;}
&lt;br&gt;CS = plt.contour(X, Y, Z, levels)
&lt;br&gt;plt.clabel(CS, inline=1, fontsize=10, fmt=fmt)
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;-JJ
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Wed, Dec 2, 2009 at 6:32 AM, Momme Butenschön &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26620878&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mommebu@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; in the help for the countour plot labeling it says:
&lt;br&gt;&amp;gt;       *fmt*:
&lt;br&gt;&amp;gt;         a format string for the label. Default is '%1.3f'
&lt;br&gt;&amp;gt;         Alternatively, this can be a dictionary matching contour
&lt;br&gt;&amp;gt;         levels with arbitrary strings to use for each contour level
&lt;br&gt;&amp;gt;         (i.e., fmt[level]=string)
&lt;br&gt;&amp;gt; can somebody enlighten me how this works?
&lt;br&gt;&amp;gt; how do I connect levels to what dictionary keyword?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; thank a lot,
&lt;br&gt;&amp;gt; Momme
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;&amp;gt; a free event focused on virtualization and cloud computing.
&lt;br&gt;&amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Matplotlib-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26620878&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26620878&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/countour-plot-custom-labels-tp26607457p26620878.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26620521</id>
	<title>Re: Extending patches.Rectangle class</title>
	<published>2009-12-02T19:34:35Z</published>
	<updated>2009-12-02T19:34:35Z</updated>
	<author>
		<name>Jae-Joon Lee</name>
	</author>
	<content type="html">On Tue, Dec 1, 2009 at 8:48 AM, Jorge Scandaliaris
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26620521&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jorgesmbox-ml@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; How difficult would be to extend the Rectangle class so besides its permimeter
&lt;br&gt;&amp;gt; it draws lines showing halfs or thirds of the width and height?
&lt;br&gt;&lt;br&gt;It depends on your mileage.
&lt;br&gt;&lt;br&gt;However, a patch in matplotlib usually means a closed path. If you add
&lt;br&gt;additional lines, you need to be careful not to mess the filling of
&lt;br&gt;the rectangle.
&lt;br&gt;&lt;br&gt;I guess it would better to simply use separate artists for additional
&lt;br&gt;lines you want. You may create a container artist for patches and
&lt;br&gt;lines if you want.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;-JJ
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26620521&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Extending-patches.Rectangle-class-tp26592613p26620521.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26620436</id>
	<title>Re: AxesGrid problem.</title>
	<published>2009-12-02T19:21:43Z</published>
	<updated>2009-12-02T19:21:43Z</updated>
	<author>
		<name>Jae-Joon Lee</name>
	</author>
	<content type="html">This happens because, when the AxesGrid is created, gca() is set to the last axes, which is the last colobar axes.&lt;br&gt;&lt;br&gt;If you use axes_grid toolkit, you&amp;#39;d better not use pyplot command that works on axes. Instead, use axes method directly.&lt;br&gt;


&lt;br&gt;For example, instead of  &amp;quot;pyplot.pcolor(..)&amp;quot; , use &amp;quot;ax.pcolor(..)&amp;quot;.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;&lt;br&gt;-JJ&lt;br&gt;&lt;br&gt;&lt;br&gt; &lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Dec 2, 2009 at 2:18 PM, Ryan Neve &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26620436&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ryan.neve@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;


&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Hello,&lt;br&gt;&lt;br&gt;I&amp;#39;m trying to use AxesGrid but I&amp;#39;m running into a problem:&lt;br&gt;I can plot a single pcolor plot:&lt;br&gt;



&lt;img title=&quot;58dFK.png&quot; alt=&quot;58dFK.png&quot; src=&quot;http://imgur.com/58dFK.png&quot; height=&quot;133&quot; width=&quot;200&quot;&gt;&lt;br&gt;But when I try to use AxesGrid, my pcolor plot is ending up where I expect my colorbar to be.&lt;br&gt;&lt;img title=&quot;mEbTA.png&quot; alt=&quot;mEbTA.png&quot; src=&quot;http://i.imgur.com/mEbTA.png&quot; height=&quot;200&quot; width=&quot;200&quot;&gt;&lt;br&gt;



&lt;br&gt;I want to have up to 6 of these plots stacked vertically, sharing a common time axis and y (depth) scale.&lt;br&gt;&lt;br&gt;I&amp;#39;ll try to simplify my code to show what I&amp;#39;m doing:&lt;br&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;



&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;# I have arrays x_grid and y_grid for time and water depth.&lt;br&gt;# z_dim is a dictionary of arrays (one for each plot)&lt;br&gt;# In the plot above it has two arrays.&lt;br&gt;from matplotlib import pyplot&lt;br&gt;



nrows = len(z_dim) # Number of rows is the number of arrays &lt;br&gt;My_figure = pyplot.figure(1,(8,8))&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;my_grid = AxesGrid(My_figure, 111, #Is this always 111?&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;



&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                nrows_ncols = (nrows,1), # Always one column&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                axes_pad = 0.1,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;



&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                add_all=True,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                share_all=True, # They all share the same time and depth scales&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;



&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                label_mode = &amp;quot;L&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                cbar_location=&amp;quot;right&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;



&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                cbar_mode=&amp;quot;each&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                cbar_size=&amp;quot;7%&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;



&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                cbar_pad=&amp;quot;2%&amp;quot;,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;                )&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;



&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;for row_no,parameter in enumerate(z_dim):&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;    ax = my_grid[row_no]&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;



&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;    ax = pyplot.pcolor(x_grid,y_grid,z_dim[parameter])&lt;br&gt;pyplot.draw()&lt;br&gt;pyplot.show()&lt;/span&gt;&lt;br&gt;&lt;br&gt;I eventually want to end up with something like this matlab output (which I didn&amp;#39;t generate):&lt;br&gt;



&lt;img title=&quot;jiIaK.png&quot; alt=&quot;jiIaK.png&quot; src=&quot;http://imgur.com/jiIaK.png&quot; height=&quot;200&quot; width=&quot;200&quot;&gt;&lt;br&gt;but without the duplication of x scales.&lt;br&gt;&lt;br&gt;I&amp;#39;m new to pyplot and even after reading the documentation much of this is baffling.&lt;br&gt;


&lt;font color=&quot;#888888&quot;&gt;
&lt;br&gt;-Ryan&lt;br&gt;&lt;br&gt;
&lt;/font&gt;&lt;br&gt;------------------------------------------------------------------------------&lt;br&gt;
Join us December 9, 2009 for the Red Hat Virtual Experience,&lt;br&gt;
a free event focused on virtualization and cloud computing.&lt;br&gt;
Attend in-depth sessions from your desk. Your couch. Anywhere.&lt;br&gt;
&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
Matplotlib-users mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26620436&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Matplotlib-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26620436&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Matplotlib-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/matplotlib-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/AxesGrid-problem.-tp26614691p26620436.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26619988</id>
	<title>Re: Output to any vector format openoffice can use</title>
	<published>2009-12-02T18:17:21Z</published>
	<updated>2009-12-02T18:17:21Z</updated>
	<author>
		<name>gbollenbach</name>
	</author>
	<content type="html">Inkscape's native format is svg and it exports in .odg, which OO should be able to use. &amp;nbsp;I did a test combining a svg vector and png raster and then saving as .odg, and it wrote the file. &amp;nbsp;But I don't have OO so I can't try to import the result.
&lt;br&gt;&lt;br&gt;regards,
&lt;br&gt;Gary B
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;marcusantonius wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;I am searching a way, so that I can insert my matplotlib graphs as vector data in openoffice. I make colormaps using pcolorfast. If I save the figure as emf, the colormap inside the axes vanishes, because the normal emf backend cannot include rasterized data. Is there any way (e.g. using a different backend) which gives emf/wmf files which contain the rasterized data?
&lt;br&gt;&lt;br&gt;Is there a convertor from svg to emf which can do the trick? (I tried uniconvertor but it also looses the rasterized data). I tried to insert svg/eps/pdf files into openoffice, but the results are less than promising
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Output-to-any-vector-format-openoffice-can-use-tp26589911p26619988.html" />
</entry>

</feed>
