Re: [Matplotlib-users] import error with Basemap

2008-02-15 Thread Tim Michelsen
> Timmie: It's possible that the windows installer is missing the httplib2 
> module - I don't have access to windows right now to check.  Could you 
> try installing httplib2 and let me know if that fixes it?
Installing httplib2 solved the issue.

Has this dependancy on httplib2 been introduced in the last update?
What are the merits of this dependency?
Could it be made option?
Like that I would only need to have httplib2 if I use functions that load maps
from the web?

Kind regards and thanks for your efforts in developing basemap!

Timmie




-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Subplots from existing figures

2008-02-15 Thread Robin
Hello,

I have some functions that produce various figures. This is usually
done by calling figure(), then the plot function (eg bar). I save the
figure object and pass it out.

I would like to be able to collect several figure objects from such
functions and collect them as subplots in a single figure for easy
printing, comparison. I don't want to change the functions that create
them though, because I will also want to view them individually in the
future.

So given a load of figure objects, how can I make a new figure with
each subplot one of the existing figures? (I hope this is clear). Does
it matter if the original figure object has been closed? I'm having a
look through the help to see if I could find it but it's taking a bit
of time and I thought it's probably quite easy if your more familiar
with the object structure of matplotlib.

Thanks

Robin

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] import error with Basemap

2008-02-15 Thread Jeff Whitaker
Tim Michelsen wrote:
>> Timmie: It's possible that the windows installer is missing the httplib2 
>> module - I don't have access to windows right now to check.  Could you 
>> try installing httplib2 and let me know if that fixes it?
>> 
> Installing httplib2 solved the issue.
>
> Has this dependancy on httplib2 been introduced in the last update?
>   
Timmie:  No, it has been there for a few releases, but for some reason 
did not get included in the windows installer this time.
> What are the merits of this dependency?
> Could it be made option?
>   
If you install from source, it only installs httplib2 if you don't have 
it already.
> Like that I would only need to have httplib2 if I use functions that load maps
> from the web?
>
>   
I could do this, but it's only a single python file, so what's the big deal?
> Kind regards and thanks for your efforts in developing basemap!
>
> Timmie
>   
You're welcome.

-Jeff

-- 
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC  R/PSD1FAX   : (303)497-6449
325 BroadwayBoulder, CO, USA 80305-3328


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Best installation procedure for MacOSX

2008-02-15 Thread José Gómez-Dans
Hi!
Some colleagues are starting to use python, matplotlib et al. for data 
analysis and so on. However, they are using MacOSX computers, and neither of 
us are particularly proficient in the use of OSX. I would like to know if 
there's an easy way to install ipython, numpy, scipy and matplotlib on MacOSX  
10.4 without much hassle. Is there some "officially sanctioned" :D best way?

Cheers!
Josea

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Backend Agg - problem!

2008-02-15 Thread Alan G Isaac
On Thu, 14 Feb 2008, John Hunter apparently wrote:
> if we want the script to be robust in the presence of 
> different use directives, eg matplotlib.use('TkAgg') then 
> it is good to have the show in there. 

Got it.
So ``show`` is a no-op with irrelevant backends.

Just to repeat:
the documentation link for ``show`` is dead.

Dead link: http://matplotlib.sourceforge.net/matplotlib.pyplot.html#-show
Link location: http://matplotlib.sourceforge.net/

Thanks.
Alan




-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Best installation procedure for MacOSX

2008-02-15 Thread Barry Wark
José,

