Re: [Matplotlib-users] axis not accepting keyword arguments any longer?

2007-01-25 Thread John Hunter
> "Samuel" == Samuel M Smith <[EMAIL PROTECTED]> writes:

Samuel> I have the same problem

Did you notice my response then?  

John>  This is a bug -- thanks for reporting it.  I just committed
John> changes to svn to fix it.

Ie, it is a bug that is fixed and you must use the svn version of
matplotlib .

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] pylab crashes python

2007-01-25 Thread Lou Pecora
Are you running the script again or plotting a second
time in the same script?  You might need to set
matplotlib to plot interactively.  See the
documentaion about interactive plotting.  You need to
set the back end graphics to the right kind for
interactive plotting.

E.g. in  .matplotlibrc

backend  : TKAgg  # should work for
interactive
interactive  : True  # see
http://matplotlib.sourceforge.net/interactive.html



-- Lou Pecora
  My views are my own.


 

8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

-
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] pylab crashes python

2007-01-25 Thread Christopher Barker
Jan Winter wrote:
> hi,
> 
> I use python 2.4, matplotlib and WXpython on OS X.
> 
> I plot and show something and every thing works fine (the plot is  
> shown in the python.app).
> I close the plot window.
> I plot another thing.
> It is shown again with python.app, but now python.app crashes...

I'm not sure pylab supports this use. I think once you close the plot 
window, you have shut down the wx.App, then when you plot again, it 
tries to create it again, but you can't start and stop wx.Apps over 
again in the same process.

I think you can do what you want by using ipython, so that you don't 
have to close the figure window to get your prompt back.

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

-
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] dvipng version error running matplotlib on windows

2007-01-25 Thread bernski

I am getting a dvipng version error when I run:

import Numeric,matplotlib
matplotlib.use('Agg')
from matplotlib import rc
rc('text', usetex=True)
import pylab

pylab.figure(num=1,figsize=(6,4))
pylab.plot(Numeric.arange(10), Numeric.arange(10)**2)
pylab.axis( (0,9,0,81) )
pylab.xlabel(r'$width$')
pylab.ylabel(r'$Height (km)$')

filename='c:/test.png'
pylab.savefig(filename,dpi=100)
pylab.clf()

here is a bit of the error message:

File "C:\Python24\Lib\site-packages\matplotlib\texmanager.py", line 58, in
get_dvipng_version
raise RuntimeError('Could not obtain dvipng version')
RuntimeError: Could not obtain dvipng version

I have  winXP, python2.4, matplotlib0.87, miktex2.5.  I downloaded dvipng1.9
from sourceforge, but have no idea what to do with it.  do i need a 'c'
compiler to install it?
-- 
View this message in context: 
http://www.nabble.com/dvipng-version-error-running-matplotlib-on-windows-tf3078547.html#a8553205
Sent from the matplotlib - users mailing list archive at Nabble.com.


-
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] pylab crashes python

2007-01-25 Thread Jan Winter
hi,

I use python 2.4, matplotlib and WXpython on OS X.

I plot and show something and every thing works fine (the plot is  
shown in the python.app).
I close the plot window.
I plot another thing.
It is shown again with python.app, but now python.app crashes...

every second plot causes a crash in python.app...

has anybody a hint?

thanks Jan

-
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] Latex \partial

2007-01-25 Thread vijayk

Hi,
I am a newbie in matplotlib. I want to use the following label (in latex)
\langle \partial_x U(x) \rangle.
When i use
   ylabel(r"$\langle \partial_x U(x) \rangle$",fontsize=30);
matplotlib complains by saying 


 Traceback (most recent call last):
  File
"/usr/lib/python2.3/site-packages/matplotlib/backends/backend_gtk.py", line
277, in expose_event
self._render_figure(width, height)
  File
"/usr/lib/python2.3/site-packages/matplotlib/backends/backend_gtkagg.py",
line 91, in _render_figure
FigureCanvasAgg.draw(self)
  File
"/usr/lib/python2.3/site-packages/matplotlib/backends/backend_agg.py", line
369, in draw
self.figure.draw(renderer)
  File "/usr/lib/python2.3/site-packages/matplotlib/figure.py", line 498, in
draw
for a in self.axes: a.draw(renderer)
  File "/usr/lib/python2.3/site-packages/matplotlib/axes.py", line 1362, in
draw
self.yaxis.draw(renderer)
  File "/usr/lib/python2.3/site-packages/matplotlib/axis.py", line 578, in
draw
self.label.draw(renderer)  # memory leak here, vertical text
  File "/usr/lib/python2.3/site-packages/matplotlib/text.py", line 334, in
draw
bbox, info = self._get_layout(renderer)
  File "/usr/lib/python2.3/site-packages/matplotlib/text.py", line 179, in
