Re: [Matplotlib-users] crash on MacOS X

2006-09-15 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>,
 Christopher Barker <[EMAIL PROTECTED]> wrote:

> Russell E Owen wrote:
> > Interesting idea. I'm not sure I'd know how to use more than one numerix 
> > option at once,
> 
> well, I dint' mean more than one numerix option, exactly. What I meant 
> was that MPL is using numarray, but another module you've imported is 
> using Numeric (or numpy or whatever).

Ah. I can guarantee that's happening. Some of my code uses Numeric (due 
to high speed on short arrays) and some uses numarray (because I started 
using it for all new code when it looked like it would take over). I 
hope to switch to numpy for everything once the dust settles, but I 
don't want to force my users to all move at once (a lot of them are on 
unix and will have to manually install numpy -- no big deal, but I get 
complaints every time I require a new package).

> ...Does it happen with wxAgg? or just plain ol Agg? also try the non-agg TK 
> back-end.

I don't have wx or gtk installed, so no easy way to test those backends.

It does not crash with plain old Agg (but of course I don't see any 
plot).

I'll be happy to try the "non-agg TK back-end" if you can tell me what 
setting to use for it. I didn't see it in the matplotlibrc's list of 
options (but WXAgg is also missing from that particular list), nor on 
the "Which backend should I use?" page.

> If not, then you've apparently found a tkAgg bug.
> 
> TK has always been a bit of a second-class citizen on the Mac -- why 
> haven't you switched to wx yet? ;-)

I started this project several years ago and at the time Tcl/Tk was the 
only game in town for Mac+unix+windows cross-platform support. 
Admittedly the Mac support was poor, but it has gotten much better, and 
I like Tkinter pretty well overall. It would be a major job to switch 
now and I doubt I can justify the expense and time. Sometimes I wish I'd 
used Java, even though the I strongly prefer Python, just to get a 
standard GUI.

I'm bulding matplotlib from source now, just to see if there might be 
some quirk about the installer package.

-- Russell


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] crash on MacOS X

2006-09-15 Thread Christopher Barker
Russell E Owen wrote:
> Interesting idea. I'm not sure I'd know how to use more than one numerix 
> option at once,

well, I dint' mean more than one numerix option, exactly. What I meant 
was that MPL is using numarray, but another module you've imported is 
using Numeric (or numpy or whatever).

 > but it did inspire me to try a few things:

> backend  : TkAgg
> numerix  : numarray
> interactive  : True
> and the crash still happens:
> from pylab import *
> plot([1,2,3,4])

> I also tried setting numerix to Numeric and it still happens.

Does it happen with wxAgg? or just plain ol Agg? also try the non-agg TK 
back-end.

If not, then you've apparently found a tkAgg bug.

TK has always been a bit of a second-class citizen on the Mac -- why 
haven't you switched to wx yet? ;-)

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

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] crash on MacOS X (more info)

2006-09-15 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>,
 "Russell E. Owen" <[EMAIL PROTECTED]> 
 wrote:

> I'm trying to figure out a matplotlib crash on MacOS X.
> 
> When I try to plot anything the program exits with:
> alloc: invalid block: 0xa08acb4: a 74 0
...
some followup info:
- This is with matplotlib 0.87.5, but also seen with 0.87.4 and 0.87.2
- This is with ActiveState Tcl/Tk 8.4.11, not 8.4.13 as I originally said

I tried the test again with "debug-annoying" level logging. Before 
running it I:
- deleted everything in ~/.matplotlibrc.
- .../site-packages/matplotlib/mpl-data to ~/.matplotlibrc and stripped 
out all but  a few options (something I'd never tried before, but I'm 
hoping it'll leave me a matplotlibrc file that is compatible with future 
versions of matplotlib, for a change):

backend  : TkAgg
numerix  : numarray 
interactive  : False
verbose.level  : debug-annoying
verbose.fileo  : sys.stdout

I then ran the test:
>>> from pylab import *
>>> plot([1,2,3,4])
>>> show()

The crash happens after the show():
...
RendererAgg.draw_text
RendererAgg._get_agg_font
alloc: invalid block: 0xa08acb4: a 74 0

The full log is here:


One other thing that may be relevant (and is in the log): whenever I run 
matplotlib for the first time after deleting the font cache, I always 
get a spate of warnings like this:
455: UserWarning: Could not open font file 
/System/Library/Fonts/LastResort.dfont

-- Russell


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] crash on MacOS X

