Re: [Matplotlib-users] Ticks and Axes for 3d plotting

2011-11-08 Thread Skipper Seabold
On Tue, Nov 8, 2011 at 8:53 PM, Benjamin Root wrote: > On Tuesday, November 8, 2011, Skipper Seabold wrote: >> On Tue, Nov 8, 2011 at 6:13 PM, Benjamin Root wrote: >>> >>> On Tue, Nov 8, 2011 at 4:55 PM, Skipper Seabold >>> wrote: Hi, Two related questions. Consider this plo

Re: [Matplotlib-users] use shapefile to create a mask?

2011-11-08 Thread questions anon
thanks, will look at these options. On Fri, Nov 4, 2011 at 10:21 AM, Matt S. wrote: > I've used Pyshapelib and Polygon to do this type of analysis in the past. > Thuban may get ya what you need. > > On Thu, Nov 3, 2011 at 3:40 PM, questions anon > wrote: > >> Hi All, >> Is there a way to selec

Re: [Matplotlib-users] Ticks and Axes for 3d plotting

2011-11-08 Thread Benjamin Root
On Tuesday, November 8, 2011, Skipper Seabold wrote: > On Tue, Nov 8, 2011 at 6:13 PM, Benjamin Root wrote: >> >> On Tue, Nov 8, 2011 at 4:55 PM, Skipper Seabold wrote: >>> >>> Hi, >>> >>> Two related questions. Consider this plot >>> >>> - >>> >>> import matplotlib.pyplot as plt >>> from mp

Re: [Matplotlib-users] Ticks and Axes for 3d plotting

2011-11-08 Thread Skipper Seabold
On Tue, Nov 8, 2011 at 6:13 PM, Benjamin Root wrote: > > On Tue, Nov 8, 2011 at 4:55 PM, Skipper Seabold wrote: >> >> Hi, >> >> Two related questions. Consider this plot >> >> - >> >> import matplotlib.pyplot as plt >> from mpl_toolkits.mplot3d import Axes3D >> >> fig = plt.figure() >> ax = f

Re: [Matplotlib-users] Ticks and Axes for 3d plotting