_get_layout
w,h = renderer.get_text_width_height(
  File
"/usr/lib/python2.3/site-packages/matplotlib/backends/backend_agg.py", line
242, in get_text_width_height
width, height, fonts = math_parse_s_ft2font(
  File "/usr/lib/python2.3/site-packages/matplotlib/mathtext.py", line 1222,
in math_parse_s_ft2font
handler.expr.set_size_info(fontsize, dpi)
  File "/usr/lib/python2.3/site-packages/matplotlib/mathtext.py", line 870,
in set_size_info
self.elements[0].set_size_info(self._scale*fontsize, dpi)
  File "/usr/lib/python2.3/site-packages/matplotlib/mathtext.py", line 795,
in set_size_info
Element.set_size_info(self, fontsize, dpi)
  File "/usr/lib/python2.3/site-packages/matplotlib/mathtext.py", line 708,
in set_size_info
element.set_size_info(self.fontsize, dpi)
  File "/usr/lib/python2.3/site-packages/matplotlib/mathtext.py", line 796,
in set_size_info
self.metrics = Element.fonts.get_metrics(
  File "/usr/lib/python2.3/site-packages/matplotlib/mathtext.py", line 409,
in get_metrics
cmfont, metrics, glyph, offset  = \
  File "/usr/lib/python2.3/site-packages/matplotlib/mathtext.py", line 429,
in _get_info
raise ValueError('unrecognized symbol "%s"' % sym)
ValueError: unrecognized symbol "\partial"




  I searched the forum for something similar and could not find anything.
Also my latex can typeset the above if i run it in a separate tex file.  I
am using the GTKAgg backend.

Could someone please help me out?


Bye
Vijay
-- 
View this message in context: 
http://www.nabble.com/Latex-%5Cpartial-tf2963980.html#a8292755
Sent from the matplotlib - users mailing list archive at Nabble.com.


-
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] pylab crashes python

2007-01-25 Thread Ken McIvor
Jan,

What versions of wxPython and matplotlib are you using?

Ken

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

2007-01-25 Thread Margherita Vittone wiersma
Hello,
i have made bar charts but I was wondering if there is a way to show on top of 
each bar
the real content/counts, like a label; I generate static plots so the dynamic 
showing of the
counts on focusing on the bar does not help me. 
Thank you much for some feedback.
best regards

Margherita

-
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] dvipng version error running matplotlib on windows

2007-01-25 Thread Darren Dale
On Tuesday 23 January 2007 20:09, bernski wrote:
> I am getting a dvipng version error when I run:
>
> import Numeric,matplotlib
> matplotlib.use('Agg')
> from matplotlib import rc
> rc('text', usetex=True)
> import pylab
>
> pylab.figure(num=1,figsize=(6,4))
> pylab.plot(Numeric.arange(10), Numeric.arange(10)**2)
> pylab.axis( (0,9,0,81) )
> pylab.xlabel(r'$width$')
> pylab.ylabel(r'$Height (km)$')
>
> filename='c:/test.png'
> pylab.savefig(filename,dpi=100)
> pylab.clf()
>
> here is a bit of the error message:
>
> File "C:\Python24\Lib\site-packages\matplotlib\texmanager.py", line 58, in
> get_dvipng_version
> raise RuntimeError('Could not obtain dvipng version')
> RuntimeError: Could not obtain dvipng version
>
> I have  winXP, python2.4, matplotlib0.87, miktex2.5.  I downloaded
> dvipng1.9 from sourceforge, but have no idea what to do with it.  do i need
> a 'c' compiler to install it?

See http://www.scipy.org/Cookbook/Matplotlib/UsingTex for information about 
package requirements and configuration. If you can't get dvipng through 
MikTeX, and the sourceforge page doesnt distribute a windows executable, then 
you will have to compile it.

Darren

-
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] pylab crashes python

2007-01-25 Thread Lou Pecora
I found an example script  I got to work for WX.  I
guessed that the ws.app had to be deleted to plot
again.  Here it is (the part that runs the code and
creates the WX.app:

if __name__ == '__main__':
app = wx.PySimpleApp(0)
frame = PlotFigure()
frame.plot_data()
frame.Show()
app.MainLoop()
#must delete app before reusing for wxPython
del app#  << THE CRUCIAL STEP
print "done with plot 1"

app = wx.PySimpleApp(0)
frame = PlotFigure()
frame.plot_data()
frame.Show()
app.MainLoop()
print "done with plot 2"


Without the delete you get a crash/hang.


 


-- Lou Pecora
  My views are my own.


 

We won't tell. Get more on shows you hate to love 
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265 

-
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] Ipython and python2.5

2007-01-25 Thread Alan G Isaac
On Wed, 24 Jan 2007, Fernando Perez apparently wrote: 
> Let us know if this is not enough or if you have any other issues. 

How about for Windows users?  You list as dependencies:

# PyWin32 from http://starship.python.net/crew/mhammond

But that link is broken.  Can we just use 
pywin32-210.win32-py2.5.exe from 
http://sourceforge.net/projects/pywin32/ ?

# CTypes from http://starship.python.net/crew/theller/ctypes 

But that should not apply to Python 2.5+, right?

# PyReadline for Windows from 
http://projects.scipy.org/ipython/ipython/wiki/PyReadline/Intro

But the correct link now seems to be
http://ipython.scipy.org/moin/PyReadline/Intro
and the binary installer instructions there are Python 
2.4 specific.  (I assume they translate directly to 2.5.)

So I installed PyWin32 as above, and PyReadline.  I do NOT 
see IPython in my Start Menu nor when I look at 
Install/Uninstall programs.  I do see an IPython folder in 
Lib/site-packages, so I guessed I should call Shell.py, but 
this is either a bad guess or IPython is failing: I briefly
see a shell labelled IPython flash on screen and disappear.

Thank you,
Alan Isaac

PS I did copy pyreadlineconfig.ini from pyreadline-egg/pyreadline/config to 
my homedir.





-
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] object-oriented interface

2007-01-25 Thread Jonathon Anderson

Could someone point me to documentation of the oo interface? Everything
seems to reference pylab (even examples that say they're for the oo
interface).

~jonathon
-
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