Re: [matplotlib-devel] imsave function

2009-02-09 Thread Andrew Straw
Gary, this looks fine to me. Do you have commit access? If not, I'll be
happy to check it in for you.

-Andrew

Gary Ruben wrote:
> Thanks for the quick test and comments Andrew. I've made your suggested
> changes and attached a new patch.
> 
> Gary
> 
> Andrew Straw wrote:
>> Hi Gary, I have a couple comments:
>>
>> 1) No need for:
>>
>> +ax = fig.add_subplot(111)
>> +ax.set_axis_off()
>>
>> 2) It's probably best to have maximum compatibility with imshow().
>> Therefore, use vmin=None and vmax=None as keyword arguments (rather than
>> clims).
>>
>> Otherwise, I tested and it works for me.
>>
>> -Andrew
> 
> 
> 
> 
> --
> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code to
> build responsive, highly engaging applications that combine the power of local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> 
> 
> 
> 
> ___
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] imsave function

2009-02-09 Thread Gary Ruben
Hi Andrew,

I don't have commit access. If you would check it in, that would be great.

thanks for offering,
Gary

Andrew Straw wrote:
> Gary, this looks fine to me. Do you have commit access? If not, I'll be
> happy to check it in for you.
> 
> -Andrew


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] Updated (URLs) matplotlibrc files

2009-02-09 Thread Sandro Tosi
Hello,
I've updated lib/matplotlib/mpl-data/matplotlibrc to use new URLs on
matplotlib.sf.net (there's just one I'm not sure marked with '(** NOT
SURE**)').

Sadly, that file is not under SVN so I don't have a "svn diff" to
propose, but the whole updated file, here attached; if it might be
easier, here is the sed cli I used (all on a single line):

sed 
's|http://matplotlib.sourceforge.net/interactive.html|http://matplotlib.sourceforge.net/users/shell.html
\(\*\*NOT SURE\*\*\)|;
s|http://matplotlib.sourceforge.net/matplotlib.lines.html|http://matplotlib.sourceforge.net/api/artist_api.html\#module-matplotlib.lines|;
s|http://matplotlib.sourceforge.net/matplotlib.patches.html|http://matplotlib.sourceforge.net/api/artist_api.html\#module-matplotlib.patches|;
s|http://matplotlib.sourceforge.net/matplotlib.font_manager.html|http://matplotlib.sourceforge.net/api/font_manager_api.html|;
s|http://matplotlib.sourceforge.net/matplotlib.text.html|http://matplotlib.sourceforge.net/api/artist_api.html\#module-matplotlib.text|;
s|http://matplotlib.sourceforge.net/matplotlib.axes.html\#Axes|http://matplotlib.sourceforge.net/api/axes_api.html\#module-matplotlib.axes|;
s|http://matplotlib.sourceforge.net/matplotlib.axis.html\#Ticks|http://matplotlib.sourceforge.net/api/axis_api.html\#matplotlib.axis.Tick|;
s|http://matplotlib.sourceforge.net/matplotlib.figure.html\#Figure|http://matplotlib.sourceforge.net/api/figure_api.html#matplotlib.figure.Figure|'
lib/matplotlib/mpl-data/matplotlibrc

Please consider add this to the upcoming .3 release.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


matplotlibrc
Description: Binary data
--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Updated (URLs) matplotlibrc files

2009-02-09 Thread Michael Droettboom
Thanks for the patch.  I've committed this to the branch and trunk so it 
should make it into the next bugfix release.

For future reference, lib/matplotlib/mpl-data/matplotlibrc is built from 
matplotlibrc.template which is under version control, so you can always 
just send an svn diff against that if you find further errors.

Cheers,
Mike

Sandro Tosi wrote:
> Hello,
> I've updated lib/matplotlib/mpl-data/matplotlibrc to use new URLs on
> matplotlib.sf.net (there's just one I'm not sure marked with '(** NOT
> SURE**)').
>
> Sadly, that file is not under SVN so I don't have a "svn diff" to
> propose, but the whole updated file, here attached; if it might be
> easier, here is the sed cli I used (all on a single line):
>
> sed 
> 's|http://matplotlib.sourceforge.net/interactive.html|http://matplotlib.sourceforge.net/users/shell.html
> \(\*\*NOT SURE\*\*\)|;
> s|http://matplotlib.sourceforge.net/matplotlib.lines.html|http://matplotlib.sourceforge.net/api/artist_api.html\#module-matplotlib.lines|;
> s|http://matplotlib.sourceforge.net/matplotlib.patches.html|http://matplotlib.sourceforge.net/api/artist_api.html\#module-matplotlib.patches|;
> s|http://matplotlib.sourceforge.net/matplotlib.font_manager.html|http://matplotlib.sourceforge.net/api/font_manager_api.html|;
> s|http://matplotlib.sourceforge.net/matplotlib.text.html|http://matplotlib.sourceforge.net/api/artist_api.html\#module-matplotlib.text|;
> s|http://matplotlib.sourceforge.net/matplotlib.axes.html\#Axes|http://matplotlib.sourceforge.net/api/axes_api.html\#module-matplotlib.axes|;
> s|http://matplotlib.sourceforge.net/matplotlib.axis.html\#Ticks|http://matplotlib.sourceforge.net/api/axis_api.html\#matplotlib.axis.Tick|;
> s|http://matplotlib.sourceforge.net/matplotlib.figure.html\#Figure|http://matplotlib.sourceforge.net/api/figure_api.html#matplotlib.figure.Figure|'
> lib/matplotlib/mpl-data/matplotlibrc
>
> Please consider add this to the upcoming .3 release.
>
> Regards,
>   
> 
>
> --
> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code to
> build responsive, highly engaging applications that combine the power of local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> 
>
> ___
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

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


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Build Failure on Windows using Python25

