Re: [Matplotlib-users] iregular data set

2006-07-24 Thread Rodrigues, Joseph
Thank you very much, you are a lifesaver.  I took your advice and found
a working example on the internet
http://www.scipy.org/Cookbook/Matplotlib/Plotting_values_with_masked_arr
ays (saves an image as png when run)

Made some minor modifications and it worked perfectly.

Thank you very much.

Joseph

-Original Message-
From: Richard Albright [mailto:[EMAIL PROTECTED] 
Sent: Sunday, July 23, 2006 12:46 PM
To: Rodrigues, Joseph
Cc: matplotlib-users@lists.sourceforge.net
Subject: Re: [Matplotlib-users] iregular data set

You want to use matplotlib.numerix and use a masked array

On Fri, 2006-07-21 at 14:24 -0400, Rodrigues, Joseph wrote:
> I have a question (new user here): I have datasets of irregular time
> spaced data and am having a problem with Matplot lib.
> 
>  
> 
> I am plotting two datasets: one is continuous time series data (simple
> line chart) and the other irregular time series data.
> 
>  
> 
> The problem I have is: MatPlotLib is interpolating data for the
> irregular data where there is no data.
> 
>  
> 
> So if I have data from 1985 - 1989 then no data for 1990 - 1994,
> matplotlib is drawing a line connecting the missing data.
> 
>  
> 
> How does one plot irregular spaced time series data?
> 
> Thanks
> 
> Joseph
> 
>  
> 
> p.s.: if this is the wrong forum, could you let me know where to post?
> 
> 
>

-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
share your
> opinions on IT & business topics through brief surveys -- and earn
cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
> ___ Matplotlib-users
mailing list Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
-- 
Rick Albright
Senior Quantitvative Analyst
Indie Research, LLC
254 Witherspoon Street
Princeton, NJ 08542
(609)497-1030
[EMAIL PROTECTED]





-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Missing dll in windows build 0.87.4

2006-07-24 Thread Chris Fonnesbeck
On 7/23/06, Charlie Moad <[EMAIL PROTECTED]> wrote:
> The mingw/2.4 build still works.  There are instructions at the top of
> the setupext.py file.  The dll linking error you are getting is
> something we ran into a lot.  If you have numpy installed distutils
> will use the numpy\distutils\mingw32ccompiler.py file.  In the
> Mingw32CCompiler class remove all links to "msvcr71".  In my version
> of numpy just comment out the whole if block at line 127.
>

I tried commenting out that very block, but then numpy will not build
-- it does not see the mingw32 compiler without those lines, it
appears. I used the --compiler switch on the build, but to no avail.

I'm a bit stuck here, as matplotlib does not build, and the binary
does not seem to work. I'm trying to put together a package that
contains numpy, matplotlib and scipy to distribute to some of my
users.

Thanks,
-- 
Chris Fonnesbeck + Atlanta, GA + http://trichech.us

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Weird resizing issue

2006-07-24 Thread Tommy Grav
This is the same behavior that I see. The window resizes horisontally whenthe pointer is inside the window, although the window behaves erratically asit resizes. Moving the pointer to the right will cause the window to grow thenreduce size as you go further right. As soon as the pointer leaves the windowthe resizing stops. And it only happens while the window is in focus. TommyOn Jul 22, 2006, at 8:59 PM, Gary Ruben wrote:I see weird behaviour like this in Windows too. In my case, the horizontal size of the plot window increases as the pointer is moved inside a plot region. i.e. the aspect ratio of the window changes erratically, I think between two sizes. Sometimes it remains at the incorrect shape when the mouse pointer is shifted outside the plot area and sometimes it pops back to the correct shape. Is this the behaviour you see? I don't know how to avoid it. I noticed that shifting the pointer out of the plot area by moving through the bottom of the window seems to avoid the possibility of the window remaining with the incorrect aspect. I seem to remember seeing this behaviour on an old version of matplotlib. I thought it disappeared and has perhaps returned. My memory is hazy on this.Gary R.Tommy Grav wrote: I am using matplotlib to display a couple of fits-images and then usethe mouse to select a source in the image. However, when I click onthe window containing the image to get it into focus the window startsresizing itself based on the movement of the mouse. I am on a macwith OS 10.4 and are using TkAgg. Has anyone seen this before andknow how to avoid it from happening?Cheers   Tommy-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT & business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Matplotlib-users mailing listMatplotlib-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-users -Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT & business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Matplotlib-users mailing listMatplotlib-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-users  Tommy[EMAIL PROTECTED]http://homepage.mac.com/tgrav/"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genious -- and a lot of courage -- to move in the opposite direction"                         -- Albert Einstein -
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] py2exe problem with matplotlib