I would take a look at the Scipy Superpack (http://trichech.us/).
Alternatively, you can download and install the MacPython 2.5 for OS X
10.4 (http://www.pythonmac.org/packages/py25-fat/index.html). This
installs a separate Python framework (leaving the system python
framework unchanged). The installer will modify your path to point to
the new python2.5. You can then install
setuptools/ipython/numpy/scipy/matplotlib from source or via
EasyInstall. If you go this route, you'll probably also want the
wxPython installer from http://www.wxpython.org/download.php#binaries.
Feel free to contact me directly if you have any other questions.

Barry

On Feb 15, 2008 6:23 AM, José Gómez-Dans <[EMAIL PROTECTED]> wrote:
> Hi!
> Some colleagues are starting to use python, matplotlib et al. for data
> analysis and so on. However, they are using MacOSX computers, and neither of
> us are particularly proficient in the use of OSX. I would like to know if
> there's an easy way to install ipython, numpy, scipy and matplotlib on MacOSX
> 10.4 without much hassle. Is there some "officially sanctioned" :D best way?
>
> Cheers!
> Josea
>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> Matplotlib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Best installation procedure for MacOSX

2008-02-15 Thread Christopher Barker
Barry Wark wrote:
> I'm ramping up to start building at least scipy binaries (see recent
> post on scipy-users list). I'm just waiting for tester feedback for
> eggs built from SVN trunk. They're currently for OS X 10.5, but I will
> also build for MacPython once I'm sure everything's working.

Great, thanks!

> numpy, ipython, and matplotlib all apear to be available via
> EasyInstall, so scipy seems to be the only missing piece.

well, it's the hard one, as it requires Fortran.

Adding to my last note:

Another reason pythonmac.org/packages isn't getting the unmaintained it 
used to is the easy-install works for so many things. I think it's 
working fine for MPL now, for instance.

-Chris


-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R(206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

[EMAIL PROTECTED]

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Fail to allocate bitmap, Unable to free colormap, palette is still selected.

2008-02-15 Thread Chris Kennedy
hi Mike,
It only prints what is between the , - . I tend to think it is 
related to Tkinter.

I'm using the default GTKAgg.

I have generated over 1500 images using the simple example with no 
issue. When it is in the larger app, it fails on the 2nd or 3rd request.

I'm trying
reload(matplotlib)
matplotlib.use('TkAgg')

Are there some python flags I can use when running the script to get 
more verbose output?  I've used -v and -d and get the cleanup list, is 
that useful?

thanks

Michael Droettboom wrote:
> Can you provide the full traceback for the error?  Are there no Python 
> line numbers etc.?
>
> I don't see the string "Fail to allocate bitmap" or "Unable to free 
> colormap..." anywhere in the matplotlib source, so it's hard to say 
> where it's coming from.  I suspect they are coming from the GUI 
> framework you are using...
>
> If you put your simple example inside of a loop, does the error 
> eventually occur -- or only within the context of your app?  If the 
> latter, we'll need to somehow narrow it down to a specific setting or 
> method that causes the problem.
>
> Also, what backend are you using when it breaks?  Just Agg, or one of 
> the Gui+Agg backends?
>
> Cheers,
> Mike
>
> Chris Kennedy wrote:
>> hi,
>> I get this error when I'm generating numerous .png files using 
>> matplotlib 0.9.2 in py2.4 on WinXP
>> -
>> Fail to allocate bitmap
>>
>> This application has requested the Runtime to terminate it in an 
>> unusual way.
>> Please contact the application's support team for more information.
>> Unable to free colormap, palette is still selected.
>>
>> This application has requested the Runtime to terminate it in an 
>> unusual way.
>> Please contact the application's support team for more information.
>> -
>>
>> The code is simple:
>> import matplotlib
>> import matplotlib.pyplot as pylab
>>
>> pylabFigure = pylab.figure()
>> pylabFigure.clf()
>> pylab.rcdefaults()
>> pylab.plot(p[0::2], p[1::2], 'b-', linewidth=3)
>> pylab.title('Endpointing Plot for '+StepMillName)
>> pylab.xlabel('Mill Distance ('+m_unit+')')
>> pylab.ylabel('~ Electron response ~' )
>> pylab.grid(True)
>> pylabFigure.savefig('EPP_'+StepMillName+'.png', 
>> facecolor='lightgrey', edgecolor='w')
>> pylab.close('all')
>> pylabFigure = None
>>
>> I can put this code in a simple program and generate many images 
>> without seeing the allocate bitmap error.
>>
>> Perhaps it is colliding with something else in my main app. Is there 
>> a command that can clear, flush, or unselect the palette and/or 
>> colormap?
>>
>> I don't see the allocate error if I switch the backend to 'SVG', that 
>> has it own set of issues though: telling me it can't use, but then 
>> generating SVG files anyway.
>>
>> thanks
>>
>

-- 
Chris Kennedy  http://www.coventor.com
Sr. Product ManagerPh: 919-854-7500 x156
Cary, NC   Fx: 919-854-7501
   Mobile: 919-414-6653
   
   



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Fail to allocate bitmap, Unable to free colormap, palette is still selected.

2008-02-15 Thread Michael Droettboom
Can you provide the full traceback for the error?  Are there no Python 
line numbers etc.?

I don't see the string "Fail to allocate bitmap" or "Unable to free 
colormap..." anywhere in the matplotlib source, so it's hard to say 
where it's coming from.  I suspect they are coming from the GUI 
framework you are using...

If you put your simple example inside of a loop, does the error 
eventually occur -- or only within the context of your app?  If the 
latter, we'll need to somehow narrow it down to a specific setting or 
method that causes the problem.

Also, what backend are you using when it breaks?  Just Agg, or one of 
the Gui+Agg backends?

Cheers,
Mike

Chris Kennedy wrote:
> hi,
> I get this error when I'm generating numerous .png files using 
> matplotlib 0.9.2 in py2.4 on WinXP
> -
> Fail to allocate bitmap
> 
> This application has requested the Runtime to terminate it in an unusual 
> way.
> Please contact the application's support team for more information.
> Unable to free colormap, palette is still selected.
> 
> This application has requested the Runtime to terminate it in an unusual 
> way.
> Please contact the application's support team for more information.
> -
> 
> The code is simple:
> import matplotlib
> import matplotlib.pyplot as pylab
> 
> pylabFigure = pylab.figure()
> pylabFigure.clf()
> pylab.rcdefaults()
> pylab.plot(p[0::2], p[1::2], 'b-', linewidth=3)
> pylab.title('Endpointing Plot for '+StepMillName)
> pylab.xlabel('Mill Distance ('+m_unit+')')
> pylab.ylabel('~ Electron response ~' )
> pylab.grid(True)
> pylabFigure.savefig('EPP_'+StepMillName+'.png', 
> facecolor='lightgrey', edgecolor='w')
> pylab.close('all')
> pylabFigure = None
> 
> I can put this code in a simple program and generate many images without 
> seeing the allocate bitmap error.
> 
> Perhaps it is colliding with something else in my main app. Is there a 
> command that can clear, flush, or unselect the palette and/or colormap?
> 
> I don't see the allocate error if I switch the backend to 'SVG', that 
> has it own set of issues though: telling me it can't use, but then 
> generating SVG files anyway.
> 
> thanks
> 

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Best installation procedure for MacOSX

2008-02-15 Thread Christopher Barker

Barry Wark wrote:
> I would take a look at the Scipy Superpack (http://trichech.us/).

only support Intel and it seems only 10.5 -- darn.

scipy can now be built Universal, so hope someone will start 
distributing a Universal binary some day.

> Alternatively, you can download and install the MacPython 2.5 for OS X
> 10.4 (http://www.pythonmac.org/packages/py25-fat/index.html).

There are also a bunch of other packages there, including wxPython, and 
an older MPL.

The idea was that the pythonmac site would be the "official" place to 
get binaries of python packages for OS-X. However, we don't always get 
stuff contributed, and it can be a bit tricky for folks to build a 
complex package that meets its specs (Universal is the big issue), so 
folks build stuff like the "Superpack" that is almost there.

I don't have time to try to do it now, but PLEASE, someone build a 
recent scipy and/or MPL and put it up there!

-Chris


-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R(206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

[EMAIL PROTECTED]

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Fail to allocate bitmap, Unable to free colormap, palette is still selected.

2008-02-15 Thread Chris Kennedy
hi,
I get this error when I'm generating numerous .png files using 
matplotlib 0.9.2 in py2.4 on WinXP
-
Fail to allocate bitmap

This application has requested the Runtime to terminate it in an unusual 
way.
Please contact the application's support team for more information.
Unable to free colormap, palette is still selected.

This application has requested the Runtime to terminate it in an unusual 
way.
Please contact the application's support team for more information.
-

The code is simple:
import matplotlib
import matplotlib.pyplot as pylab

pylabFigure = pylab.figure()
pylabFigure.clf()
pylab.rcdefaults()
pylab.plot(p[0::2], p[1::2], 'b-', linewidth=3)
pylab.title('Endpointing Plot for '+StepMillName)
pylab.xlabel('Mill Distance ('+m_unit+')')
pylab.ylabel('~ Electron response ~' )
pylab.grid(True)
pylabFigure.savefig('EPP_'+StepMillName+'.png', 
facecolor='lightgrey', edgecolor='w')
pylab.close('all')
pylabFigure = None

I can put this code in a simple program and generate many images without 
seeing the allocate bitmap error.

Perhaps it is colliding with something else in my main app. Is there a 
command that can clear, flush, or unselect the palette and/or colormap?

I don't see the allocate error if I switch the backend to 'SVG', that 
has it own set of issues though: telling me it can't use, but then 
generating SVG files anyway.

thanks

-- 
Chris Kennedy  http://www.coventor.com
Sr. Product ManagerPh: 919-854-7500 x156
Cary, NC   
  
   
   



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Best installation procedure for MacOSX

2008-02-15 Thread Barry Wark
I'm ramping up to start building at least scipy binaries (see recent
post on scipy-users list). I'm just waiting for tester feedback for
eggs built from SVN trunk. They're currently for OS X 10.5, but I will
also build for MacPython once I'm sure everything's working.

numpy, ipython, and matplotlib all apear to be available via
EasyInstall, so scipy seems to be the only missing piece.

barry

On Feb 15, 2008 12:41 PM, Christopher Barker <[EMAIL PROTECTED]> wrote:
>
> Barry Wark wrote:
> > I would take a look at the Scipy Superpack (http://trichech.us/).
>
> only support Intel and it seems only 10.5 -- darn.
>
> scipy can now be built Universal, so hope someone will start
> distributing a Universal binary some day.
>
> > Alternatively, you can download and install the MacPython 2.5 for OS X
> > 10.4 (http://www.pythonmac.org/packages/py25-fat/index.html).
>
> There are also a bunch of other packages there, including wxPython, and
> an older MPL.
>
> The idea was that the pythonmac site would be the "official" place to
> get binaries of python packages for OS-X. However, we don't always get
> stuff contributed, and it can be a bit tricky for folks to build a
> complex package that meets its specs (Universal is the big issue), so
> folks build stuff like the "Superpack" that is almost there.
>
> I don't have time to try to do it now, but PLEASE, someone build a
> recent scipy and/or MPL and put it up there!
>
> -Chris
>
>
> --
> Christopher Barker, Ph.D.
> Oceanographer
>
> Emergency Response Division
> NOAA/NOS/OR&R(206) 526-6959   voice
> 7600 Sand Point Way NE   (206) 526-6329   fax
> Seattle, WA  98115   (206) 526-6317   main reception
>
> [EMAIL PROTECTED]
>
>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> Matplotlib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Best installation procedure for MacOSX

2008-02-15 Thread Barry Wark
On Feb 15, 2008 1:27 PM, Christopher Barker <[EMAIL PROTECTED]> wrote:
> Barry Wark wrote:
> > I'm ramping up to start building at least scipy binaries (see recent
> > post on scipy-users list). I'm just waiting for tester feedback for
> > eggs built from SVN trunk. They're currently for OS X 10.5, but I will
> > also build for MacPython once I'm sure everything's working.
>
> Great, thanks!
>
> > numpy, ipython, and matplotlib all apear to be available via
> > EasyInstall, so scipy seems to be the only missing piece.
>
> well, it's the hard one, as it requires Fortran.
>
> Adding to my last note:
>
> Another reason pythonmac.org/packages isn't getting the unmaintained it
> used to is the easy-install works for so many things. I think it's
> working fine for MPL now, for instance.

Right. Since Leopard comes with setuptools, it seems like the
mac-python community is being pushed towards using
setuptools/EasyInstall instead of mpkg installers. I personally think
that's a good thing.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Fail to allocate bitmap, Unable to free colormap, palette is still selected.

2008-02-15 Thread Chris Kennedy
hi Mike,

I was able to get it to work using:

reload(matplotlib)
matplotlib.use('Agg')

I'll have to beat on it some more to see if this is robust.

I saw the error message in this code:

http://search.cpan.org/src/NI-S/Tk-804.027/pTk/mTk/win/tkWinDraw.c

if(!bitmap) {
panic("Fail to allocate bitmap\n");
DeleteDC(dcMem);
TkWinReleaseDrawableDC(d, dc, &state);
return;
}

thanks

Michael Droettboom wrote:
> Can you provide the full traceback for the error?  Are there no Python 
> line numbers etc.?
>
> I don't see the string "Fail to allocate bitmap" or "Unable to free 
> colormap..." anywhere in the matplotlib source, so it's hard to say 
> where it's coming from.  I suspect they are coming from the GUI 
> framework you are using...
>
> If you put your simple example inside of a loop, does the error 
> eventually occur -- or only within the context of your app?  If the 
> latter, we'll need to somehow narrow it down to a specific setting or 
> method that causes the problem.
>
> Also, what backend are you using when it breaks?  Just Agg, or one of 
> the Gui+Agg backends?
>
> Cheers,
> Mike
>
> Chris Kennedy wrote:
>> hi,
>> I get this error when I'm generating numerous .png files using 
>> matplotlib 0.9.2 in py2.4 on WinXP
>> -
>> Fail to allocate bitmap
>>
>> This application has requested the Runtime to terminate it in an 
>> unusual way.
>> Please contact the application's support team for more information.
>> Unable to free colormap, palette is still selected.
>>
>> This application has requested the Runtime to terminate it in an 
>> unusual way.
>> Please contact the application's support team for more information.
>> -
>>
>> The code is simple:
>> import matplotlib
>> import matplotlib.pyplot as pylab
>>
>> pylabFigure = pylab.figure()
>> pylabFigure.clf()
>> pylab.rcdefaults()
>> pylab.plot(p[0::2], p[1::2], 'b-', linewidth=3)
>> pylab.title('Endpointing Plot for '+StepMillName)
>> pylab.xlabel('Mill Distance ('+m_unit+')')
>> pylab.ylabel('~ Electron response ~' )
>> pylab.grid(True)
>> pylabFigure.savefig('EPP_'+StepMillName+'.png', 
>> facecolor='lightgrey', edgecolor='w')
>> pylab.close('all')
>> pylabFigure = None
>>
>> I can put this code in a simple program and generate many images 
>> without seeing the allocate bitmap error.
>>
>> Perhaps it is colliding with something else in my main app. Is there 
>> a command that can clear, flush, or unselect the palette and/or 
>> colormap?
>>
>> I don't see the allocate error if I switch the backend to 'SVG', that 
>> has it own set of issues though: telling me it can't use, but then 
>> generating SVG files anyway.
>>
>> thanks
>>
>

-- 
Chris Kennedy  http://www.coventor.com
Sr. Product ManagerPh: 919-854-7500 x156
Cary, NC   
  
   
   



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Fail to allocate bitmap, Unable to free colormap, palette is still selected.

2008-02-15 Thread John Hunter
On Fri, Feb 15, 2008 at 4:07 PM, Chris Kennedy
<[EMAIL PROTECTED]> wrote:
> hi Mike,
>  It only prints what is between the , - . I tend to think it is
>  related to Tkinter.
>
>  I'm using the default GTKAgg.
>
>  I have generated over 1500 images using the simple example with no
>  issue. When it is in the larger app, it fails on the 2nd or 3rd request.
>
>  I'm trying
> reload(matplotlib)
> matplotlib.use('TkAgg')
>

There seems to be some deep confusion here.  You say you are using the
default GTKAgg, but then try "reload" (suggesting an interactive
session) and then call matplotlib.use('TkAgg') (which is never
appropriate when using TkAgg.  Pleas explain to us a little more
clearly what you are trying to do: are you embedding matplotlib in a
UI, if so which on?  Are you using it interactively from the python
shell (if so, which one?)

Note that if you are trying to build an app, as you suggest, ie embed
matplotlib in a GUI, you should not be using pylab at all.  You should
follow the lead of examples/embedding_in_YOURGUI*.py , eg those at
http://matplotlib.sf.net/examples

JDH

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] automatically choose line markers/styles?

2008-02-15 Thread Alan G Isaac
On Thu, 14 Feb 2008, Neal Becker apparently wrote:
> Can I get nice default line styles and markers, 
> automatically set up with matching legend?  Automatically 
> chosen?  I don't want to have to go through and manually 
> choose each marker and line style. 

Well, you have to ask for a legend, but everything else 
default looks good to me.  What is an example where you do 
not like the default behavior?

Are you trying to make a bunch of figures look alike?

Cheers,
Alan Isaac




-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users