[matplotlib-devel] bug: ps backend postion rounding?

2008-06-21 Thread Andrew Straw
Hi,

When I attempt to plot small-scale features with the PS backend, it
seems that there's a granularity at which things cannot be further
specified. I cannot remember encoutering this before, although I can't
be sure it's not an old phenomenon. Anyhow, the following script
illustrates the issue. With the PS backend, zooming in on the output
shows the points spread significantly away from their locations that
would be expected.

import matplotlib
matplotlib.use('PS')
import pylab
import numpy

x=numpy.linspace(-100,100,2000)
x+=0.001*numpy.random.rand(len(x))

y=numpy.sin(x/30.0)
y+=0.001*numpy.random.rand(len(x))

pylab.plot(x,y,'.',ms=0.1)
pylab.savefig('dots_dynamic_range')

With the Agg and PDF backends, this does not occur. I'm attaching a few
example images which hopefully make the issue clear. (These have all
seen a little bit of processing to reduce the file sizes.)
<><><>-
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-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] upcoming release

2008-06-21 Thread Fernando Perez
On Fri, Jun 20, 2008 at 8:22 AM, John Hunter <[EMAIL PROTECTED]> wrote:
> On Fri, Jun 20, 2008 at 10:20 AM, Charlie Moad <[EMAIL PROTECTED]> wrote:
>> Can we shoot for Sunday night?  It would be much more convenient for me at
>> least.
>
> Absolutely.  I suggested Monday because I thought it would be better,
> but Sunday works fine too.  I'll do a round of testing Sunday morning.

John, do you need anything from BIC?  I'm out for a few hours (car
troubles) and will be in and out on Saturday, but likely with a laptop
in tow.  So just call me on my cell if anything from bic is needed for
the release builds, I'll keep it turned on.

Cheers,

f

-
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-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] bug: ps backend postion rounding?

2008-06-21 Thread Darren Dale
Hi Andrew,

On Friday 20 June 2008 19:28:20 Andrew Straw wrote:
> When I attempt to plot small-scale features with the PS backend, it
> seems that there's a granularity at which things cannot be further
> specified. I cannot remember encoutering this before, although I can't
> be sure it's not an old phenomenon. Anyhow, the following script
> illustrates the issue. With the PS backend, zooming in on the output
> shows the points spread significantly away from their locations that
> would be expected.
>
> import matplotlib
> matplotlib.use('PS')
> import pylab
> import numpy
>
> x=numpy.linspace(-100,100,2000)
> x+=0.001*numpy.random.rand(len(x))
>
> y=numpy.sin(x/30.0)
> y+=0.001*numpy.random.rand(len(x))
>
> pylab.plot(x,y,'.',ms=0.1)
> pylab.savefig('dots_dynamic_range')
>
> With the Agg and PDF backends, this does not occur. I'm attaching a few
> example images which hopefully make the issue clear. (These have all
> seen a little bit of processing to reduce the file sizes.)

I see this also. I checked the text contents of the ps file, and the precision 
after the decimal place is lost. This is surprising behavior to me:

In [4]: '%1.3g %1.3g'% (429.120463939, 155.230815676)
Out[4]: '429 155'

I changed it back to "%g %g", like it is in the v91 branch.

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-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] sphinx error

2008-06-21 Thread Charlie Moad
Here's that file.
Thanks,
 Charlie

On Fri, Jun 20, 2008 at 9:25 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote:

> Have you updated Sphinx from SVN lately?  I have r64374.
>
> Sphinx should have dumped a full traceback into a tmp file (and told you
> where it is, which I don't see in your log output).  Can you send that?
>
> Cheers,
> Mike
>
> Charlie Moad wrote:
>
>> Python2.5 on OSX.5
>>
>> On Thu, Jun 19, 2008 at 11:14 PM, Michael Droettboom <[EMAIL 
>> PROTECTED]> [EMAIL PROTECTED]>> wrote:
>>
>>What version of Python are you running?  All I can think from
>>looking at the code is that something in the regex is behaving
>>differently for you than me (on Python 2.5).
>>
>>If you just want the docs to build (minus the inheritance
>>diagrams), you can put a "return []" at the top of
>>"inheritance_diagram_directive_run" in inheritance_diagram.py
>>
>>Cheers,
>>Mike
>>
>>Charles Moad wrote:
>>
>>Just jumped into the new docs to take a look and immediately
>>having  problems building.  I am hoping someone can make a
>>quick fix so I  don't have to debug.
>>
>>quaternion:doc cmoad$ ./make.py html
>>Sphinx v0.3, building html
>>trying to load pickled env... not found
>>building [html]: targets for 45 source files that are out of date
>>updating environment: 45 added, 0 changed, 0 removed
>>reading... api/artist_api Exception occurred:
>>  File "/Users/cmoad/workspace/matplotlib/doc/sphinxext/
>>inheritance_diagram.py", line 78, in _import_class_or_module
>>"Invalid class '%s' specified for inheritance diagram" % name)
>>ValueError: Invalid class 'matplotlib.patches' specified for
>> inheritance diagram
>>
>>Thanks,
>>   Charlie
>>
>>
>>  -
>>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-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
>
>