2006-07-24 Thread leau2001
Hi all,

I write a little python program with some lib as :Tkinter, matplotlib 
etc...

Citation:
from Tkinter import *
import marshal
import win32clipboard as w
import win32con,re
import string
import time
import MySQLdb
from pylab import *
import os
from ftplib import FTP


Now i want to make an exe, and i use py2exe

I do all what i found here :

http://python.developpez.com/faq/?page=Py2exe

And run... all is ok on the dos screen, but when i want to run my exe i 
got a Bug

Here the log file :

Citation:
Traceback (most recent call last):
File "scan_ally.py", line 8, in ?
File "pylab.pyc", line 1, in ?
File "matplotlib\__init__.pyc", line 720, in ?
File "matplotlib\__init__.pyc", line 273, in wrapper
File "matplotlib\__init__.pyc", line 360, in _get_data_path
RuntimeError: Could not find the matplotlib data files


Then i try to find some doc on the net and found : 
http://starship.python.net/crew/thel...cgi/MatPlotLib 


I used the second script bellow and try again, but Bug again on the DOs 
screen now


Citation:
running py2exe
*** searching for required modules ***
*** parsing results ***
creating python loader for extension 'matplotlib._na_image'
creating python loader for extension 'lapack_lite'
creating python loader for extension 'numarray.libnumeric'
creating python loader for extension 'numarray._ufuncUInt32'
creating python loader for extension 'numarray._ufuncFloat32'
creating python loader for extension 'FFT.fftpack'
creating python loader for extension 'select'
creating python loader for extension 'matplotlib.backends._nc_backend_gdk'
creating python loader for extension 'numarray._ufuncBool'
creating python loader for extension 'matplotlib.backends._gtkagg'
creating python loader for extension 'unicodedata'
creating python loader for extension 'numarray._chararray'
creating python loader for extension 'numarray._ufuncUInt64'
creating python loader for extension 'wx._controls_'
creating python loader for extension 'numarray._ufuncInt16'
creating python loader for extension 'matplotlib.backends._na_backend_agg'
creating python loader for extension '_numpy'
creating python loader for extension 'numarray.convolve._correlate'
creating python loader for extension 'numarray.libnumarray'
creating python loader for extension '_tkinter'
creating python loader for extension 'matplotlib.ft2font'
creating python loader for extension 'ranlib'
creating python loader for extension 'numarray._numarray'
creating python loader for extension 'matplotlib._nc_image'
creating python loader for extension 'numarray._ufuncInt8'
creating python loader for extension 'numarray.linear_algebra.lapack_lite2
creating python loader for extension 'matplotlib._na_transforms'
creating python loader for extension 'numarray._ufuncComplex32'
creating python loader for extension 'wx._windows_'
creating python loader for extension 'wx._core_'
creating python loader for extension '_mysql'
creating python loader for extension 'bz2'
creating python loader for extension 'numarray.random_array.ranlib2'
creating python loader for extension '_ssl'
creating python loader for extension 'numarray._ufuncFloat64'
creating python loader for extension 'matplotlib.backends._tkagg'
creating python loader for extension 'matplotlib._ns_transforms'
creating python loader for extension 'wx._misc_'
creating python loader for extension 'qt'
creating python loader for extension 'matplotlib._isnan'
creating python loader for extension 'numarray.fft.fftpack'
creating python loader for extension 'matplotlib._nc_transforms'
creating python loader for extension 'numarray._converter'
creating python loader for extension 'umath'
creating python loader for extension 'numarray._ufuncComplex64'
creating python loader for extension 'numarray._numerictype'
creating python loader for extension 'numarray._objectarray'
creating python loader for extension 'matplotlib._ns_image'
creating python loader for extension 'numarray._ufuncInt64'
creating python loader for extension 'multiarray'
creating python loader for extension 'zlib'
creating python loader for extension 'matplotlib._nc_cntr'
creating python loader for extension 'matplotlib.backends._ns_backend_agg'
creating python loader for extension 'wx._gdi_'
creating python loader for extension 'numarray._ufuncUInt16'
creating python loader for extension 'numarray._operator'
creating python loader for extension 'numarray._bytes'
creating python loader for extension 'numarray._ufuncInt32'
creating python loader for extension 'numarray._ufuncUInt8'
creating python loader for extension 'matplotlib.enthought.traits.ctraits'
creating python loader for extension 'numarray._conv'
creating python loader for extension 'matplotlib._na_cntr'
creating python loader for extension 'matplotlib._ns_cntr'
creating python loader for extension 'numarray.memory'
creating python loader for extension '_imaging'
creating python loader for extension 'matplotlib.backends._nc_backen