2006-09-15 Thread Russell E. Owen
I'm trying to figure out a matplotlib crash on MacOS X.

When I try to plot anything the program exits with:
alloc: invalid block: 0xa08acb4: a 74 0

I first saw this with a program that uses the object interface, but then 
I tried the simplest pylab demo I could find and the same thing happened.
Setup:
- matplotlib installed from the universal package at pythonmac.org
  configured to use numarray (1.5.1) and the TkAgg back end
- MacOS X 10.4.3 on a PPC mac
- ActiveState Aqua Tcl/Tk 8.4.13
- seen with two different versions of python:
  - ActiveState python 2.4.3 (PPC-only)
  - universal Python 2.4.3 (with _tkinter.so modified to find my Tcl/Tk)

Any ideas?

-- Russell


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] y-axis autoscale problem

2006-09-15 Thread Richard Harvey Chapman
Attached is an example. It seems like it autosizes to the initial  
data and from then on only uses that for autoscale purposes. I only  
noticed that while making this test app because I let it autoscale  
the x axis in this one.


R.
#!/usr/bin/env pythonw

 Standard Python
import sys
import os

 Installed Modules
if 0:
import wxversion
wxversion.select('2.6.3.3')

import wx
import wx.lib.scrolledpanel as scrolled

import matplotlib
from matplotlib.numerix import *

if 1:
matplotlib.use('WXAgg')
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvasWx
from matplotlib.backends.backend_wxagg import NavigationToolbar2WxAgg as NavigationToolbar2Wx
else:
matplotlib.use('WX')
from matplotlib.backends.backend_wx import FigureCanvasWx as FigureCanvasWx
from matplotlib.backends.backend_wx import NavigationToolbar2Wx as NavigationToolbar2Wx


from matplotlib.figure import Figure


class AnalysisPlotFrame(wx.Frame):
def __init__(self, parent, title=None):
title = 'Untitled Plot Analysis'

# Initialize the Frame base class
wx.Frame.__init__(self,parent,-1,title,size=(550,350),name='plot')

# bind the close event
self.Bind(wx.EVT_CLOSE, self.OnCloseWindow)


# Create a place to store all x and y data for each axes and an X time variable
self.Xt=10
#self.Xt=len(self.ct_file.saw_data[0])

# This will hold references to each axes created along with all of the data plotted
self.axes_data = {}

# a panel for all of the controls
panel = scrolled.ScrolledPanel(self, -1)

# Create the main figure
plot_list = [(self.GetSinFigure,{})]
cols_plot_list = [(self.GetSinFigure,{})]
figure = Figure()
base_plot_number = len(plot_list) * 100 + 10
#base_plot_number = len(cols_plot_list) * 100 + 20
for n, plot in enumerate(plot_list):
figure_function, args = plot
if not figure_function:
continue
print base_plot_number + n + 1
figure = figure_function(panel, subplot=base_plot_number + n + 1, figure=figure, **args)

# Create the canvas
self.canvas = FigureCanvasWx(panel, -1, figure)

# Catch the event when the xaxis is changed on any of the axes so we can keep them
# all together
self.axes_list = figure.get_axes()

def on_xlim_changed(axis):
#print 'Axes updated'
xlim = axis.get_xlim()
self.set_all_xlim(xlim)

# TODO: Insert that hack where we override the default axes.set_xlim with our own
# For now, we have emit defaulting to True in axes.py
for axis in self.axes_list:
axis.connect('xlim_changed', on_xlim_changed)

# Compute an x window range and set that
xlim = self.ComputeXlim()
self.set_all_xlim(xlim)


# Create a sizer for the frame
self.sizer = wx.BoxSizer(wx.VERTICAL)

# Add the toolbar now so it will be at the top on Windows (no effect on Mac)
self.add_toolbar(panel)  # comment this out for no toolbar

# Add the plots
self.sizer.Add(self.canvas, 1, wx.LEFT | wx.TOP | wx.GROW)

# Create an update button which we'll use to step through the updates
btn = wx.Button(panel, -1, 'Update')
self.Bind(wx.EVT_BUTTON, self.OnUpdateButton, btn)
btn.SetDefault()

self.sizer.Add(btn, 0, wx.ALL, 10)

panel.SetSizerAndFit(self.sizer)
panel.SetupScrolling()

# resize the frame to fit the children
self.SetClientSize(panel.GetSize())


def set_all_xlim(self, xlim):
for axis in self.axes_list:
axis.set_xlim(xlim, emit=False)