sphinx-err-zgO1PG.log
Description: Binary data
-
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-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] sphinx error

2008-06-21 Thread Michael Droettboom
Sorry, I'm stumped.

Mike

Charlie Moad wrote:
> Here's that file.
>
> Thanks,
>  Charlie
>
> On Fri, Jun 20, 2008 at 9:25 AM, Michael Droettboom <[EMAIL PROTECTED] 
> > wrote:
>
> Have you updated Sphinx from SVN lately?  I have r64374.
>
> Sphinx should have dumped a full traceback into a tmp file (and
> told you where it is, which I don't see in your log output).  Can
> you send that?
>
> Cheers,
> Mike
>
> Charlie Moad wrote:
>
> Python2.5 on OSX.5
>
> On Thu, Jun 19, 2008 at 11:14 PM, Michael Droettboom
> <[EMAIL PROTECTED] 
> >> wrote:
>
>What version of Python are you running?  All I can think from
>looking at the code is that something in the regex is behaving
>differently for you than me (on Python 2.5).
>
>If you just want the docs to build (minus the inheritance
>diagrams), you can put a "return []" at the top of
>"inheritance_diagram_directive_run" in inheritance_diagram.py
>
>Cheers,
>Mike
>
>Charles Moad wrote:
>
>Just jumped into the new docs to take a look and
> immediately
>having  problems building.  I am hoping someone can make a
>quick fix so I  don't have to debug.
>
>quaternion:doc cmoad$ ./make.py html
>Sphinx v0.3, building html
>trying to load pickled env... not found
>building [html]: targets for 45 source files that are
> out of date
>updating environment: 45 added, 0 changed, 0 removed
>reading... api/artist_api Exception occurred:
>  File "/Users/cmoad/workspace/matplotlib/doc/sphinxext/
>inheritance_diagram.py", line 78, in
> _import_class_or_module
>"Invalid class '%s' specified for inheritance
> diagram" % name)
>ValueError: Invalid class 'matplotlib.patches'
> specified for
> inheritance diagram
>
>Thanks,
>   Charlie
>
>  
>  
> -
>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-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
>
>


-
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-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] [Fwd: bug: axes limits being reset]

2008-06-21 Thread John Hunter
On Fri, Jun 20, 2008 at 6:10 PM, Andrew Straw <[EMAIL PROTECTED]> wrote:
> Hmm, I'm sending this directly to you guys... My post to MPL devel still
> seems to be in the queue somewhere...
>
> -Andrew
>
> Hi,
>
> I've encountered behavior in the svn trunk that I think is a bug.
> Namely, the axes view limits are reset to the data limits upon a UI
> event callback. In the attached test script for example, the plot
> initially displays with the correct view limits (between -10 and 10 on
> the X axis). However, when a key is pressed, the view is automatically
> (and falsely) reset to encompass the entire data limits. I believe this
> behavior has changed since 0.91.

Feature, not bug.  The keypress callback in this example calls "plot"
which engages the autoscale machinery.  If you comment out the plot
call in the keypress callback, you don't see the rescaling. If you
want to disable the autoscaling on the calls to plot and friends, you
need to set the axes property autoscale_on=False

ax1 =fig.add_subplot(2,1,1,autoscale_on=False)

-
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-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] matplotlib-0.98 Failure to Build

2008-06-21 Thread B Clowers
After downloading the source and following the instructions, I've been unable 
to build matplotlib on Ubuntu Hardy.  Any ideas?