[Matplotlib-users] matplotlib/wxmpl/numpy conflict on windows xp: runtime error, C-API ?

2006-07-24 Thread massimo sandal

Hi,
I'm trying to install a matplotlib+wxmpl app I wrote on Linux on a 
Windows XP machine.


It crashes starting with the following error:
-
C:\Documents and Settings\Principale\Desktop\Python\Hooke>python hooke.py
Traceback (most recent call last):
  File "hooke.py", line 12, in ?
import wxmpl
  File "C:\Programmi\Python23\Lib\site-packages\wxmpl.py", line 26, in ?
from matplotlib.axes import PolarAxes, _process_plot_var_args
  File "C:\PROGRA~1\Python23\Lib\site-packages\matplotlib\axes.py", 
line 23, in

?
from contour import ContourSet
  File "C:\PROGRA~1\Python23\Lib\site-packages\matplotlib\contour.py", 
line 18,

in ?
import _contour
  File "C:\PROGRA~1\Python23\Lib\site-packages\matplotlib\_contour.py", 
line 17,

 in ?
from matplotlib._ns_cntr import *
RuntimeError: module compiled against version 90709 of C-API but this 
version of numpy is 100

-

I installed the latest sourceforge stable (not CVS/SVN) versions of 
matplotlib, numpy and wxmpl as of today.


I'm quite puzzled, I guess I understand what the error is (different gcc 
versions?), but how can I get around it? Do I need to recompile 
numpy/matplotlib?


m.

--
Massimo Sandal
University of Bologna
Department of Biochemistry "G.Moruzzi"

snail mail:
Via Irnerio 48, 40126 Bologna, Italy

email:
[EMAIL PROTECTED]

tel: +39-051-2094388
fax: +39-051-2094387
begin:vcard
fn:Massimo Sandal
n:Sandal;Massimo
org:University of Bologna;Department of Biochemistry
adr:;;Via Irnerio 48;Bologna;;40126;Italy
email;internet:[EMAIL PROTECTED]
tel;work:+39-051-2094388
tel;fax:+39-051-2094387
x-mozilla-html:FALSE
version:2.1
end:vcard

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Missing dll in windows build 0.87.4

2006-07-24 Thread Christopher Barker
msvcr71.dll is a dll required for virtually every application built with 
MSVC7.1. For example, py2exe distributes it by default when it builds 
exes. However, it is so common, most systems already have it, installed 
by some other app.

I'm guessing in this case, you're working with a new Windows box that 
hasn't had much installed on it yet. I don't have it booted up now, but 
I don't have much installed on my Windows box, and I have at least a 
half a dozen copies of it on my system, a few in standard system 
directories.

For completeness, I guess that dll should be included in the egg. In the 
  meantime, search your system for it, I bet you have at least one copy. 
If not, I'll bet you can get it from MS's web site.

Now that I think about it, I'm surprised it isn't distributed with 
Python in the first place. Someone with a Windows box should do a search 
and see where they are, and if there is one with Python.

-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer

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

[EMAIL PROTECTED]

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Missing dll in windows build 0.87.4

2006-07-24 Thread John Hunter
> "Christopher" == Christopher Barker <[EMAIL PROTECTED]> writes:

Christopher> msvcr71.dll is a dll required for virtually every
Christopher> application built with MSVC7.1. For example, py2exe
Christopher> distributes it by default when it builds
Christopher> exes. However, it is so common, most systems already
Christopher> have it, installed by some other app.

The missing DLL in this case is

  "This application has failed to start because MSVCP71.dll was not found."
^
which I believe is the C++ runtime.

