[Matplotlib-users] ssh options

2008-04-14 Thread sa6113

No one to help me ??


sa6113 wrote:
> 
> what options we have for performing ssh (actually scp) on Windows and
> Linux from Python.
> Note that Linux has builtin ssh/scp, hence, pexpect should be a simple
> option, but to the best
> of my knowledge Windows does not anything.  I would like to see a list of
> options on this. 
> 
> Would you please help me ?
> 
> 

-- 
View this message in context: 
http://www.nabble.com/ssh-options-tp16646647p16671478.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] ssh options

2008-04-14 Thread Michael Droettboom
Perhaps I misunderstand the question.  How is this question specific to 
matplotlib and not remote login in general?

If you need an SSH client for Windows, I use putty, and it works pretty 
well.  If you need X11 remoting or something, I've used Cygwin, and I 
know others have had success with X-Ming.  Does that answer your question?

Mike

sa6113 wrote:
> No one to help me ??
>
>
> sa6113 wrote:
>   
>> what options we have for performing ssh (actually scp) on Windows and
>> Linux from Python.
>> Note that Linux has builtin ssh/scp, hence, pexpect should be a simple
>> option, but to the best
>> of my knowledge Windows does not anything.  I would like to see a list of
>> options on this. 
>>
>> Would you please help me ?
>>
>>
>> 
>
>   

-- 
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 the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Howto? Multiple hist's (subplot) with same axes, without squished bars

2008-04-14 Thread Anders Norgaard
Hi,

I'm a matplotlib N00b and I have



from pylab import *

multimap =

...

figure(1)

for index, key in enumerate( multimap.keys() ):

p = subplot(6, 5, index+1)
xlabel('intraclashes kcal')
ylabel('count')
p.axis([0,70,0,0.2])
vals = multimap[key]
#p.set_autoscale_on(False)

p.hist(vals , 20, normed=True, facecolor="red")

show()


===

And depending on if I comment or uncomment the

#p.set_autoscale_on(False)

I get either variable axes ranges

http://people.binf.ku.dk/biehl/penelope/mpl_var_axes.png

or squished histogram bars

http://people.binf.ku.dk/biehl/penelope/mpl_fixed_axes.png


Is there a way to fix this?

Thanks,
Anders

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] How to remove the grey border in the plotting?

2008-04-14 Thread Benjamin Drung
Hello,

I wrote a Python application using GTK+ and Matplotlib. I normally use
the application in full screen mode (1680x1050). There is a big gray
border. You can reproduce it using the embedding_in_gtk.py from the
examples and full screen it.

How can I remove this grey border? The numbers on the axes should not be
cropped.

Regards,
Benjamin Drung


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] setting up matplotbib

2008-04-14 Thread Nathanael Berestycki
Hi all,

I am trying to setup matplotbib on my computer (which is unfortunately
running on windows) and for some reason, it doesn't seem to be working. I
believe I have downloaded everything I should have downloaded (Python 2.5,
numpy, ipython, lpng1226, zlib, gtk, and I'm probably forgetting a few other
things that I did download), yet when I open Ipython and plot the
recommended example

plot([1,2,3])

all I get is the error "NameError: name 'plot' is not defined".
Possibly, the things I downloaded did not go to the right directories. Does
anybody know if this matters, and if yes, where should the files be located?
Part of the problem also is that my computer skills are low, so I don't
understand many of the terms used (such as "backends", for instance - what
is it?).

I would really appreciate it if somebody could tell me what I should try to
do or point me to a step-by-step guide ! (I would really, really love to be
able to plot data I generate on Python...)

Many thanks in advance for your help,
Nathanael
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] setting up matplotbib

2008-04-14 Thread Alexandre Zabot
Nathanael,

I don't use windows, but on linux I have to load matplotlib first and after
type show()

from pylab import *
plot([1,2,3])
show()

have you done it?

Alexandre

2008/4/8, Nathanael Berestycki <[EMAIL PROTECTED]>:
>
> Hi all,
>
> I am trying to setup matplotbib on my computer (which is unfortunately
> running on windows) and for some reason, it doesn't seem to be working. I
> believe I have downloaded everything I should have downloaded (Python 2.5,
> numpy, ipython, lpng1226, zlib, gtk, and I'm probably forgetting a few other
> things that I did download), yet when I open Ipython and plot the
> recommended example
>
> plot([1,2,3])
>
> all I get is the error "NameError: name 'plot' is not defined".
> Possibly, the things I downloaded did not go to the right directories.
> Does anybody know if this matters, and if yes, where should the files be
> located? Part of the problem also is that my computer skills are low, so I
> don't understand many of the terms used (such as "backends", for instance -
> what is it?).
>
> I would really appreciate it if somebody could tell me what I should try
> to do or point me to a step-by-step guide ! (I would really, really love to
> be able to plot data I generate on Python...)
>
> Many thanks in advance for your help,
> Nathanael
>
>
>
> -
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] setting up matplotbib