BUILDING MATPLOTLIB
    matplotlib: 0.98.0
    python: 2.5.2 (r252:60911, Apr 21 2008, 11:12:42)  [GCC
    4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
  platform:
 linux2

REQUIRED
 DEPENDENCIES
 numpy: 1.1.0
 freetype2: 9.16.3

OPTIONAL BACKEND DEPENDENCIES
    libpng: 1.2.15beta5
   Tkinter: no
    * Using default library and include directories for
    * Tcl and Tk because a Tk window failed to
 open.
    * You may need to define DISPLAY for Tk to work so
    * that setup can determine where your libraries are
    * located. Tkinter present, but header files are not
    * found. You may need to install development
    *
 packages.
  wxPython: 2.8.7.1
    * WxAgg extension not required for wxPython >= 2.8
  Gtk+: gtk+: 2.12.9, glib: 2.16.3, pygtk: 2.12.1,
    pygobject: 2.14.1
    * Could not find Gtk+ headers in any of
    *
 '/usr/local/include', '/usr/include', '.'
    Qt: no
   Qt4: no
 Cairo: 1.4.0

OPTIONAL DATE/TIMEZONE DEPENDENCIES
  datetime: present, version unknown
  dateutil: 1.3
  pytz: 2007k

OPTIONAL USETEX DEPENDENCIES
    dvipng:
 1.9
   ghostscript: 8.61
 latex: 3.141592
   pdftops: 3.00

EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
 configobj: 4.4.0
  enthought.traits: 2.0.1b1

[Edit setup.cfg to suppress the above messages]

running build
running build_py
copying lib/matplotlib/mpl-data/matplotlibrc -> 
build/lib.linux-i686-2.5/matplotlib/mpl-data
copying lib/matplotlib/mpl-data/matplotlib.conf -> 
build/lib.linux-i686-2.5/matplotlib/mpl-data
running build_ext
building 'matplotlib.backends._backend_gdk' extension
gcc
 -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC 
-I/usr/lib/python2.5/site-packages/numpy-1.1.0-py2.5-linux-i686.egg/numpy/core/include
 -I/usr/local/include -I/usr/include -I. -I/usr/local/include -I/usr/include 
-I. -I/usr/include/python2.5 -c src/backend_gdk.c -o 
build/temp.linux-i686-2.5/src/backend_gdk.o
src/backend_gdk.c:9:25: error: pygtk/pygtk.h: No such file or directory
src/backend_gdk.c: In function ‘pixbuf_get_pixels_array’:
src/backend_gdk.c:28: error: ‘PyGObject’ undeclared (first use in this function)
src/backend_gdk.c:28: error: (Each undeclared identifier is reported only once
src/backend_gdk.c:28: error: for each function it appears in.)
src/backend_gdk.c:28: error: ‘py_pixbuf’ undeclared (first use in this function)
src/backend_gdk.c:29: error: ‘GdkPixbuf’ undeclared (first use in this function)
src/backend_gdk.c:29: error: ‘gdk_pixbuf’ undeclared (first
 use in this function)
src/backend_gdk.c:37: warning: implicit declaration of function ‘GDK_PIXBUF’
src/backend_gdk.c:43: warning: implicit declaration of function 
‘gdk_pixbuf_get_height’
src/backend_gdk.c:44: warning: implicit declaration of function 
‘gdk_pixbuf_get_width’
src/backend_gdk.c:45: warning: implicit declaration of function 
‘gdk_pixbuf_get_has_alpha’
src/backend_gdk.c:48: warning: implicit declaration of function 
‘gdk_pixbuf_get_pixels’
src/backend_gdk.c:53: warning: implicit declaration of function 
‘gdk_pixbuf_get_rowstride’
src/backend_gdk.c: In function ‘init_backend_gdk’:
src/backend_gdk.c:72: warning: implicit declaration of function ‘init_pygtk’
error: command 'gcc' failed with exit status 1





  -
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-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] upcoming release

2008-06-21 Thread John Hunter
On Fri, Jun 20, 2008 at 12:54 PM, Fernando Perez <[EMAIL PROTECTED]> wrote:

> John, do you need anything from BIC?  I'm out for a few hours (car
> troubles) and will be in and out on Saturday, but likely with a laptop
> in tow.  So just call me on my cell if anything from bic is needed for
> the release builds, I'll keep it turned on.

Nothing today -- Sunday I'll need access.  I assumed bic was up more
or less all the time unless it was being maintained.  Is this right?

Thanks for your help!
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-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] upcoming release

2008-06-21 Thread John Hunter
On Fri, Jun 20, 2008 at 1:16 PM, Fernando Perez <[EMAIL PROTECTED]> wrote:

> Yes, it's meant to be up 24/7.  The mess on Monday/Tuesday was because
> I was adding backup drives, so I needed to reboot it multiple times.
> That's done now and it should just work.  I meant more if you needed
> anything new installed for the release, or any other unusual request.
> I don' want to cause a delay for you at the last minute, because I
> really would like to see 0.98.1 in debian.

Oh I see.  No, the docs stuff is a longer term project that will have
no impact on the release.  Thanks, though.

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-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel