Re: [Matplotlib-users] ./make.py html fails

2008-06-09 Thread Ryan May
John Hunter wrote:
> 
> I posted a snapshot of the docs at:
> 
>   http://matplotlib.sourceforge.net/doc/html/index.html
> 

WOW.  I love the way sphinx docs look.  But more importantly, great work 
you guys on improving the documentation.  As long as I've been using 
matplotlib (2 1/2 years now), it's been a very powerful and 
full-featured toolkit, but the problem was knowing where to find out how 
to make it do what you want (or more often even knowing that such a 
feature existed).  The examples were (and still are) a good place to 
look, but what you guys have put together here is asthetic and very 
useful, and it puts a nice public face on all the hard work you've done.

My hat off to you. Keep it up.

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] missing lines on graph with upgrade to 0.98.0

2008-06-09 Thread Eric Firing
Bryan Fodness wrote:
> I have copied the new patches.py and axes.py.  It fixed the fill, but I 
> still have an axes instance that is not closed.

I don't understand what you mean by this--what is the problem?

>  
> x1, x2, y1, y2 = -4, 4, -4, 4
> ax1 = axes([0.0, 0.0, 1.0, 1.0], axisbg='0.95')
> ax2 = axes([0.2, 0.1, 0.6, 0.8], axisbg='w')
> ax2.fill([x1,x2,x2,x1], [y1,y1,y2,y2], fc='None', ec='r')
> xlim(x1-2,x2+2)
> ylim(y1-2,y2+2)
> 
> Do I need more than the files that I have copied?

I don't know, but in general, copying individual files from svn is very 
risky; changes might have been committed that only work when all 
affected files are updated.

I think that what you may need to do is either learn to build from svn, 
and accept that this is a bleeding edge and you will get cut now and 
then, or stick to unmodified releases, and use workarounds in your own 
code for whatever bugs and shortcomings you stumble over.

Eric

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] missing lines on graph with upgrade to 0.98.0

2008-06-09 Thread Bryan Fodness
I have copied the new patches.py and axes.py.  It fixed the fill, but I
still have an axes instance that is not closed.

x1, x2, y1, y2 = -4, 4, -4, 4
ax1 = axes([0.0, 0.0, 1.0, 1.0], axisbg='0.95')
ax2 = axes([0.2, 0.1, 0.6, 0.8], axisbg='w')
ax2.fill([x1,x2,x2,x1], [y1,y1,y2,y2], fc='None', ec='r')
xlim(x1-2,x2+2)
ylim(y1-2,y2+2)

Do I need more than the files that I have copied?
On Thu, Jun 5, 2008 at 4:19 PM, Eric Firing <[EMAIL PROTECTED]> wrote:

> Bryan,
>
> Thanks for pointing this out.  Mike D. has made a change in the svn trunk
> to restore the automatic closing of polygons made with the patches.Polygon
> constructor, which is used by the fill command.
>
> Eric
>
> Bryan Fodness wrote:
>
>> It seems like it does not connect the last point to the first point.  This
>> also happens with the matplotlib.patches Polygon.
>>   from pylab import fill, xlim, ylim, savefig
>> x1, x2, y1, y2 = -4, 4, -4, 4
>> fill([x1,x2,x2,x1], [y1,y1,y2,y2], fc='None', ec='r')
>> xlim(-5,5)
>> ylim(-5,5)
>> savefig('edge_test')
>>
>>
>> On Thu, Jun 5, 2008 at 1:18 AM, Eric Firing <[EMAIL PROTECTED] > [EMAIL PROTECTED]>> wrote:
>>
>>Bryan Fodness wrote:
>>
>>I just upgraded to 0.98.0 and recreated a few graphs.  I am
>>missing parts of the edges of a fill and polygon.  Any suggestions?
>>
>>
>>Please post an illustrative script, as simple as possible.
>>
>>Eric
>>
>>
>>
>>
>> --
>> "The game of science can accurately be described as a never-ending insult
>> to human intelligence." - João Magueijo
>>
>
>


-- 
"The game of science can accurately be described as a never-ending insult to
human intelligence." - João Magueijo
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] pstricks backend?

2008-06-09 Thread Alan G Isaac
On Mon, 9 Jun 2008, T J apparently wrote:
> I need pstricks 

Out of curiosity, what do you use in pstricks that pgf does 
not provide?

Cheers,
Alan Isaac




-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] bounding box functionality with text() function

2008-06-09 Thread Michael Hearne
I'm having a problem with the bbox keyword to the text() function.  The 
code below, for me, results in one postscript file that looks fine, but 
the PNG file has letters outside of the bounding box for most of the 
words I plot.

I'm using matplotlib '0.98pre' on Mac OS X.

import matplotlib
matplotlib.use('agg')
from pylab import *

x = array([6,7,8,9,10])
y = array([6,7,8,9,10])
fig = figure()
plot(x,y,'rx')
hold('on')
fontdict2 = {'fontweight':'light',
 'color': 'k',
 'fontsize':9}
words = ['Hi','Goodbye','What''s this','Aloha','So long, farewell']
for i in range(0,len(x)):
tx = x[i]
ty = y[i]
word = words[i]
text(tx,ty,word,fontdict2,bbox={'facecolor':'w'})

savefig('textplot.eps')
savefig('textplot.png')
close(fig)

-- 
--
Michael Hearne
[EMAIL PROTECTED]
(303) 273-8620
USGS National Earthquake Information Center
1711 Illinois St. Golden CO 80401
Senior Software Engineer
Synergetics, Inc.
--


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] pstricks backend?

2008-06-09 Thread Darren Dale
Hi T J,

On Monday 09 June 2008 04:06:32 pm T J wrote:
> Hi,
>
> I use pstricks frequently, and it has provided an alpha channel
> (provided we eventually use ps2pdf).  With matplotlib, when I save to
> eps, I lose all transparency (understandable), but I wonder if it is
> possible to export the picture as a bunch of pstricks commands, which,
> after using ps2pdf, would give transparency.
>
> Yes, I am aware of pdflatex which supports pdf, but I need pstricks
> (and I haven't yet explored pst-pdf).  Either way, a pstricks-backend
> would be quite nice! Is this feasible?

I'm sure its feasible, but probably not practical: I don't think there is 
enough demand for a pstricks backend to make it worth the development time 
and the longterm commitment to support it.

Darren

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] pstricks backend?

2008-06-09 Thread T J
Hi,

I use pstricks frequently, and it has provided an alpha channel
(provided we eventually use ps2pdf).  With matplotlib, when I save to
eps, I lose all transparency (understandable), but I wonder if it is
possible to export the picture as a bunch of pstricks commands, which,
after using ps2pdf, would give transparency.

Yes, I am aware of pdflatex which supports pdf, but I need pstricks
(and I haven't yet explored pst-pdf).  Either way, a pstricks-backend
would be quite nice! Is this feasible?

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Build matplotlib 0.98 on OSX

2008-06-09 Thread Adam Mercer
On Thu, Jun 5, 2008 at 8:50 PM, John Hunter <[EMAIL PROTECTED]> wrote:

> On the svn trunk (0.98) there is a
> bug in the apple gcc compiler with our agg extension that causes a
> compiler error if the optimization level is -O3.

Has this been reported to Apple?

Cheers

Adam

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] What is the recommended way of Installing MPL 0.9.8 on Leopard?

2008-06-09 Thread Charlie Moad
 I have had horrible luck with bdist_mpkg for the last several months.
I did poke at the setuptools code and it looks like we just won't be able to
make it happy with a universal binary.  The preferred extensions have ppc or
i386 in them depending on your arch.  I think the best way to move forward
is to just post binaries for each architecture and not have a universal
build.
 I statically compile in universal builds of libpng and freetype so
end-users don't have to worry about it.  I just build these by hand and the
process is documented here:
http://ipython.scipy.org/moin/MatplotlibOSXBuildNotes

- Charlie

On Mon, Jun 9, 2008 at 1:03 PM, Christopher Barker <[EMAIL PROTECTED]>
wrote:

> Charlie Moad wrote:
> >  I am not  having luck finding docs on this.
>
> setuptools really don't seem to be living up to their (its?) promise.
>
> Would it be hard to go back to *.mpkg binaries? We'd have to do one for
> Apple's python, and one for python.org's, but that should be pretty
> easy, at least for someone running Leopard.
>
> Or is bdist_mpkg not working for MPL anymore?
>
> Charlie, where/how did you get the Universal libs for the dependencies?
>
> -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]
>
> -
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> ___
> 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://sourceforge.net/services/buy/index.php___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] What is the recommended way of Installing MPL 0.9.8 on Leopard?

2008-06-09 Thread Christopher Barker
Charlie Moad wrote:
>  I am not  having luck finding docs on this.

setuptools really don't seem to be living up to their (its?) promise.

Would it be hard to go back to *.mpkg binaries? We'd have to do one for 
Apple's python, and one for python.org's, but that should be pretty 
easy, at least for someone running Leopard.

Or is bdist_mpkg not working for MPL anymore?

Charlie, where/how did you get the Universal libs for the dependencies?

-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]

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] ./make.py html fails

2008-06-09 Thread Michael Droettboom
Ondrej Certik wrote:
> On Mon, Jun 9, 2008 at 5:08 PM, John Hunter <[EMAIL PROTECTED]> wrote:
>   
>> On Mon, Jun 9, 2008 at 10:00 AM, Ondrej Certik <[EMAIL PROTECTED]> wrote:
>>
>> 
>>> My system wide matplotlib is 0.91.2-2. I tried to install the one from
>>> svn, but it requires numpy 1.1, which is not yet in Debian. So if it
>>> is not possible to generate the docs without numpy 1.1, I'll wait
>>> until it gets into Debian.
>>>   
>> Yes, the docs project is specifically for the 0.98 svn trunk, which
>> requires numpy 1.1
>>
>> I can post some build snapshots on the web ocassionally if people are
>> interested.
>> 
>
> Yes, I am very interested, especially I wanted to see Michael's CSS
> styles. If you could post it on the web somewhere, it'd be awesome.
>   
Honestly there's very little to my style -- it just adds thin lines 
above each class, method, function etc. to make them easier to 
separate.  Other than that, it's the stock Sphinx CSS.

http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/doc/_static/matplotlib.css?view=log

Cheers,
Mike


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] ./make.py html fails

2008-06-09 Thread Ondrej Certik
On Mon, Jun 9, 2008 at 5:41 PM, John Hunter <[EMAIL PROTECTED]> wrote:
> On Mon, Jun 9, 2008 at 10:23 AM, Ondrej Certik <[EMAIL PROTECTED]> wrote:
>
>> In the meantime, I am trying to package numpy 1.1 for Debian, but when
>> I installed it and did "import numpy", I got:
>>
>> ImportError: No module named ma
>
> Make sure you rm -rf the numpy* install dirs.  I think people have
> seen similar problems trying to install over old numpys (ditto for mpl
> 0.98)

The peculiar point is that it seems to work normally, but not when I
create the deb package, so it's probably Debian specific. I'll ask on
the numpy list if I won't figure it out myself.

>
> I posted a snapshot of the docs at:
>
>  http://matplotlib.sourceforge.net/doc/html/index.html

Thanks, looks good. Very nice docs.

Ondrej

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] ./make.py html fails

2008-06-09 Thread John Hunter
On Mon, Jun 9, 2008 at 10:23 AM, Ondrej Certik <[EMAIL PROTECTED]> wrote:

> In the meantime, I am trying to package numpy 1.1 for Debian, but when
> I installed it and did "import numpy", I got:
>
> ImportError: No module named ma

Make sure you rm -rf the numpy* install dirs.  I think people have
seen similar problems trying to install over old numpys (ditto for mpl
0.98)

I posted a snapshot of the docs at:

  http://matplotlib.sourceforge.net/doc/html/index.html

JDH

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] ./make.py html fails