2009-02-09 Thread Patrick Marsh
I just tried this fix and was able to build on Windows Vista.

-Patrick




On Fri, Feb 6, 2009 at 6:08 PM, Michael Droettboom  wrote:
> Just getting to this thread now -- I think this was introduced in my
> recent changes.  I'm used to being on platforms where this is defined,
> so I forgot that it's not always there.
>
> In this specific case "unsigned char" is probably equivalent everywhere
> we run, so we might as well just do that.  If a Windows user can verify
> that fix works, I'll fix it in SVN.
>
> Mike
>
> Michael Abshoff wrote:
>> On Fri, Feb 6, 2009 at 3:03 PM, Ryan May  wrote:
>>
>>> On Fri, Feb 6, 2009 at 4:48 PM, Andrew Straw  wrote:
>>>
 Ryan May wrote:

> On Fri, Feb 6, 2009 at 3:27 PM, Andrew Straw  > wrote:
>
> Patrick,
>
> Can you see if adding "#include " at the top of
> src/path.cpp
> will do the job?
>
> I'm not super-optimistic, though -- I think this is defined by the
> C99
> standard, which I'm not sure Microsoft supports.
>
>
> Well, we're also talking about C++ here and not C, so C99 does not
> apply.  A quick googling around seems to indicate that some of the
> open source compilers support such a type, but it not standardized by
> C++.
>
 There is no  or the type is not defined in stdint.h?

 Maybe as a workaround you could use mingw...

>>> I meant that uint8_t is not a standardized C++ type.  If that's the case,
>>> wouldn't it be better to tweak the code to use something standard rather
>>> than just use a compiler that supports the non-standard type?  Especially
>>> given that the official Python 2.5 build uses this compiler?
>>>
>>
>> Please stick with standard types.
>>
>> And MSVC 2005 and higher do have C99 support, it is just unfortunate
>> that it is not complete.
>>
>>
>>> Ryan
>>>
>>
>> Cheers,
>>
>> Michael
>>
>>
>>> --
>>> Ryan May
>>> Graduate Research Assistant
>>> School of Meteorology
>>> University of Oklahoma
>>>
>>> --
>>> Create and Deploy Rich Internet Apps outside the browser with
>>> Adobe(R)AIR(TM)
>>> software. With Adobe AIR, Ajax developers can use existing skills and code
>>> to
>>> build responsive, highly engaging applications that combine the power of
>>> local
>>> resources and data with the reach of the web. Download the Adobe AIR SDK and
>>> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
>>> ___
>>> Matplotlib-devel mailing list
>>> Matplotlib-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>>
>>>
>>>
>>
>> --
>> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
>> software. With Adobe AIR, Ajax developers can use existing skills and code to
>> build responsive, highly engaging applications that combine the power of 
>> local
>> resources and data with the reach of the web. Download the Adobe AIR SDK and
>> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
>> ___
>> Matplotlib-devel mailing list
>> Matplotlib-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>
>
>
> --
> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code to
> build responsive, highly engaging applications that combine the power of local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> ___
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>



-- 
Patrick Marsh
Graduate Research Assistant
School of Meteorology
University of Oklahoma
http://www.patricktmarsh.com

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Build Failure on Windows using Python25

2009-02-09 Thread Michael Droettboom
Thanks for the report.  I'll make the change in SVN. 

[For those planning the next bugfix release: this only affects the trunk.]

Mike

