Hi,
Went looking on examples page and found there was a file name demo_image.py
http://matplotlib.sourceforge.net/examples/axes_grid/demo_image.html
However for whatever reason the source code was not downloadable (404
error), so I copied it off the html page.
I'm not sure why the
Hi
I'm using the following code for insert a scatter plot in a figure in Qt.
vmin=min(r_time[:])
vmax=max(r_time[:])
valores=np.arange(vmin,vmax+1)
a1=self.ui.axes4.scatter(r_east,r_nort,vmin=vmin,vmax=vmax,c=r_time,edgecolors=none)
I have followed these instructions to (almost ) the letter.
Only difference is that python was already installed at
/Library/Frameworks/Python.framework/Versions/2.6/bin/python
I also re-installed numpy.
Still no good with always the same problem - the absence of numpy.core.ma
Any suggestions?
Hi
I need to plot some data vs depth. In stead of giving depths as
0,-1000,-2000, I want to give the depths as 0,1000,2000 but when plotting
the data goes downwards (as if they had been negative). Can I get the
y-axis to reverse so it goes downwards and not upwards?
On Jun 24, 2010 at 04:52 PM -0400, Tim Gray wrote:
I'm updating my python install but am running into problems with
matplotlib,
as always. This time around I'd thought I'd use the .dmg installer. I've
already installed Python 2.6.5 from python.org and numpy from scipy.org.
Both of these
On Jun 24, 2010 at 09:37 PM -0700, Hana Sevcikova wrote:
I think you just need to direct the PYTHONPATH variable to the place where
matplotlib is installed. My PYTHONPATH looks like this:
On 6/25/10 8:23 AM, Christopher Brewster wrote:
I have followed these instructions to (almost ) the letter.
Only difference is that python was already installed at
/Library/Frameworks/Python.framework/Versions/2.6/bin/python
I also re-installed numpy.
Still no good with always the same
On 06/25/2010 07:41 AM, Preben Randhol wrote:
Hi
I need to plot some data vs depth. In stead of giving depths as
0,-1000,-2000, I want to give the depths as 0,1000,2000 but when plotting
the data goes downwards (as if they had been negative). Can I get the
y-axis to reverse so it goes
There's no single function to do it, but just reversing the current ylimits
manually is a one-liner. (plt is matplotlib.pyplot, here)
plt.ylim(plt.ylim()[::-1])
Hope that helps,
-Joe
On Fri, Jun 25, 2010 at 6:41 AM, Preben Randhol rand...@pvv.org wrote:
Hi
I need to plot some data vs
I tried compiling matplotlib following these directions and it failed on the
build step. Any idea what's going wrong here:
gcc-4.0 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3
-DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
I finally somehow managed to get matplotlib to compile but now when I try to
import matplotlib.pyplot I get the following error:
Traceback (most recent call last):
File stdin, line 1, in module
AttributeError: 'module' object has no attribute 'pyplot'
from matplotlib import pyplot as plot
Tim Gray wrote:
The 0.99.1.1 installer places
files in the appropriate location for python.org 2.6.5. The 0.99.3
installer places files in the appropriate location for the OS X bundled
version of python (2.6.1) that we have been warned not to use.
Well, it's not the worst thing in the
On Jun 25, 2010 at 10:01 AM -0700, Christopher Barker wrote:
Anyway, it's been common practice to build binaries for the python.org
python -- it's the way to reach the widest audience. MPL used to do this. I
suspect the latest binary is a mistake, but if not, it should be Clearly
labeled as
Bill,
Unfortunately, I don't have a solution for you. I just wanted to chime in and
say that I'm getting the same error. I'm on XP, py2.6, mpl0.99.3, np1.4.1,
sp0.8.0b1. Basemap came from the latest Windows binary on Sourceforge.
-paul
-Original Message-
From: Bill Eaton
On 6/25/10 12:21 PM, phob...@geosyntec.com wrote:
Bill,
Unfortunately, I don't have a solution for you. I just wanted to chime in and
say that I'm getting the same error. I'm on XP, py2.6, mpl0.99.3, np1.4.1,
sp0.8.0b1. Basemap came from the latest Windows binary on Sourceforge.
-paul
IIRC basemap contains Cython code, which would need to be recythonized
with the latest Cython version in order to work with numpy 1.4.1. If you
don't mind trying developer releases, use basemap 0.99.5 from
http://www.lfd.uci.edu/~gohlke/pythonlibs/#basemap, which should work
with numpy 1.4.1.
Success! (well, the import worked)
Christoph, thanks so much for the link, it is awesome! It can't be said enough
that this is an awesome project and I'm so glad and thankful that it exists.
-Original Message-
From: Christoph Gohlke [mailto:cgoh...@uci.edu]
Sent: Friday, June 25,
Ranjit,
There are a couple of possibilities. The first is that the TrueType fonts
packages weren't detected during the build, so matplotlib compiled without
it, leading to your issue. I have also seen an issue where your
~/.matplotlib/ needs to be cleaned out of font-related files. Another
Hi Ben,
Thanks for the tips. How do I check the TrueType fonts? Googling matplotlib
developer wiki doesn't turn up anything. There isn't anything in the
~/.matplotlib directory. I just went ahead and recompiled numpy and
matplotlib, and got the same error.
-Ranjit
On Fri, Jun 25, 2010 at 12:59
Sorry, it isn't a developer wiki (numpy and scipy have that...). But here
are the requirements to make sure that they are installed.
http://matplotlib.sourceforge.net/users/installing.html#build-requirements
Ben Root
On Fri, Jun 25, 2010 at 3:31 PM, Ranjit Chacko rjcha...@gmail.com wrote:
Hi
Oh, wait a minute, you are doing a Frameworks install on a Mac. I think
there are others here that might be able to comment on Mac installs.
Ben
On Fri, Jun 25, 2010 at 3:31 PM, Ranjit Chacko rjcha...@gmail.com wrote:
Hi Ben,
Thanks for the tips. How do I check the TrueType fonts? Googling
21 matches
Mail list logo