Package: python-matplotlib
Version: 0.82-5
Severity: important
Hi,
While trying to work on a script, I discovered that using subplot() with
3 arguments always return the same axis instance, whereas using the
singe argument shortcut will create and return a new axis. This makes it
difficult to plot in a non interactive program.
Example script exhibiting the problem:
#!/usr/bin/env python
from pylab import *
def f(t):
s1 = cos(2*pi*t)
e1 = exp(-t)
return multiply(s1,e1)
t1 = arange(0.0, 5.0, 0.1)
t2 = arange(0.0, 5.0, 0.02)
t3 = arange(0.0, 2.0, 0.01)
subplot(2,1,1)
l = plot(t1, f(t1), 'bo', t2, f(t2), 'k--')
setp(l, 'markerfacecolor', 'g')
grid(True)
title('A tale of 2 subplots')
ylabel('Damped oscillation')
subplot(2,1,2)
plot(t3, cos(2*pi*t3), 'r.')
grid(True)
xlabel('time (s)')
ylabel('Undamped')
show()
(adapted from http://matplotlib.sourceforge.net/examples/subplot_demo.py
which works correctly)
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-2-686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
Versions of packages python-matplotlib depends on:
ii python2.3-matplotlib 0.82-5 python based plotting system (Pyth
python-matplotlib recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]