2008-06-09 Thread Ondrej Certik
On Mon, Jun 9, 2008 at 5:08 PM, John Hunter <[EMAIL PROTECTED]> wrote:
> On Mon, Jun 9, 2008 at 10:00 AM, Ondrej Certik <[EMAIL PROTECTED]> wrote:
>
>> My system wide matplotlib is 0.91.2-2. I tried to install the one from
>> svn, but it requires numpy 1.1, which is not yet in Debian. So if it
>> is not possible to generate the docs without numpy 1.1, I'll wait
>> until it gets into Debian.
>
> Yes, the docs project is specifically for the 0.98 svn trunk, which
> requires numpy 1.1
>
> I can post some build snapshots on the web ocassionally if people are
> interested.

Yes, I am very interested, especially I wanted to see Michael's CSS
styles. If you could post it on the web somewhere, it'd be awesome.

In the meantime, I am trying to package numpy 1.1 for Debian, but when
I installed it and did "import numpy", I got:

ImportError: No module named ma

So now I am going to figure out what's wrong. Anyway, that's why I
prefer proven software in Debian, so that I don't have to fix such
problems to see the docs. :) I need to fix the problem at some point
though anyway, so I'll do it now.

Ondrej

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] ./make.py html fails

2008-06-09 Thread John Hunter
On Mon, Jun 9, 2008 at 10:00 AM, Ondrej Certik <[EMAIL PROTECTED]> wrote:

> My system wide matplotlib is 0.91.2-2. I tried to install the one from
> svn, but it requires numpy 1.1, which is not yet in Debian. So if it
> is not possible to generate the docs without numpy 1.1, I'll wait
> until it gets into Debian.

Yes, the docs project is specifically for the 0.98 svn trunk, which
requires numpy 1.1

I can post some build snapshots on the web ocassionally if people are
interested.

JDH

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] ./make.py html fails

2008-06-09 Thread Ondrej Certik
Hi,

I did:


$ svn co 
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib
$ cd matplotlib/doc
$ ./make.py html
making figs
building pyplot_formatstr.py
building dollar_ticks.py
building pyplot_text.py
building pyplot_two_subplots.py
building fig_x.py
building pyplot_three.py
building fig_axes_customize_simple.py
building fig_axes_labels_simple.py
building pyplot_simple.py
building pyplot_mathtext.py
all figures made
/var/lib/python-support/python2.5/pygments/plugin.py:39: UserWarning:
Module pygments was already imported from
/var/lib/python-support/python2.5/pygments/__init__.py, but
/var/lib/python-support/python2.5 is being added to sys.path
  import pkg_resources
Sphinx v0.3, building html
trying to load pickled env... not found
building [html]: targets for 24 source files that are out of date
updating environment: 24 added, 0 changed, 0 removed
reading... api/artist_api api/index api/pyplot_api reST markup error:
/home/ondra/repos/matplotlib/doc/api/pyplot_api.rst:1100: (SEVERE/4)
Unexpected section title or transition.




My system wide matplotlib is 0.91.2-2. I tried to install the one from
svn, but it requires numpy 1.1, which is not yet in Debian. So if it
is not possible to generate the docs without numpy 1.1, I'll wait
until it gets into Debian.

Thanks,
Ondrej

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] os x 10.5.3 numpy 1.10 error

2008-06-09 Thread dketch

May I asked what was installed incorrectly and how you fixed it?  I'm seeing
exactly the same error.

Thanks in advance.

-David


Gideon Simpson wrote:
> 
> Never mind.  I think this may have had to do with something else not  
> being installed correctly.  This config (numpy 1.10, apple python  
> 2.5.1, mpl 0.91.2, /usr/X11 png and freetype) works fine though.
> 
> On May 29, 2008, at 9:59 PM, Alan G Isaac wrote:
> 
>> On Thu, 29 May 2008, Gideon Simpson apparently wrote:
>>> Using apple python, numpy 1.10, I get the following error in
>>> matplotlib 0.91.2:
>>
>> I do not see this.  I have the
>> same mpl and np version,
>> and same Python version,
>> but I'm on Windows.
>>
>> fwiw,
>> 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
>> Matplotlib-users@lists.sourceforge.net
>> 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
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/os-x-10.5.3-numpy-1.10-error-tp17550020p17701593.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users