Re: [Matplotlib-users] mplot3d and plot_surface: How to 'hide' objects inside the surface

2011-05-06 Thread Alexander Dietz
Hi Benjamin, thanks for your answer - I feared you would reply as you did. I will have a look at mayavi then. Thanks Alex On Fri, May 6, 2011 at 00:24, Benjamin Root ben.r...@ou.edu wrote: On Thursday, May 5, 2011, Alexander Dietz alexanderdie...@googlemail.com wrote: Hi, I have

[Matplotlib-users] mplot3d and plot_surface: How to 'hide' objects inside the surface

2011-05-05 Thread Alexander Dietz
Hi, I have the following situation. I have been following the example to create a 3d surface, as explained here: http://matplotlib.sourceforge.net/examples/mplot3d/surface3d_demo2.html and I have altered the code slightly to plot a straight red line from the center outside of the sphere (see

Re: [Matplotlib-users] range in the colorbar

2010-10-22 Thread Alexander Dietz
Hi Eric, thanks a lot, that was exactly I was looking for... Alex On Thu, Oct 21, 2010 at 20:23, Eric Firing efir...@hawaii.edu wrote: On 10/20/2010 11:41 PM, Alexander Dietz wrote: Hi, I am generating a scatter plot with a colorbar, and want to pass on the colorbar to some function

[Matplotlib-users] range in the colorbar

2010-10-21 Thread Alexander Dietz
Hi, I am generating a scatter plot with a colorbar, and want to pass on the colorbar to some function to do something with it, like plt.scatter(px, py, c=pz, ...) cb = plt.colorbar() foo(cb) My question: How can I extract the range of the colorbar from the cb object? The colorbar extends from

Re: [Matplotlib-users] How to find out the extend of the actual image in pixels

2010-09-30 Thread Alexander Dietz
Hi, On Wed, Sep 29, 2010 at 16:00, John Hunter jdh2...@gmail.com wrote: On Wed, Sep 29, 2010 at 8:50 AM, Alexander Dietz alexander.diet...@googlemail.com wrote: print ax.transData.transform((10.0, 20.0)) [ 576. 432.] Why do you say it's wrong? Note that in mpl, (0,0) is (bottom left

[Matplotlib-users] How to find out the extend of the actual image in pixels

2010-09-29 Thread Alexander Dietz
Hi, I would like to know how to find out the extend of the actual image in a plot, in units of pixels. As example I have attached a plot which is essentially empty. The lower left corner is indicated by a red dot - what pixel position does this location have? When opening this image in e.g. kview

Re: [Matplotlib-users] How to find out the extend of the actual image in pixels

2010-09-29 Thread Alexander Dietz
Hi John, thanks for the reply, but I think your method is not working: On Wed, Sep 29, 2010 at 15:39, John Hunter jdh2...@gmail.com wrote: On Wed, Sep 29, 2010 at 4:44 AM, Alexander Dietz alexanderdie...@googlemail.com wrote: I would like to know how to find out the extend of the actual

Re: [Matplotlib-users] How to find out the extend of the actual image in pixels

2010-09-29 Thread Alexander Dietz
Hi, On Wed, Sep 29, 2010 at 16:00, John Hunter jdh2...@gmail.com wrote: On Wed, Sep 29, 2010 at 8:50 AM, Alexander Dietz alexander.diet...@googlemail.com wrote: print ax.transData.transform((10.0, 20.0)) [ 576. 432.] Why do you say it's wrong? Note that in mpl, (0,0) is (bottom left

Re: [Matplotlib-users] colorbar rescaling

2010-06-29 Thread Alexander Dietz
Hi Friedrich, thanks a lot, that was exactly what I was looking for... Alex On Mon, Jun 28, 2010 at 23:00, Friedrich Romstedt friedrichromst...@gmail.com wrote: 2010/6/28 Alexander Dietz alexanderdie...@googlemail.com: I have a plot, to which I am drawing a colorbar. The standard colorbar

[Matplotlib-users] colorbar rescaling

2010-06-29 Thread Alexander Dietz
Hi, I hope someone can answer this colorbar related question. I have a plot, to which I am drawing a colorbar. The standard colorbar ranges from the values -1 (blue) over 0 (green) to e.g. 1(red). So far so good. But now I want to change the colorbar that it shows only the colors between 0 and

[Matplotlib-users] colorbar rescaling

2010-06-28 Thread Alexander Dietz
Hi, I hope someone can answer this colorbar related question. I have a plot, to which I am drawing a colorbar. The standard colorbar ranges from the values -1 (blue) over 0 (green) to e.g. 1(red). So far so good. But now I want to change the colorbar that it shows only the colors between 0 and

[Matplotlib-users] How to create 3D plots?

2010-03-16 Thread Alexander Dietz
Hi, I would like to create 3D plots. A search revealed the following page: http://www.scipy.org/Cookbook/Matplotlib/mplot3D which explains to install matplotlib version 0.99 to use the 3D code. Unfortunately, after installingmatplotlib-0.99.1.1 (from matplotlib-0.99.1.2.tar.gz) I am not able

[Matplotlib-users] How to 'rotate' a 3D plot?

2010-03-16 Thread Alexander Dietz
Hi, I have successfully created a 3D scatter plot with mplot3d, but how can I rotate the plot around e.g. the z-axis? I do not want to use the user interface but I would like to use a command to do that. But I could not find good documentation anywhere and the commands attributed to the Axes3D

Re: [Matplotlib-users] How to 'rotate' a 3D plot?

2010-03-16 Thread Alexander Dietz
the current SVN version of MPL instead of the 0.99.1 version.  Mplot3d has some more features in the trunk, but it is still rough around the edges. -Ben -Original Message- From: Alexander Dietz [mailto:alexanderdie...@googlemail.com] Sent: Tuesday, March 16, 2010 1:25 PM To: Matplotlib

Re: [Matplotlib-users] Problems seeing a png created with matplotlib in firefox

2010-03-04 Thread Alexander Dietz
://atlas1.atlas.aei.uni-hannover.de/~dietz/Test/Subtest/ Cheers Alex On Tue, Mar 2, 2010 at 20:47, Renato Alves rjal...@igc.gulbenkian.pt wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Quoting Alexander Dietz on 03/02/2010 02:17 PM: Hi, that is very interesting. So what about

[Matplotlib-users] Problems seeing a png created with matplotlib in firefox

2010-03-02 Thread Alexander Dietz
Hi, I have trouble seeing a png image that I have created with matplotlib (0.99.1.1) in my firefox browser( 2.6) and I am not sure if it is a browser issue of a bug in matplotlib. Here are two examples of the image: This is the original image created with the script in the same directory (and

Re: [Matplotlib-users] Problems seeing a png created with matplotlib in firefox

2010-03-02 Thread Alexander Dietz
Hi, thanks for testing. So it looks like a bug in firefox from 3.5.8 - 3.6, or do you see any strange things happening in the file to create this image? Cheers Alex On Tue, Mar 2, 2010 at 14:19, Johann Rohwer j...@sun.ac.za wrote: On Tuesday 02 March 2010, Alexander Dietz wrote

Re: [Matplotlib-users] Problems seeing a png created with matplotlib in firefox

2010-03-02 Thread Alexander Dietz
...@igc.gulbenkian.pt wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Quoting Alexander Dietz on 03/02/2010 01:27 PM: Hi, thanks for testing. So it looks like a bug in firefox from 3.5.8 - 3.6, or do you see any strange things happening in the file to create this image? Tested here on firefox 3.6

[Matplotlib-users] Error: ImportError: cannot import name Int8

2007-07-31 Thread Alexander Dietz
Hi, I want to use matplotlib, version 0.87.3, on my laptop (FC5) running numpy1.0.1. I had the following settings in my matplotlibrc: numerix:numpy Then I installed matplotlib using: python setup.py build python setup.py install which all seemed to work fine. But then, trying to import pylab,

[Matplotlib-users] How to use 'arrow'?

2007-07-20 Thread Alexander Dietz
Hi, How is the syntax for the matplotlib command 'arrow'? There is not very much to take from the help (see below). An example would be nice. Thanks Alex In [46]: arrow? Type: function Base Class: type 'function' String Form:function arrow at 0xb77f8a3c Namespace:

[Matplotlib-users] numpy and matrix operations

2007-06-28 Thread Alexander Dietz
Hi, I hope this is the right place to post this question, which is related to numpy, or numeric or something else... I want to do some matrix operations, like a singular value decomposition (svd) or to calculate random number from the multivariate_normal distributions. These two functions exist

[Matplotlib-users] Problems installing matplotlib

2007-06-28 Thread Alexander Dietz
Hi, I have problems installing matplotlib 0.90.1. An error occurs when doing python setup.py build: /usr/include/features.h:150:1: warning: this is the location of the previous definition src/_ns_backend_agg.cpp: In member function `Py::Object RendererAgg::write_png(const Py::Tuple)':