[Matplotlib-users] matplotlib-0.98.5.2-py2.5-macosx10.5.mpkg install problem

2009-01-24 Thread Glenn
Hi,

I tried to install matplotlib-0.98.5.2-py2.5-macosx10.5.mpkg, but got  
the following error:

You cannot install matplotlib 0.98.5.2-r0 on this volume. matplotlib  
requires System Python 2.5 to install.

Python 2.5.1 is installed. It's my workhorse. What do I need to change  
so the package installer knows that it is present?

$ ls -l /usr/bin/python
lrwxr-xr-x  1 root  wheel  72 Nov 18  2007 /usr/bin/python -> ../../ 
System/Library/Frameworks/Python.framework/Versions/2.5/bin/python

$ ls -l /System/Library/Frameworks/Python.framework/Versions/Current
lrwxr-xr-x  1 root  wheel  3 Nov 18  2007 /System/Library/Frameworks/ 
Python.framework/Versions/Current -> 2.5


Glenn

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Basemap: fillcontinents and drawlsmask problems

2011-06-20 Thread Glenn Nelson
I am encountering the same problem with fillcontinents that has been
discussed here in the past:
https://sourceforge.net/mailarchive/message.php?msg_id=22351355
I am using Basemap 1.0 in Python 2.4.3.

fillcontinents sometimes fails and the entire map is the assigned ocean
color, aqua. Jeff Whitaker suggested that I try drawlsmask or bluemarble
methods of Basemap. Neither of these have worked for me, as explained below
...

We do not have PIL (Python Image Library) installed and it is required for
bluemarble and I don't have authority to install, so for now bluemarble
cannot be used.

Drawlsmask raises "ValueError: lons and lats must be increasing!". But they
are increasing - here is an attempt to make a global map:
m = Basemap(llcrnrlat=-85.0,llcrnrlon=0.0,urcrnrlat=85.0,urcrnrlon=360.0)
m.drawlsmask()
And this throws ValueError (so do other proper lat-long boundaries).

So back to the problem with fillcontinents ...
I have no problem on my development system - all maps are so far good. But
on our operational system, some combinations of lat-long and figure size
cause fillcontinents (or something else?) to fail.

The original code reads like this:
m = Basemap(llcrnrlat=-85.0,llcrnrlon=0.0,urcrnrlat=85.0,urcrnrlon=360.0) #
global map, it is OK
m.drawcoastlines()
m.drawcountries(linewidth=1)
m.drawmapboundary(fill_color='aqua')
m.fillcontinents(color='coral')

BTW, here are values that make it fail for me (north Atlantic region):
m = Basemap(llcrnrlat=10.0,llcrnrlon=-100.0,urcrnrlat=70.0,urcrnrlon=15.0)
and
plt.figure(figsize=(2.0,1.043478))
If I shrink lat-lon boundaries by 1 degree (11,-99)(69,14) or change the
figsize somewhat (but maintain aspect ratio), the continents will appear.

If fillcontinents is the problem, then if I comment it out, shouldn't I get
coastlines and countries (line drawings shouldn't be a problem)? I do on my
dev system, but I still get solid 'aqua' on the operational system.




--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Non-linear Regression to a Histogram

2008-05-11 Thread glenn andrews
I have been working on a similar problem related to finance.  What I 
have done is call the "R" statistical software from Python and then use 
matplotlib for graphing within Python

I use Python2.4,  the "R" statistical package, and a Python package 
called rpy which interfaces to "R" from Python

LINKs:
http://rpy.sourceforge.net/
http://www.r-project.org/

My tendency is to submit the data to "R" which does the statistical 
calculations, return the results to Python, and then use Matplotlib to 
plot.  Keep in mind that "R" also has good plotting capabilities and you 
might just go with that solution. 


   
###


Eric Firing wrote:

>You might get a good answer here (although I don't have it), but be 
>aware that your question relates to math, not plotting, so it is not 
>really a matplotlib question.  You need nonlinear least-squares.  Look 
>in scipy, and try the amazing Google.
>
>Eric
>
>Adrian Price-Whelan wrote:
>  
>
>>Hey guys -
>>
>>I'm working on a Histogram of pixel values from an astronomical image  
>>that looks like a Gaussian curve and then polynomial decay.  I'm  
>>trying to figure out a way to fit a Gaussian regression to the  
>>histogram, but can't find any documentation on this. thanks!
>>
>>-adrian
>>
>>
>
>-
>This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
>Don't miss this year's exciting event. There's still time to save $100. 
>Use priority code J8TL2D2. 
>http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>___
>Matplotlib-users mailing list
>Matplotlib-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>  
>


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Backend Control

2008-04-04 Thread Glenn H Tarbox, PhD
there's been some discussion on this, (I think).  If by backend control,
you mean greater degree of control over the event loop, there are a
number of approaches available.

For example, look through the threads at how twisted can be integrated
with ipython0... ipython1 embraces asynchronous handling at its core,
making gui interaction even more straightforward.

Recently, in ancicipation of ipython1, but still providing current
usability, I simply nail up the twisted qtreactor -
http://code.tarbox.org/qtreactor inside ipython0 and have control over
comms, gui event handling and still am able to use matplotlib...

the primary difficulty, temporary I believe, is that if pyreadline grabs
the event loop, everything hangs... so, if there is a multi-page scroll
or, if you start typing and stop before hitting return, everything
hangs...

I think one might be able to use the multi-threaded ipython approach but
I try to stay away from threading due to the difficulties it creates
with components which aren't thread safe... like twisted and many gui
support libs.

but, ipython1 progress continues and should make issues like this simply
go away

-glenn

On Fri, 2008-04-04 at 12:44 -0400, Alan G Isaac wrote:
> >> On Wed, 2 Apr 2008, Wolfgang Kerzendorf wrote:
> >>> If I plot something with pylab.plot and then 
> >>> pylab.show the first time. 
> 
> > Alan replied:
> >> http://matplotlib.sourceforge.net/faq.html#SHOW 
> >> http://matplotlib.sourceforge.net/faq.html#OO 
> 
> On Fri, 4 Apr 2008, Wolfgang Kerzendorf apparently wrote:
> > I have read these faq entries before, but they don't really resolve my 
> > issue. I want backend independent control over the plots. My question 
> > is, does that exist in matplotlib, or do I have to embed 
> > matplotlib in a backend to get more control? 
> 
> What kind of control do you mean?
> To quote from
> http://matplotlib.sourceforge.net/backends.html:
> 
>The matplotlib core graphics routines interact with
>an abstract renderer and graphics context to allow
>device independent ouput. Currently, output to pygtk,
>wxPython, Tkinter, postscript, pdf, svg, agg
>(antigrain geometry) and Cairo are supported. With
>not too much effort, you can port matplotlib to your
>favorite display. If you are interested in porting to
>one of these platforms, please contact the
>matplotlib-devel mailing list.
> 
> If you are additionally hoping for an abstraction of the
> GUI, I do not think Matplotlib offers such a thing.  Indeed, 
> I would find such an effort very surprising.  (But I'm just 
> a user.)
> 
> Maybe a very specific example of what you are doing would
> help.
> 
> Cheers,
> Alan
> 
> 
> 
> 
> -
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users