2011-11-08 Thread Benjamin Root
On Tue, Nov 8, 2011 at 4:55 PM, Skipper Seabold wrote: > Hi, > > Two related questions. Consider this plot > > - > > import matplotlib.pyplot as plt > from mpl_toolkits.mplot3d import Axes3D > > fig = plt.figure() > ax = fig.add_subplot(111, projection='3d') > ax.plot([1,0,0,1],[0,1,0,0],[0,0

Re: [Matplotlib-users] No zdata in motion_notify_event when using a 3D plot

2011-11-08 Thread Benjamin Root
On Tue, Nov 8, 2011 at 4:50 PM, Alejandro Weinstein < alejandro.weinst...@gmail.com> wrote: > Hi: > > I am trying to use the event associated to motion_notify_event in a 3D > plot, and I found that the event does not have the zdata property. > > The following code illustrate the problem: > > #

[Matplotlib-users] Ticks and Axes for 3d plotting

2011-11-08 Thread Skipper Seabold
Hi, Two related questions. Consider this plot - import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D fig = plt.figure() ax = fig.add_subplot(111, projection='3d') ax.plot([1,0,0,1],[0,1,0,0],[0,0,1,0]) ax.set_xlim3d(0,1) ax.set_ylim3d(0,1) #ax.set_ylim3d(1,0) ax.set_zlim

[Matplotlib-users] No zdata in motion_notify_event when using a 3D plot

2011-11-08 Thread Alejandro Weinstein
Hi: I am trying to use the event associated to motion_notify_event in a 3D plot, and I found that the event does not have the zdata property. The following code illustrate the problem: ## from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt def

Re: [Matplotlib-users] Question about Basemap example

2011-11-08 Thread klo uo
OK, soon I found out that m.xmax... are dependant on projection, and I wasn't using Lambert projection For default projection result are degrees and this way meters it sems On Tue, Nov 8, 2011 at 9:13 PM, klo uo wrote: > from http://matplotlib.github.com/basemap/users/examples.html: > >

[Matplotlib-users] Question about Basemap example

2011-11-08 Thread klo uo
from http://matplotlib.github.com/basemap/users/examples.html: from mpl_toolkits.basemap import Basemap, shiftgrid, cm import numpy as np import matplotlib.pyplot as plt from netCDF4 import Dataset # read in etopo5 topography/bathymetry. etopodata =\ Datas

Re: [Matplotlib-users] documentation issue

2011-11-08 Thread Benjamin Root
On Tue, Nov 8, 2011 at 11:18 AM, Andres Ordonez < andres.felipe.ordo...@gmail.com> wrote: > I'm not sure this is the right place to report this, so if it isn't > please redirect it to the right place and let me know where the right > place is. > > > > The anim.py link > > http://matplotlib.sourcef

[Matplotlib-users] Matplotlib "show()" error Mac OS X Lion

2011-11-08 Thread Bedartha Goswami
Hi, I have recently installed Python 32/64bit from Python.org and then I proceeded to install bumpy, scipy, matplotlib and igraph on it. But the Matplotlib does not show the plots even if it opens a Figure window. Here is a summary of what I had done in my installation: - I first did a "cle

[Matplotlib-users] documentation issue

2011-11-08 Thread Andres Ordonez
I'm not sure this is the right place to report this, so if it isn't please redirect it to the right place and let me know where the right place is. The anim.py link http://matplotlib.sourceforge.net/examples/anim.py located at http://www.scipy.org/Cookbook/Matplotlib/Animations doesn't work.

Re: [Matplotlib-users] capsize on errorbars

2011-11-08 Thread Blake, James
Ben, Adjusting mew sorted it out. Somewhere along the line, I'd changed lines.markeredgewidth in my matplotlibrc to 0, so it wasn't drawing the lines. Now I know the caps are drawn as a dashed marker, it meant that the lines around it weren't being drawn (or rather they were, but with zero widt

Re: [Matplotlib-users] capsize on errorbars

2011-11-08 Thread Benjamin Root
On Tue, Nov 8, 2011 at 9:57 AM, Blake, James wrote: > Dear MPL gurus, > > I've probably failed to RTFM properly. > > I'm trying to produce error bars with horizontal lines at the top of the > vertical error bars to cap them. I've tried adjusting capsize on both > plt.bar and plt.errorbar, but have

[Matplotlib-users] capsize on errorbars

2011-11-08 Thread Blake, James
Dear MPL gurus, I've probably failed to RTFM properly. I'm trying to produce error bars with horizontal lines at the top of the vertical error bars to cap them. I've tried adjusting capsize on both plt.bar and plt.errorbar, but have not had any success. I think I had this working previously with

Re: [Matplotlib-users] Inexact drawing of points

2011-11-08 Thread Michael Droettboom
For speed in the Agg backend the markers are drawn once and then copied as rasters to all of their positions. This implies that the markers end up pixel aligned, which is the source of the error you're seeing. This does not happen in the vector backends. If you want to not get this behavior,

Re: [Matplotlib-users] How to write matrices in Sphinx using matplotlib extensions ?

2011-11-08 Thread Michael Droettboom
Unfortunately, the matplotlib mathtext renderer does not support \begin{array} (or any of the \begin{}/\end{} tags for that matter). You'll probably want to experiment with one of the other math plugins for sphinx described here: http://sphinx.pocoo.org/ext/math.html Mike On 11/08/2011 05:5

Re: [Matplotlib-users] Basemap AxesGrid

2011-11-08 Thread Yoshi Rokuko
+- Yoshi Rokuko ---+ > this works in principle, but however i can't increase > the size of the grid. > > even if i try something like: > > fig = plt.figure(1, (15,18)) > fig.subplots_adjust(left=0.01, bottom=0.01, > right=0.99, top=0.99) > g

[Matplotlib-users] How to write matrices in Sphinx using matplotlib extensions ?

2011-11-08 Thread info
Hi, first of all, thanks for matplotlib!Then, the question. After reading this   http://matplotlib.sourceforge.net/sampledoc/extensions.html   I've tried to use something like: .. math::    \left| \begin{array}{cc} x_{11} & x_{12} \\ x_{21} & x_{22} \end{array} \right|but it doesn't work. Can yo

[Matplotlib-users] Build on VS2008 - warnings

2011-11-08 Thread Mads Ipsen
Hi, Thanks to the help from Christoph, I have been able to build matplotlib-1.1.0 on both Win XP-32 and 64. I have noticed though, that quite a few warnings are produced when the source is compiled. Is this something that the core developers would like to fix, or is it a 'don't care' thing?

Re: [Matplotlib-users] Basemap AxesGrid

2011-11-08 Thread Yoshi Rokuko
+-- Benjamin Root ---+ > Why not something like this: > > fig = plt.figure() > grid = AxesGrid(...) > bm = Basemap(...) > for ax in grid : > x, y = bm(lon, lat) > ax.scatter(x, y, vmin=globalmin, vmax=globalmax) > > I do variations of this all the time. Th