def ComputeXlim(self):
width = 60
step = 0.01
window_size = width * step
if (self.Xt * step) < window_size:
xlim = [0, window_size]
else:
xlim = [(self.Xt * step) - window_size, (self.Xt * step)]
print self.Xt, xlim

return xlim


def OnUpdateButton(self, event):
incr = 170

self.Xt = self.Xt + incr
xlim = self.ComputeXlim()
self.set_all_xlim(xlim)

for axes, plot_data in self.axes_data.items():
for line, xy in zip(axes.get_lines(), plot_data):
line.set_data(xy[0][:self.Xt], xy[1][:self.Xt])

locator = axes.yaxis.get_major_locator()
print axes.get_ylim()
ylim = locator.autoscale()
print ylim
axes.set_ylim(ylim, emit=False)
print axes.get_ylim()

#if axes.get_autoscale_on():
#print 'Setting autoscale'
#axes.set_autoscale_on(False)
axes.autoscale_view(scalex=False, scaley=True)
print axes.get_ylim()
axes.autoscale_view(s

Re: [Matplotlib-users] y-axis autoscale problem

2006-09-15 Thread John Hunter
> "Richard" == Richard Harvey Chapman <[EMAIL PROTECTED]> writes:

Richard> I'm using the latest matplotlib with wxPython 2.6.2.1 and
Richard> the WxAGG backend. I have plotted a figure with 5
Richard> subplots. I intentionally only plotted the first 10
Richard> points of all of my data traces so I can simulate the
Richard> look of real-time data. That is, I keep my xlim set to
Richard> (now-60, now) for a window showing the last 60 seconds
Richard> only. For the y-axis, I'd like it to autoscale, but it
Richard> never does. I've tried calling
Richard> axes.autoscale_view(scalex=False, scaley=True) for each
Richard> subplot, but with no effect. For each update, I take each
Richard> line in each subplot and update the x and y data with
Richard> set_data(). I just add a few points every few seconds. Am
Richard> I missing something? Why can't I get the y autoscaling to
Richard> work? Autoscaling is on by default, and I've called
Richard> get_autoscale_on() to confirm it.

Are you calling fig.canvas.draw() after the autoscale?

If you are still having troubles, please post a complete example

JDH

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] y-axis autoscale problem

2006-09-15 Thread Richard Harvey Chapman
I'm using the latest matplotlib with wxPython 2.6.2.1 and the WxAGG backend. I have plotted a figure with 5 subplots. I intentionally only plotted the first 10 points of all of my data traces so I can simulate the look of real-time data. That is, I keep my xlim set to (now-60, now) for a window showing the last 60 seconds only. For the y-axis, I'd like it to autoscale, but it never does. I've tried calling axes.autoscale_view(scalex=False, scaley=True) for each subplot, but with no effect. For each update, I take each line in each subplot and update the x and y data with set_data(). I just add a few points every few seconds. Am I missing something? Why can't I get the y autoscaling to work? Autoscaling is on by default, and I've called get_autoscale_on() to confirm it.Thank you,Harvey R. 

PGP.sig
Description: This is a digitally signed message part
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] plot_date + xdata & ydata must be same len

2006-09-15 Thread Brinley, Chris
Title: Re: [Matplotlib-users] plot_date + xdata & ydata must be same len






Thanks,
I actually got a work around now. Thanks for the follow.

Chris Brinley ([EMAIL PROTECTED])
Orbitz - AA.com Operations
Phone: 312-894-4787
Cell: 312-479-8193
Pager: 866-292-3508

-Original Message-
From: John Hunter
To: Brinley, Chris
CC: matplotlib-users@lists.sourceforge.net
Sent: Fri Sep 15 11:29:07 2006
Subject: Re: [Matplotlib-users] plot_date + xdata & ydata must be same len

> "Brinley," == Brinley, Chris <[EMAIL PROTECTED]> writes:

    Chris> Hi, I am having trouble getting a variation of the
    Chris> tutorial plot_date() to work. I get the classic:
    Chris> RuntimeError: xdata and ydata must be the same length.

Hmm, didn't know this had achieved classic status

    Chris> The tutorial on the matplotlib site shows how to plot
    Chris> dates using whole days. I am plotting using multiple
    Chris> days showing each minute of the day.

    Chris> Before I run plot_date I setup to datetime vars and
    Chris> subtract them to get the timedelta so.. timedelta =
    Chris> enddate - startdate.

    Chris> I then use drange(startdate, enddate, timedelta)

This doesn't look right, since your delta equals the entire range.
Usually you want your delta to be smaller.

    Chris> I pass this range into the plot_date function with my y
    Chris> axis data, which I have confirmed is numeric and the
    Chris> same number of entries as the number of datetimes I want
    Chris> to plot.

Maybe you made a mistake here?  It sometimes happens when working
interactively that you add some bad data to a plot, realize your
mistake, then add good data, but still see the error.  When this
happens, it is usually because your "hold" state is on and the
previous data is still in your plot.  You can clear the figure with
fig.clf()

If you are still having a problem, post a complete example that we
can run.

    Chris> Clearly I am incorrectly telling plotlib the intervals
    Chris> of time I want to plot. What is the best way to plot out
    Chris> an interday chart that has ticks for each min?

  from matplotlib.dates import MinuteLocator
  ...

  # every minute
  ax.xaxis.set_major_locator(MinuteLocator())

  # or every 5 minutes
  ax.xaxis.set_major_locator(MinuteLocator(nx.arange(0,61,5)))

You'll probably also want to set the Formatter -- see the user's guide
chapter on tick locating and formatting and also

  http://matplotlib.sf.net/matplotlib.ticker.html
  http://matplotlib.sf.net/matplotlib.dates.html

and these examples

  mpl/examples> grep -l Locator *.py
  dashtick.py
  date_demo1.py
  date_demo2.py
  date_demo_convert.py
  date_demo_rrule.py
  finance_demo.py
  major_minor_demo1.py
  major_minor_demo2.py
  stock_demo.py




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] plot_date + xdata & ydata must be same len

2006-09-15 Thread John Hunter
> "Brinley," == Brinley, Chris <[EMAIL PROTECTED]> writes:

Chris> Hi, I am having trouble getting a variation of the
Chris> tutorial plot_date() to work. I get the classic:
Chris> RuntimeError: xdata and ydata must be the same length.

Hmm, didn't know this had achieved classic status

Chris> The tutorial on the matplotlib site shows how to plot
Chris> dates using whole days. I am plotting using multiple
Chris> days showing each minute of the day.

Chris> Before I run plot_date I setup to datetime vars and
Chris> subtract them to get the timedelta so.. timedelta =
Chris> enddate - startdate.

Chris> I then use drange(startdate, enddate, timedelta)

This doesn't look right, since your delta equals the entire range.
Usually you want your delta to be smaller.

Chris> I pass this range into the plot_date function with my y
Chris> axis data, which I have confirmed is numeric and the
Chris> same number of entries as the number of datetimes I want
Chris> to plot.

Maybe you made a mistake here?  It sometimes happens when working
interactively that you add some bad data to a plot, realize your
mistake, then add good data, but still see the error.  When this
happens, it is usually because your "hold" state is on and the
previous data is still in your plot.  You can clear the figure with
fig.clf()

If you are still having a problem, post a complete example that we
can run.

Chris> Clearly I am incorrectly telling plotlib the intervals
Chris> of time I want to plot. What is the best way to plot out
Chris> an interday chart that has ticks for each min?

  from matplotlib.dates import MinuteLocator
  ...

  # every minute
  ax.xaxis.set_major_locator(MinuteLocator()) 

  # or every 5 minutes
  ax.xaxis.set_major_locator(MinuteLocator(nx.arange(0,61,5)))

You'll probably also want to set the Formatter -- see the user's guide
chapter on tick locating and formatting and also

  http://matplotlib.sf.net/matplotlib.ticker.html
  http://matplotlib.sf.net/matplotlib.dates.html

and these examples

  mpl/examples> grep -l Locator *.py
  dashtick.py
  date_demo1.py
  date_demo2.py
  date_demo_convert.py 
  date_demo_rrule.py
  finance_demo.py
  major_minor_demo1.py
  major_minor_demo2.py
  stock_demo.py

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Pylab window won't close

2006-09-15 Thread John Hunter
> "axel" == axel breuer <[EMAIL PROTECTED]> writes:

axel> Hi, I run python + pylab in Linux.

axel> When I type:
 import pylab pylab.plot([1,2,3])
axel> A window pops up but nothing is drawn in it (!?!). So I
axel> type:
 pylab.draw()
axel> The plot is then correctly drawn ( but I still do not see
axel> the lower buttons of the toolbar !?!)

axel> My problem is that I cannot close the plot window nor by
axel> clicking the "upper-right-cross" button of that wndow, nor
axel> by typing:
 pylab.close()
axel> The window remains displayed...