Patrick Marsh wrote:
> I just tried this fix and was able to build on Windows Vista.
>
> -Patrick
>
>
>
>
> On Fri, Feb 6, 2009 at 6:08 PM, Michael Droettboom  wrote:
>   
>> Just getting to this thread now -- I think this was introduced in my
>> recent changes.  I'm used to being on platforms where this is defined,
>> so I forgot that it's not always there.
>>
>> In this specific case "unsigned char" is probably equivalent everywhere
>> we run, so we might as well just do that.  If a Windows user can verify
>> that fix works, I'll fix it in SVN.
>>
>> Mike
>>
>> Michael Abshoff wrote:
>> 
>>> On Fri, Feb 6, 2009 at 3:03 PM, Ryan May  wrote:
>>>
>>>   
 On Fri, Feb 6, 2009 at 4:48 PM, Andrew Straw  wrote:

 
> Ryan May wrote:
>
>   
>> On Fri, Feb 6, 2009 at 3:27 PM, Andrew Straw > > wrote:
>>
>> Patrick,
>>
>> Can you see if adding "#include " at the top of
>> src/path.cpp
>> will do the job?
>>
>> I'm not super-optimistic, though -- I think this is defined by the
>> C99
>> standard, which I'm not sure Microsoft supports.
>>
>>
>> Well, we're also talking about C++ here and not C, so C99 does not
>> apply.  A quick googling around seems to indicate that some of the
>> open source compilers support such a type, but it not standardized by
>> C++.
>>
>> 
> There is no  or the type is not defined in stdint.h?
>
> Maybe as a workaround you could use mingw...
>
>   
 I meant that uint8_t is not a standardized C++ type.  If that's the case,
 wouldn't it be better to tweak the code to use something standard rather
 than just use a compiler that supports the non-standard type?  Especially
 given that the official Python 2.5 build uses this compiler?

 
>>> Please stick with standard types.
>>>
>>> And MSVC 2005 and higher do have C99 support, it is just unfortunate
>>> that it is not complete.
>>>
>>>
>>>   
 Ryan

 
>>> Cheers,
>>>
>>> Michael
>>>
>>>
>>>   
 --
 Ryan May
 Graduate Research Assistant
 School of Meteorology
 University of Oklahoma

 --
 Create and Deploy Rich Internet Apps outside the browser with
 Adobe(R)AIR(TM)
 software. With Adobe AIR, Ajax developers can use existing skills and code
 to
 build responsive, highly engaging applications that combine the power of
 local
 resources and data with the reach of the web. Download the Adobe AIR SDK 
 and
 Ajax docs to start building applications 
 today-http://p.sf.net/sfu/adobe-com
 ___
 Matplotlib-devel mailing list
 Matplotlib-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-devel



 
>>> --
>>> Create and Deploy Rich Internet Apps outside the browser with 
>>> Adobe(R)AIR(TM)
>>> software. With Adobe AIR, Ajax developers can use existing skills and code 
>>> to
>>> build responsive, highly engaging applications that combine the power of 
>>> local
>>> resources and data with the reach of the web. Download the Adobe AIR SDK and
>>> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
>>> ___
>>> Matplotlib-devel mailing list
>>> Matplotlib-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>>
>>>   
>> --
>> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
>> software. With Adobe AIR, Ajax developers can use existing skills and code to
>> build responsive, highly engaging applications that combine the power of 
>> local
>> resources and data with the reach of the web. Download the Adobe AIR SDK and
>> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
>> ___
>> Matplotlib-devel mailing list
>> Matplotlib-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>
>> 
>
>
>
>   

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


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging

[matplotlib-devel] Status of Wx backend

2009-02-09 Thread Ryan May
Hi,

What's the official status of the plain Wx backend (not WxAgg) ? I'm
noticing that the following script produces black outlines with Wx, but
should not (and does not on other backends).  I also noticed font
differences between the two.  I was curious if this is something to track
down or if plain Wx is just kind of abandoned.  I've also attached images
made with Wx and GtkAgg.

#!/usr/bin/env python
import matplotlib.mlab as mlab
from pylab import figure, show
import numpy as np

x = np.arange(0.0, 2, 0.01)
y1 = np.sin(2*np.pi*x)
y2 = 1.2*np.sin(4*np.pi*x)

# now fill between y1 and y2 where a logical condition is met.  Note
# this is different than calling
#   fill_between(x[where], y1[where],y2[where]
# because of edge effects over multiple contiguous regions.
fig = figure()
ax = fig.add_subplot(111)
#ax.plot(x, y1, x, y2, color='black')
ax.fill_between(x, y1, y2, where=y2>y1, facecolor='#8388FC',
edgecolor='None')
ax.fill_between(x, y1, y2, where=y2<=y1, facecolor='#C14F53',
edgecolor='None')
ax.set_title('fill between where')

show()

Thoughts?

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] imsave function

2009-02-09 Thread Andrew Straw
Gary Ruben wrote:
> Hi Andrew,
> 
> I don't have commit access. If you would check it in, that would be great.

Committed to the trunk in r6899... Thanks!

And, sheesh, SourceForge's SVN server is slooow today for me, although
it seems to have finally improved.

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel