Re: [Matplotlib-users] mplot3d stays?

2010-02-25 Thread Reinier Heeres
Hi all, I'll mention again that I intend to continue supporting mplot3d, although help would be greatly appreciated. I think the z-ordering issues are in the end quite hard to tackle, especially since we can have different kinds of structures in a plot, e.g. polygons and lines (or rather:

Re: [Matplotlib-users] mplot3d stays?

2010-02-25 Thread Friedrich Romstedt
I have worked in highschool on a project Beam tracing where I had to subdivide triangles from a certain point of view with z-ordering and with such a subdivision how they are covered by the viewing beam. This means this engine you want to write already exists. See the following ascii graphics:

Re: [Matplotlib-users] Basemap interp

2010-02-25 Thread Friedrich Romstedt
Andrew, I sent this to you personally, unintentionally, and want it to be on the list too. So you have it doubled now, sorry. 2010/2/25 Andrew Charles ac1...@gmail.com: I'm trying to interpolate from one grid to another using Basemap's interp function. It seems to want the lat and lon axis of

Re: [Matplotlib-users] mplot3d stays?

2010-02-25 Thread Reinier Heeres
Hi Friedrich, Thanks for your message. On Thu, Feb 25, 2010 at 9:24 AM, Friedrich Romstedt friedrichromst...@gmail.com wrote: I have worked in highschool on a project Beam tracing where I had to subdivide triangles from a certain point of view with z-ordering and with such a subdivision how

Re: [Matplotlib-users] mplot3d stays?

2010-02-25 Thread John Hunter
On Feb 25, 2010, at 2:50 AM, Friedrich Romstedt friedrichromst...@gmail.com wrote: 2010/2/25 Reinier Heeres rein...@heeres.eu: Of course many 3D engines do this already, but the problem is always the integration. Is your engine python based and is the code (freely) available? I would

[Matplotlib-users] Cannot draw bar chart with log scale

2010-02-25 Thread afancy
Hi, I have some difficulty to use the log scale on bar chart. Could anybody help me, thanks in advace. Regards, afancy from matplotlib.font_manager import FontProperties data=((0.014, 0.512, 0.015, 0.161, 1.177, 6.793, 0.089, 1.495, 25.65, 0.014, 0.045, 0.052, 5.423), (0.529,

Re: [Matplotlib-users] mplot3d stays?

2010-02-25 Thread Friedrich Romstedt
2010/2/25 John Hunter jdh2...@gmail.com: We rely on plenty of C++ code so this isn't a problem for us. We would have to write an interface layer but it shouldn't be too difficult. The harder problem may be dealing tracking the interior vs the edges of the mesh, but certainly not

Re: [Matplotlib-users] matplotlib slow compared to gnuplot?

2010-02-25 Thread klukas
Tom Leys wrote: It looks like you are storing your source data in a python list. Matplotlib runs much faster if you store your data using a numpy array instead. I'm no expert, but it certianly sped up my graph drawing. I am trying something similar to what Mike was describing. I

Re: [Matplotlib-users] Cannot draw bar chart with log scale

2010-02-25 Thread Gökhan Sever
On Thu, Feb 25, 2010 at 8:56 AM, afancy grou...@gmail.com wrote: Hi, I have some difficulty to use the log scale on bar chart. Could anybody help me, thanks in advace. Regards, afancy from matplotlib.font_manager import FontProperties data=((0.014, 0.512, 0.015, 0.161, 1.177, 6.793,

Re: [Matplotlib-users] Cannot draw bar chart with log scale

2010-02-25 Thread Matthias Michler
On Thursday 25 February 2010 15:56:31 afancy wrote: Hi, I have some difficulty to use the log scale on bar chart. Could anybody help me, thanks in advace. Regards, afancy from matplotlib.font_manager import FontProperties data=((0.014, 0.512, 0.015, 0.161, 1.177, 6.793, 0.089,

[Matplotlib-users] contours not contained to map and simular issues

2010-02-25 Thread Mike Bauer
Howdy All, I'm hoping someone can give me a quick solution to a couple of problems. I think I'm just missing an idea or two. Problem 1: I'm creating a map using the 'llc' lambert conformal projection and pcolormesh. Here is a sampling of the source. self.m =

Re: [Matplotlib-users] mplot3d stays?

2010-02-25 Thread Eric Firing
John Hunter wrote: [...] It looks like we have enough 3D projects to justify a google summer of code student. Would those of you with an interest in mplot3d and some knowledge of the internals be interested in helping mentor a student?

[Matplotlib-users] arrows in contour lines?

2010-02-25 Thread Nico Schlömer
Hi all, I'd like to make a countour plot just like in http://matplotlib.sourceforge.net/examples/pylab_examples/contour_demo.html but instead of text at the contour lines I'd like to have arrows in the in the direction of the contour lines. Does anyone know if that's possible. Cheers, Nico

[Matplotlib-users] Column graph with variable width

2010-02-25 Thread Wai Yip Tung
I want to plat a column graph with variable width. The size of both axis have meaning. The Y-axis is the density. The X-axis is the size. Let's say it is a graph of world population by country. Say China has 1 billion people occupying an area of 1 km2. And Japan has 0.1 billion people

[Matplotlib-users] Show pixelated image using imshow

2010-02-25 Thread Sebastian Rhode
Hi, I would like to show an image using the imshow function. Thsi is quite trivial, but what I acn not figure out so far, is how to display the image without any interpolation. For my application it is useful to really see the individaul pixel and the borders between them. Setting

[Matplotlib-users] Cannot change the fontsize in table.

2010-02-25 Thread afancy
Hi, I want to generate a graph with line, and table at the bottom. However, I found that the fontsize is very small and it is unchangeable. Could anybody help me? thanks Regards afancy fig=figure() ax=fig.add_subplot(111) data=( (0.529, 0.612, 0.855, 0.178, 1.432, 6.43, 41.311,

Re: [Matplotlib-users] Show pixelated image using imshow

2010-02-25 Thread Eric Firing
Sebastian Rhode wrote: Hi, I would like to show an image using the imshow function. Thsi is quite trivial, but what I acn not figure out so far, is how to display the image without any interpolation. For my application it is useful to really see the individaul pixel and the borders

Re: [Matplotlib-users] contours not contained to map and simular issues

2010-02-25 Thread Jeff Whitaker
Mike Bauer wrote: Jeff, Attached you'll find an example and sample data. Sample output is here: http://gallery.me.com/ohtinsel#100149 Below you'll also find an old email about the project that you've answered before (might help you understand what I'm doing). Thank you so much. This is a

Re: [Matplotlib-users] mplot3d stays?

2010-02-25 Thread Friedrich Romstedt
2010/2/25 Eric Firing efir...@hawaii.edu: Is it time for some re-thinking of the approach to 3-D?  I am a bystander, but I have the uneasy sense that trying to turn mplot3d into a first-class 3-D plotting tool may be a misapplication of effort. Might the effort be more productive if applied to

Re: [Matplotlib-users] Error build from SVN on Windows XP

2010-02-25 Thread Ben Axelrod
I am getting the same error. Here is my console output: C:\Projects\matplotlibpython setup.py build basedirlist is: ['win32_static'] BUILDING MATPLOTLIB matplotlib: 1.0.svn python: 2.6.4

Re: [Matplotlib-users] Embedding matplotlib in Tkinter Applications

2010-02-25 Thread Friedrich Romstedt
Ok, it's rereleased now under MIT, github.com/friedrichromstedt/diagram_cl . I'm having somewhat trouble accessing my web server at the moment, so please find it on github. The docu on www.friedrichromstedt.org (see github link) is a bit outdated, but only with respect to the double-right click

Re: [Matplotlib-users] Error build from SVN on Windows XP

2010-02-25 Thread Christoph Gohlke
You need Visual Studio 2008 (MSVC9) to compile extensions for Python 2.6 on Windows. The Express edition should work http://www.microsoft.com/express/Downloads/#2008-Visual-CPP. Christoph On 2/25/2010 3:16 PM, Ben Axelrod wrote: I am getting the same error. Here is my console output:

Re: [Matplotlib-users] Basemap interp

2010-02-25 Thread Andrew Charles
On Thu, Feb 25, 2010 at 7:26 PM, Friedrich Romstedt friedrichromst...@gmail.com wrote: 2010/2/25 Andrew Charles ac1...@gmail.com: I'm trying to interpolate from one grid to another using Basemap's interp function. It seems to want the lat and lon axis of the new grid to have the same shape:

[Matplotlib-users] Cursor?

2010-02-25 Thread David Arnold
All, I tried this code from: http://matplotlib.sourceforge.net/examples/widgets/cursor.py from matplotlib.widgets import Cursor import pylab fig = pylab.figure(figsize=(8,6)) ax = fig.add_axes([0.075, 0.25, 0.9, 0.725], axisbg='#CC') #ax = fig.add_subplot(111, axisbg='#CC') canvas =

Re: [Matplotlib-users] mplot3d stays?

2010-02-25 Thread Gael Varoquaux
On Fri, Feb 26, 2010 at 12:16:40AM +0100, Friedrich Romstedt wrote: 2010/2/25 Eric Firing efir...@hawaii.edu: Is it time for some re-thinking of the approach to 3-D?  I am a bystander, but I have the uneasy sense that trying to turn mplot3d into a first-class 3-D plotting tool may be a

Re: [Matplotlib-users] Basemap interp

2010-02-25 Thread Friedrich Romstedt
2010/2/26 Andrew Charles ac1...@gmail.com: Aye, now that I read the docstring with a rested pair of eyes it's clear that xout and yout are meshgrids (rank 2 arrays). Thanks, problem solved. For convenience, I recently heard about numpy.meshgrid, which does the job for you. See its __doc__,