2008-04-14 Thread Joshua Lippai
Try "from pylab import *" before using the plot function.

Josh

On Tue, Apr 8, 2008 at 4:28 PM, Nathanael Berestycki
<[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I am trying to setup matplotbib on my computer (which is unfortunately
> running on windows) and for some reason, it doesn't seem to be working. I
> believe I have downloaded everything I should have downloaded (Python 2.5,
> numpy, ipython, lpng1226, zlib, gtk, and I'm probably forgetting a few other
> things that I did download), yet when I open Ipython and plot the
> recommended example
>
> plot([1,2,3])
>
> all I get is the error "NameError: name 'plot' is not defined".
> Possibly, the things I downloaded did not go to the right directories. Does
> anybody know if this matters, and if yes, where should the files be located?
> Part of the problem also is that my computer skills are low, so I don't
> understand many of the terms used (such as "backends", for instance - what
> is it?).
>
> I would really appreciate it if somebody could tell me what I should try to
> do or point me to a step-by-step guide ! (I would really, really love to be
> able to plot data I generate on Python...)
>
> Many thanks in advance for your help,
> Nathanael
>
>
>
> -
>  This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>  Don't miss this year's exciting event. There's still time to save $100.
>  Use priority code J8TL2D2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> ___
>  Matplotlib-users mailing list
>  Matplotlib-users@lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] hist() and semilogy

2008-04-14 Thread Adrian Price-Whelan
Hello -

I haven't been able to find any useful documentation about semilogy  
and exactly how i can implement it into a Histogram. I'm simply trying  
to create a histogram of a lot of data with a y-axis scaled  
logarithmically. Specifically I am creating a pixel histogram of a  
FITS image...for anyone who cares. Here is the code i've used to  
create the histogram:

#! /usr/bin/env python

import Image
import pyfits
import numpy
import numarray
from pylab import *

#Open each image
Gim = pyfits.open('Gimage.fits')

#Create arrays of the data from each image
Garray = Gim[0].data

onedarray = []

xsize,ysize = Garray.shape

for x in xrange(xsize):
 for y in xrange(ysize):
 if Garray[x,y] >= -0.02:
 if Garray[x,y] <= 0.6:
 onedarray.append(Garray[x,y])

g_hist = hist(onedarray,bins=100)
axis([-0.05,0.65,1,9])

xlabel('Pixel Number')
ylabel('How Many of Each Pixel')
savefig('test_histPANDA.png')
show()

thanks!!

-Adrian

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] win32 build error in _path.cpp: 'numeric_limits' : is not a member of 'std'

2008-04-14 Thread Martin Spacek
Hello,

I just updated from svn (r5042) for the first time in about 6 months (I think 
r3296 or so was my last rev), and I can no longer build in win32 with msvc 7.1. 
I've got win32_static (extracted from 
http://matplotlib.sourceforge.net/win32_static_vs.tar.gz) in my mpl root 
folder. Here's what I get:

> python setup.py build_ext --inplace --force


BUILDING MATPLOTLIB
   matplotlib: 0.98pre
   python: 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC
   v.1310 32 bit (Intel)]
 platform: win32
  Windows version: (5, 1, 2600, 2, 'Service Pack 2')

REQUIRED DEPENDENCIES
numpy: 1.0.5.dev5035
freetype2: found, but unknown version (no pkg-config)

OPTIONAL BACKEND DEPENDENCIES
   libpng: found, but unknown version (no pkg-config)
  Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
 wxPython: 2.8.6.0
   * WxAgg extension not required for wxPython >= 2.8
 Gtk+: no
   * Building for Gtk+ requires pygtk; you must be able
   * to "import gtk" in your build/install environment
   Qt: no
  Qt4: no
Cairo: no

OPTIONAL DATE/TIMEZONE DEPENDENCIES
 datetime: present, version unknown
 dateutil: matplotlib will provide
 pytz: matplotlib will provide

OPTIONAL USETEX DEPENDENCIES
   dvipng: 1.9
  ghostscript: 'gswin32c' is not recognized as an internal or
   external command, operable program or batch file.
latex: no

EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
configobj: matplotlib will provide
 enthought.traits: matplotlib will provide

[Edit setup.cfg to suppress the above messages]