JDH

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Missing dll in windows build 0.87.4

2006-07-24 Thread Charlie Moad
On 7/24/06, Christopher Barker <[EMAIL PROTECTED]> wrote:
> msvcr71.dll is a dll required for virtually every application built with
> MSVC7.1. For example, py2exe distributes it by default when it builds
> exes. However, it is so common, most systems already have it, installed
> by some other app.
>
> I'm guessing in this case, you're working with a new Windows box that
> hasn't had much installed on it yet. I don't have it booted up now, but
> I don't have much installed on my Windows box, and I have at least a
> half a dozen copies of it on my system, a few in standard system
> directories.

Not really.  I am using Visual Studio for the build in which I have
never seen or heard of this error occuring.  This was a mingw problem,
and the fix I mentioned was what we did when the builds were done with
mingw.

> For completeness, I guess that dll should be included in the egg. In the
>   meantime, search your system for it, I bet you have at least one copy.
> If not, I'll bet you can get it from MS's web site.

We got this error no matter what.  I had the file all over the place
and the mingw builds still complained.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib/wxmpl/numpy conflict on windows xp: runtime error, C-API ?

2006-07-24 Thread Charlie Moad
I am guessing you installed numpy1.0b1.  You need to use 0.9.8.

On 7/24/06, massimo sandal <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm trying to install a matplotlib+wxmpl app I wrote on Linux on a
> Windows XP machine.
>
> It crashes starting with the following error:
> -
> C:\Documents and Settings\Principale\Desktop\Python\Hooke>python hooke.py
> Traceback (most recent call last):
>File "hooke.py", line 12, in ?
>  import wxmpl
>File "C:\Programmi\Python23\Lib\site-packages\wxmpl.py", line 26, in ?
>  from matplotlib.axes import PolarAxes, _process_plot_var_args
>File "C:\PROGRA~1\Python23\Lib\site-packages\matplotlib\axes.py",
> line 23, in
> ?
>  from contour import ContourSet
>File "C:\PROGRA~1\Python23\Lib\site-packages\matplotlib\contour.py",
> line 18,
> in ?
>  import _contour
>File "C:\PROGRA~1\Python23\Lib\site-packages\matplotlib\_contour.py",
> line 17,
>   in ?
>  from matplotlib._ns_cntr import *
> RuntimeError: module compiled against version 90709 of C-API but this
> version of numpy is 100
> -
>
> I installed the latest sourceforge stable (not CVS/SVN) versions of
> matplotlib, numpy and wxmpl as of today.
>
> I'm quite puzzled, I guess I understand what the error is (different gcc
> versions?), but how can I get around it? Do I need to recompile
> numpy/matplotlib?
>
> m.
>
> --
> Massimo Sandal
> University of Bologna
> Department of Biochemistry "G.Moruzzi"
>
> snail mail:
> Via Irnerio 48, 40126 Bologna, Italy
>
> email:
> [EMAIL PROTECTED]
>
> tel: +39-051-2094388
> fax: +39-051-2094387
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Missing dll in windows build 0.87.4

2006-07-24 Thread Chris Fonnesbeck
And by the way, trying to build matplotlib myself with the numpy
binary installed, fails. It appears to be related to tkagg:

src/_tkagg.cpp:28:18: tk.h: No such file or directory
src/_tkagg.cpp:36: syntax error before `*' token
src/_tkagg.cpp:40: `ClientData' was not declared in this scope
src/_tkagg.cpp:40: parse error before `,' token
src/_tkagg.cpp: In function `int PyAggImagePhoto(...)':
src/_tkagg.cpp:43: `Tk_PhotoHandle' undeclared (first use this function)
src/_tkagg.cpp:43: (Each undeclared identifier is reported only once for each
   function it appears in.)
src/_tkagg.cpp:43: parse error before `;' token
src/_tkagg.cpp:44: `Tk_PhotoImageBlock' undeclared (first use this function)
src/_tkagg.cpp:56: `argc' undeclared (first use this function)
src/_tkagg.cpp:57: `interp' undeclared (first use this function)
src/_tkagg.cpp:57: `argv' undeclared (first use this function)
src/_tkagg.cpp:58: `Tcl_AppendResult' undeclared (first use this function)
src/_tkagg.cpp:59: `TCL_ERROR' undeclared (first use this function)
src/_tkagg.cpp:63: `photo' undeclared (first use this function)
src/_tkagg.cpp:63: `Tk_FindPhoto' undeclared (first use this function)
src/_tkagg.cpp:117: `block' undeclared (first use this function)
src/_tkagg.cpp:143: `Tk_PhotoPutBlock' undeclared (first use this function)
src/_tkagg.cpp:153: `Tk_PhotoBlank' undeclared (first use this function)
src/_tkagg.cpp:158: `TCL_OK' undeclared (first use this function)
src/_tkagg.cpp: In function `PyObject* _tkinit(PyObject*, PyObject*)':
src/_tkagg.cpp:174: `Tcl_Interp' undeclared (first use this function)
src/_tkagg.cpp:183: parse error before `)' token
src/_tkagg.cpp:188: `struct TkappObject' has no member named `interp'
src/_tkagg.cpp:194: `Tcl_CmdProc' undeclared (first use this function)
src/_tkagg.cpp:194: parse error before `)' token
C:/MinGW/include/c++/3.2.3/bits/basic_string.tcc: At top level:
src/_tkagg.cpp:42: warning: `int PyAggImagePhoto(...)' defined but not used
error: Command "g++ -O2 -Wall -Iwin32_static/include/tcl84 -I. -Isrc -Iswig -Iag
g23/include -I. -I. -Iwin32_static/include/tcl84\freetype2 -I.\freetype2 -Isrc\f
reetype2 -Iswig\freetype2 -Iagg23/include\freetype2 -I.\freetype2 -I.\freetype2
-IC:\Python24\lib\site-packages\numpy\core\include -IC:\Python24\include -IC:\Py
thon24\PC -c src/_tkagg.cpp -o build\temp.win32-2.4\Release\src\_tkagg.o" failed
 with exit status 1

However, I have Tk installed, as it comes bundled with ActiveState python.

-- 
Chris Fonnesbeck + Atlanta, GA + http://trichech.us

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Missing dll in windows build 0.87.4

2006-07-24 Thread John Hunter
> "Chris" == Chris Fonnesbeck <[EMAIL PROTECTED]> writes:

Chris> And by the way, trying to build matplotlib myself with the
Chris> numpy binary installed, fails. It appears to be related to
Chris> tkagg:

Chris> src/_tkagg.cpp:28:18: tk.h: No such file or directory

 ...snip...

Chris> However, I have Tk installed, as it comes bundled with
Chris> ActiveState python.

You need the tk devel headers -- do you have tk.h?  Is it in your
include path?

JDH

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Missing dll in windows build 0.87.4

2006-07-24 Thread Charlie Moad
On 7/24/06, Chris Fonnesbeck <[EMAIL PROTECTED]> wrote:
> And by the way, trying to build matplotlib myself with the numpy
> binary installed, fails. It appears to be related to tkagg:
>
> src/_tkagg.cpp:28:18: tk.h: No such file or directory
> src/_tkagg.cpp:36: syntax error before `*' token
> src/_tkagg.cpp:40: `ClientData' was not declared in this scope
> src/_tkagg.cpp:40: parse error before `,' token
> src/_tkagg.cpp: In function `int PyAggImagePhoto(...)':
> src/_tkagg.cpp:43: `Tk_PhotoHandle' undeclared (first use this function)
> src/_tkagg.cpp:43: (Each undeclared identifier is reported only once for each
>function it appears in.)
> src/_tkagg.cpp:43: parse error before `;' token
> src/_tkagg.cpp:44: `Tk_PhotoImageBlock' undeclared (first use this function)
> src/_tkagg.cpp:56: `argc' undeclared (first use this function)
> src/_tkagg.cpp:57: `interp' undeclared (first use this function)
> src/_tkagg.cpp:57: `argv' undeclared (first use this function)
> src/_tkagg.cpp:58: `Tcl_AppendResult' undeclared (first use this function)
> src/_tkagg.cpp:59: `TCL_ERROR' undeclared (first use this function)
> src/_tkagg.cpp:63: `photo' undeclared (first use this function)
> src/_tkagg.cpp:63: `Tk_FindPhoto' undeclared (first use this function)
> src/_tkagg.cpp:117: `block' undeclared (first use this function)
> src/_tkagg.cpp:143: `Tk_PhotoPutBlock' undeclared (first use this function)
> src/_tkagg.cpp:153: `Tk_PhotoBlank' undeclared (first use this function)
> src/_tkagg.cpp:158: `TCL_OK' undeclared (first use this function)
> src/_tkagg.cpp: In function `PyObject* _tkinit(PyObject*, PyObject*)':
> src/_tkagg.cpp:174: `Tcl_Interp' undeclared (first use this function)
> src/_tkagg.cpp:183: parse error before `)' token
> src/_tkagg.cpp:188: `struct TkappObject' has no member named `interp'
> src/_tkagg.cpp:194: `Tcl_CmdProc' undeclared (first use this function)
> src/_tkagg.cpp:194: parse error before `)' token
> C:/MinGW/include/c++/3.2.3/bits/basic_string.tcc: At top level:
> src/_tkagg.cpp:42: warning: `int PyAggImagePhoto(...)' defined but not used
> error: Command "g++ -O2 -Wall -Iwin32_static/include/tcl84 -I. -Isrc -Iswig 
> -Iag
> g23/include -I. -I. -Iwin32_static/include/tcl84\freetype2 -I.\freetype2 
> -Isrc\f
> reetype2 -Iswig\freetype2 -Iagg23/include\freetype2 -I.\freetype2 
> -I.\freetype2
> -IC:\Python24\lib\site-packages\numpy\core\include -IC:\Python24\include 
> -IC:\Py
> thon24\PC -c src/_tkagg.cpp -o build\temp.win32-2.4\Release\src\_tkagg.o" 
> failed
>  with exit status 1
>
> However, I have Tk installed, as it comes bundled with ActiveState python.

are you running:

win32_static\profile24.bat
win32_static\importlib24.bat

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Weird resizing issue

2006-07-24 Thread Jouni K Seppanen
Tommy Grav <[EMAIL PROTECTED]> writes:

> The window resizes horisontally when the pointer is inside the
> window, although the window behaves erratically as it resizes. 
> Moving the pointer to the right will cause the window to grow then
> reduce size as you go further right.

Is this related to the pointer coordinates shown in the lower-right
corner of the window? I.e., when you move the pointer right, perhaps
the x-coordinate becomes a longer number and the window is enlarged to
accommodate it. I remember seeing behavior like this on some old
version of Matplotlib (probably TkAgg backend on OS X) but cannot
reproduce it now.

-- 
Jouni


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Weird resizing issue

2006-07-24 Thread Darren Dale
On Monday 24 July 2006 15:12, Jouni K Seppanen wrote:
> Tommy Grav <[EMAIL PROTECTED]> writes:
> > The window resizes horisontally when the pointer is inside the
> > window, although the window behaves erratically as it resizes.
> > Moving the pointer to the right will cause the window to grow then
> > reduce size as you go further right.
>
> Is this related to the pointer coordinates shown in the lower-right
> corner of the window? I.e., when you move the pointer right, perhaps
> the x-coordinate becomes a longer number and the window is enlarged to
> accommodate it. I remember seeing behavior like this on some old
> version of Matplotlib (probably TkAgg backend on OS X) but cannot
> reproduce it now.

That looks like the problem. If you click the zoom widget in qt4agg, 
then "zoom to rect mode" also appears on that line, forcing the width of the 
window to increase even further.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Missing dll in windows build 0.87.4

2006-07-24 Thread Christopher Barker
Charlie Moad wrote:
> Well, I meant before this post. That is why I am somewhat skeptical of
> it.  There have been hundreds of downloads, and this is the first
> message.

Hence my suspicion that this was a dll that is not included in Stock 
Windows, but is on most people's systems, installed by other software. I 
think the OP said s/he was a new (or infrequent) Windows user.

-CHB



-- 
Christopher Barker, Ph.D.
Oceanographer

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

[EMAIL PROTECTED]

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Missing dll in windows build 0.87.4

2006-07-24 Thread Christopher Barker
Charlie Moad wrote:
> Not really.  I am using Visual Studio for the build in which I have
> never seen or heard of this error occuring.  This was a mingw problem,

didn't the OP get this error with a MSVC build?

Anyway, I don't have windows booted to test myself, and I'm out of my depth.

-CHB


-- 
Christopher Barker, Ph.D.
Oceanographer

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

[EMAIL PROTECTED]

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users