You must uses a threaded python shell to use GTK* in interactive mode,
as described at http://matplotlib.sf.net/interactive.html

Recommended is 

  > ipython -pylab

or 

  > ipython -gthread

JDH

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Fwd: How do a simple poit plots?

2006-09-15 Thread John Hunter
> "Esdras" == Esdras Caleb <[EMAIL PROTECTED]> writes:

Esdras> its this tipe of grafics I want see anexed img grafics of
Esdras> experimental poits, tehrtea are a way to do it in
Esdras> mathplot?  2006/9/12, David Chin

x, y = nx.mlab.rand(2,1000)
plot(x, y, '+')

JDH

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] plot_date + xdata & ydata must be same len

2006-09-15 Thread Brinley, Chris








Hi,

 

I am having trouble getting a variation of the tutorial plot_date()
to work. I get the classic: RuntimeError: xdata and ydata must
be the same length.

The tutorial on the matplotlib site shows how to plot dates using
whole days. I am plotting using multiple days showing each minute of the day. 

Before I run plot_date I setup to datetime vars and subtract
them to get the timedelta so.. timedelta = enddate – startdate.

I then use drange(startdate, enddate, timedelta)

I pass this range into the plot_date function with my y axis
data, which I have confirmed is numeric and the same number of entries as the number
of datetimes I want to plot.

Clearly I am incorrectly telling plotlib the intervals of time
I want to plot. What is the best way to plot out an interday chart that has ticks
for each min?

 

Thanks






-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Pylab window won't close

2006-09-15 Thread axel . breuer

Hi,

I run python + pylab in Linux.

When I type:
>>> import pylab
>>> pylab.plot([1,2,3])
A window pops up but nothing is drawn
in it (!?!). So I type:
>>> pylab.draw()
The plot is then correctly drawn ( but
I still do not see the lower buttons of the toolbar !?!)

My problem is that I cannot close the
plot window nor by clicking the "upper-right-cross" button of
that wndow, nor by typing:
>>> pylab.close()
The window remains displayed...

Does anyone have an idea where this
behavior comes from ? I would really like to be able to close my plot windows.

I have following lines in matplotlibrc:
backend : GTKAgg
interactive : True
toolbar : toolbar2

Thanks in advance for your support,

Axel


This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

-

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Problem installing 0.87.5

2006-09-15 Thread David Strozzi
Folks,

I am trying to install matplotlib 0.87.5 by compiling it.  I'm using
python 2.5 RC1 (yes - bleeding edge) on opensuse 10.1 on an amd64
chip.  python 2.5rc1 and numpy 1.0b2.  I'll try to install 1.0b5 but I
don't think that's the cause.  I've made sure all the suse packages
needed for matplotlib are installed.  However, I get gcc compiler
errors (using gcc 4.1) included below.  Any thoughts?

GTK requires pygtk
TKAgg requires TkInter
GTKAgg requires pygtk
running install
running build
running build_py
running build_ext
building 'matplotlib._agg' extension
C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -fPIC

compile options: '-Iagg23/include -Isrc -Iswig
-I/usr/local/include/python2.5 -c'
gcc: src/agg.cxx
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
src/agg.cxx: In function 'int SWIG_Python_ConvertPtr(PyObject*,
void**, swig_type_info*, int)':
src/agg.cxx:1231: error: invalid conversion from 'const char*' to 'char*'
src/agg.cxx: In function 'void SWIG_Python_FixMethods(PyMethodDef*,
swig_const_info*, swig_type_info**, swig_type_info**)':
src/agg.cxx:27624: error: invalid conversion from 'const char*' to 'char*'
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
src/agg.cxx: In function 'int SWIG_Python_ConvertPtr(PyObject*,
void**, swig_type_info*, int)':
src/agg.cxx:1231: error: invalid conversion from 'const char*' to 'char*'
src/agg.cxx: In function 'void SWIG_Python_FixMethods(PyMethodDef*,
swig_const_info*, swig_type_info**, swig_type_info**)':
src/agg.cxx:27624: error: invalid conversion from 'const char*' to 'char*'
error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3
-Wall -Wstrict-prototypes -fPIC -Iagg23/include -Isrc -Iswig
-I/usr/local/include/python2.5 -c src/agg.cxx -o
build/temp.linux-x86_64-2.5/src/agg.o" failed with exit status 1

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] 0.87.5 Installation alongside Numpy/SciPy [OS X]

2006-09-15 Thread David Andrews
Okay, I appear to have my self in dependency hell now :s
I'm trying to get a working installation of numpy,scipy and mpl
together.  I'm going about this using the scipy superpack download,
which contains all three and a few supporting things.  Trouble is, the
build of mpl contained in the superpack is missing it's __init__.py
file - so python doesnt recognise it as a module to import.

It was suggested by the SciPy crowd that I should pinch the
__init__.py from a 'working' package of mpl and using that to make the
module work.  Sounds a bit of a bodged way of doing this, and indeed,
using the __init__.py from the most recent mpl release produces the
following:

>>> from pylab import *
Traceback (most recent call last):
  File "", line 1, in ?
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/pylab.py",
line 1, in ?
from matplotlib.pylab import *
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py",
line 200, in ?
from axes import Axes, PolarAxes
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axes.py",
line 15, in ?
from axis import XAxis, YAxis
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axis.py",
line 25, in ?
from font_manager import FontProperties
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/font_manager.py",
line 39, in ?
from matplotlib import ft2font
ImportError: Failure linking new module:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/ft2font.so:
Library not loaded: /usr/local/lib/libfreetype.6.dylib
  Referenced from:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/ft2font.so
  Reason: image not found

libfreetype issues.

Anyone got a solution to this problem that will get me a working
install of all 3 modules?

Cheers,

Dave


On 15/09/06, Charlie Moad <[EMAIL PROTECTED]> wrote:
> mpl 0.87.5 is compiled against numpy 1.0b5.  It should remain
> compatible with future release of 1.0.
>
> On 9/15/06, David Andrews <[EMAIL PROTECTED]> wrote:
> > Hi everyone,
> >
> > I'm confused as to what version of NumPy this most recent release of
> > matplotlib wants to be used with - I get the following message:
> >
> > >>> from pylab import *
> > RuntimeError: module compiled against version 102 of C-API but
> > this version of numpy is 100
> > ...etc
> >
> > This suggests to me that my current version of numpy is out of date.
> > The most recent version of numpy on their sourceforge site is
> > apparently 0.9.8, and a beta version - 1.0b5
> >
> > Cheers,
> >
> > Dave
> >
> > -
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job 
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > ___
> > Matplotlib-users mailing list
> > Matplotlib-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >
>

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] 0.87.5 Installation alongside Numpy/SciPy [OS X]

2006-09-15 Thread Charlie Moad
mpl 0.87.5 is compiled against numpy 1.0b5.  It should remain
compatible with future release of 1.0.

On 9/15/06, David Andrews <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
> I'm confused as to what version of NumPy this most recent release of
> matplotlib wants to be used with - I get the following message:
>
> >>> from pylab import *
> RuntimeError: module compiled against version 102 of C-API but
> this version of numpy is 100
> ...etc
>
> This suggests to me that my current version of numpy is out of date.
> The most recent version of numpy on their sourceforge site is
> apparently 0.9.8, and a beta version - 1.0b5
>
> Cheers,
>
> Dave
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] 0.87.5 Installation alongside Numpy/SciPy [OS X]

2006-09-15 Thread David Andrews
Hi everyone,

I'm confused as to what version of NumPy this most recent release of
matplotlib wants to be used with - I get the following message:

>>> from pylab import *
RuntimeError: module compiled against version 102 of C-API but
this version of numpy is 100
...etc

This suggests to me that my current version of numpy is out of date.
The most recent version of numpy on their sourceforge site is
apparently 0.9.8, and a beta version - 1.0b5

Cheers,

Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] how can I disable ygrid?

2006-09-15 Thread Volker Lorrmann
John Hunter wrote:
>> "Volker" == Volker Lorrmann <[EMAIL PROTECTED]> writes:
>> 
>
> Volker> Hi guys, how can i tell matplotlib to only show the xgrid
> Volker> (grid without y -lines ;) ) I´ve searched and googled a
> Volker> lot. But i can´t find a solution.
>
> You should be able to toggle the grid separately with
>
>   ax.xaxis.grid(True)
>   ax.yaxis.grid(False)
>
> Note that the grid command takes optional kwargs to control the major
> and minor tick gridding.
>
> JDH
>   
Thanks for your help.
I´ve tried to work with axvline instead, but sadley avline can´t handle 
vectors/arrays.

Volker

-- 
---
Volker Lorrmann
Universität Würzburg
Experimentelle Physik 6
Am Hubland
97074 Wuerzburg
Germany
Tel: +49 931 888 5770
[EMAIL PROTECTED]



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users