running build_ext
building 'matplotlib.ft2font' extension
creating build\temp.win32-2.5
creating build\temp.win32-2.5\Release
creating build\temp.win32-2.5\Release\src
creating build\temp.win32-2.5\Release\CXX
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 
/GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include 
-IC:\bin\Python25\PC /Tpsrc/ft2font.cpp /Fobuild
\temp.win32-2.5\Release\src/ft2font.obj
ft2font.cpp
src\ft2font.cpp(947) : warning C4244: 'initializing' : conversion from 
'FT_Long' to 'FT_Bool', possible loss of data
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 
/GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include 
-IC:\bin\Python25\PC /Tpsrc/mplutils.cpp /Fobuil
d\temp.win32-2.5\Release\src/mplutils.obj
mplutils.cpp
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 
/GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include 
-IC:\bin\Python25\PC /TpCXX\cxxsupport.cxx /Fobu
ild\temp.win32-2.5\Release\CXX\cxxsupport.obj
cxxsupport.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 
/GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include 
-IC:\bin\Python25\PC /TpCXX\cxx_extensions.cxx /
Fobuild\temp.win32-2.5\Release\CXX\cxx_extensions.obj
cxx_extensions.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 
/GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include 
-IC:\bin\Python25\PC /TpCXX\IndirectPythonInterf
ace.cxx /Fobuild\temp.win32-2.5\Release\CXX\IndirectPythonInterface.obj
IndirectPythonInterface.cxx
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 
/GX /DNDEBUG -Iwin32_static\include -I. -
Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include 
-IC:\bin\Python25\PC /TcCXX\cxxextensions.c /Fob
uild\temp.win32-2.5\Release\CXX\cxxextensions.obj
cxxextensions.c
C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo 
/INCREMENTAL:NO /LIBPATH:win32_static\lib /LIBPAT
H:C:\bin\Python25\libs /LIBPATH:C:\bin\Python25\PCBuild freetype.lib z.lib 
/EXPORT:initft2font build\temp.win32-2.5\Rele
ase\src/ft2font.obj build\temp.win32-2.5\Release\src/mplutils.obj 
build\temp.win32-2.5\Release\CXX\cxxsupport.obj build\
temp.win32-2.5\Release\CXX\cxx_extensions.obj 
build\temp.win32-2.5\Release\CXX\IndirectPythonInterface.obj build\temp.wi
n32-2.5\Release\CXX\cxxextensions.obj /OUT:lib\matplotlib\ft2font.pyd 
/IMPLIB:build\temp.win32-2.5\Release\src\ft2font.l
ib
  Creating library build\temp.win32-2.5\Release\src\ft2font.lib and object 
build\temp.win32-2.5\Release\src\ft2font.exp

building 'matplotlib.ttconv' extension
creating build\temp.win32-2.5\Rel

Re: [Matplotlib-users] speeding up imshow

2008-04-14 Thread G Jones
Thank you for the suggestion.
I now have the update time down to about 70 ms.
When I run the code through the profiler, I see that each plot update
requires a call to matplotlib.colors.Colormap.__call__, and each of
these calls takes 52 ms, 48 ms of which is spent inside the function
itself. This looks like it is the bulk of the delay, so if I can
optimize the Colormap.__call__ function, the performance should be
much improved. Unfortunately I cannot seem to get finer grained
information about what exactly is taking so long inside this function.
Can anyone provide any hints?
Thanks,
Glenn

On Sat, Apr 12, 2008 at 7:02 PM, hjc520070 <[EMAIL PROTECTED]> wrote:
>
>  I just use blit on imshow map, and work properly. Maybe the following code
>  will help you.
>
>  def ontimer()
>canvas.restore_region(background)
>im.set_array(Z)
>ax.draw_artist(self.imList[i])
>canvas.blit(ax.bbox)
>canvas.gui_repaint()
>  --
>  View this message in context: 
> http://www.nabble.com/speeding-up-imshow-tp16623430p16656693.html
>  Sent from the matplotlib - users mailing list archive at Nabble.com.
>
>
>  -
>  This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>  Don't miss this year's exciting event. There's still time to save $100.
>  Use priority code J8TL2D2.
>  
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>  ___
>  Matplotlib-users mailing list
>  Matplotlib-users@lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] saving PNG graphics on mac

2008-04-14 Thread Christopher Barker
Sorry I didn't chime in sooner, as I'm pretty sure i know exactly what 
the problem is, and I should have reported it a couple weeks ago when I 
found it.

> Matplotlib aside, you might want to make sure you installed the
> Unicode version of wxWidgets, and reinstall it if necessary.

Actually, this is backwards -- I think the OP is using the unicode 
version of wxPython, and that's the source of the problem. The unicode 
version returns a unicode object from a FileDialog for a path. MPL can't 
deal with a unicode filename, and thus the error:

 Matplotlib backend_wx error
 cannot return std::string from Unicode object

There are a couple solutions:

1) use the ansi, rather than unicode version of wxPython.

2) Patch MPL:
   a) convert the filename to a string before passing it off to MPL -- 
this is an bad kludge, as the Mac (and recent Windows, and Linux, 
and...) filesystem is unicode, and folks could have non-ansi characters 
in their filenames.

   b) Open the file with Python, and pass that into the MPL savefig 
method, instead of the filename. This is apparently slow with older 
MPLs, but has been fixed for good performance in SVN.

However, I think I tried this on the Mac, and it worked great, but on 
Windows, I didn't get errors, but didn't get valid PNGs either. I ended 
up going back to converting my filename to a string and passing that off 
to MPL.

See:
http://www.nabble.com/unicode-filenames-and-MPL.-to16318069.html#a16318069
For more discussion.

Can an MPL dev fix this, please?

-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 the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users