You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(12) |
Sep
(12) |
Oct
(56) |
Nov
(65) |
Dec
(37) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(59) |
Feb
(78) |
Mar
(153) |
Apr
(205) |
May
(184) |
Jun
(123) |
Jul
(171) |
Aug
(156) |
Sep
(190) |
Oct
(120) |
Nov
(154) |
Dec
(223) |
| 2005 |
Jan
(184) |
Feb
(267) |
Mar
(214) |
Apr
(286) |
May
(320) |
Jun
(299) |
Jul
(348) |
Aug
(283) |
Sep
(355) |
Oct
(293) |
Nov
(232) |
Dec
(203) |
| 2006 |
Jan
(352) |
Feb
(358) |
Mar
(403) |
Apr
(313) |
May
(165) |
Jun
(281) |
Jul
(316) |
Aug
(228) |
Sep
(279) |
Oct
(243) |
Nov
(315) |
Dec
(345) |
| 2007 |
Jan
(260) |
Feb
(323) |
Mar
(340) |
Apr
(319) |
May
(290) |
Jun
(296) |
Jul
(221) |
Aug
(292) |
Sep
(242) |
Oct
(248) |
Nov
(242) |
Dec
(332) |
| 2008 |
Jan
(312) |
Feb
(359) |
Mar
(454) |
Apr
(287) |
May
(340) |
Jun
(450) |
Jul
(403) |
Aug
(324) |
Sep
(349) |
Oct
(385) |
Nov
(363) |
Dec
(437) |
| 2009 |
Jan
(500) |
Feb
(301) |
Mar
(409) |
Apr
(486) |
May
(545) |
Jun
(391) |
Jul
(518) |
Aug
(497) |
Sep
(492) |
Oct
(429) |
Nov
(357) |
Dec
(310) |
| 2010 |
Jan
(371) |
Feb
(657) |
Mar
(519) |
Apr
(432) |
May
(312) |
Jun
(416) |
Jul
(477) |
Aug
(386) |
Sep
(419) |
Oct
(435) |
Nov
(320) |
Dec
(202) |
| 2011 |
Jan
(321) |
Feb
(413) |
Mar
(299) |
Apr
(215) |
May
(284) |
Jun
(203) |
Jul
(207) |
Aug
(314) |
Sep
(321) |
Oct
(259) |
Nov
(347) |
Dec
(209) |
| 2012 |
Jan
(322) |
Feb
(414) |
Mar
(377) |
Apr
(179) |
May
(173) |
Jun
(234) |
Jul
(295) |
Aug
(239) |
Sep
(276) |
Oct
(355) |
Nov
(144) |
Dec
(108) |
| 2013 |
Jan
(170) |
Feb
(89) |
Mar
(204) |
Apr
(133) |
May
(142) |
Jun
(89) |
Jul
(160) |
Aug
(180) |
Sep
(69) |
Oct
(136) |
Nov
(83) |
Dec
(32) |
| 2014 |
Jan
(71) |
Feb
(90) |
Mar
(161) |
Apr
(117) |
May
(78) |
Jun
(94) |
Jul
(60) |
Aug
(83) |
Sep
(102) |
Oct
(132) |
Nov
(154) |
Dec
(96) |
| 2015 |
Jan
(45) |
Feb
(138) |
Mar
(176) |
Apr
(132) |
May
(119) |
Jun
(124) |
Jul
(77) |
Aug
(31) |
Sep
(34) |
Oct
(22) |
Nov
(23) |
Dec
(9) |
| 2016 |
Jan
(26) |
Feb
(17) |
Mar
(10) |
Apr
(8) |
May
(4) |
Jun
(8) |
Jul
(6) |
Aug
(5) |
Sep
(9) |
Oct
(4) |
Nov
|
Dec
|
| 2017 |
Jan
(5) |
Feb
(7) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(3) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
1
(2) |
2
(1) |
3
(6) |
4
(19) |
5
(11) |
6
(2) |
7
|
|
8
(5) |
9
(13) |
10
(25) |
11
(28) |
12
(6) |
13
(10) |
14
(3) |
|
15
(4) |
16
(8) |
17
(16) |
18
(12) |
19
(16) |
20
(12) |
21
(11) |
|
22
(13) |
23
(11) |
24
(22) |
25
(28) |
26
(11) |
27
(8) |
28
(7) |
|
29
(19) |
30
(3) |
31
(20) |
|
|
|
|
|
From: John H. <jdh...@ac...> - 2006-01-10 22:24:56
|
>>>>> "Stephen" == Stephen Walton <ste...@cs...> writes:
Stephen> template = file('matplotlibrc.template').read() IOError:
Stephen> [Errno 2] No such file or directory:
Stephen> 'matplotlibrc.template' error: Bad exit status from
Stephen> /var/tmp/rpm-tmp.93117 (%build)
Stephen> RPM build errors: Bad exit status from
Stephen> /var/tmp/rpm-tmp.93117 (%build) error: command 'rpmbuild'
Stephen> failed with exit status 1
Add matplotlibrc.template to the MANIFEST.in file...
JDH
|
|
From: Stephen W. <ste...@cs...> - 2006-01-10 22:14:09
|
Charlie Moad wrote:
> Latest release of matplotlib available with the usual slew of
>updates.
>
I just downloaded 0.86 and "python setup.py bdist_rpm" on a Fedora Core
4 machine fails with the following output at the end. "python setup.py
build" succeeds on the same machine in the same terminal window.
+ env 'CFLAGS=-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32
-march=i386 -mtune=pentium4 -fasynchronous-unwind-tables' python
setup.py build
installing data to lib/python2.4/site-packages/matplotlib/mpl-data
pygtk present but import failed
Using default library and include directories for Tcl and Tk because a
Tk window failed to open. You may need to define DISPLAY for Tk to work
so that setup can determine where your libraries are located.
pygtk present but import failed
Traceback (most recent call last):
File "setup.py", line 281, in ?
template = file('matplotlibrc.template').read()
IOError: [Errno 2] No such file or directory: 'matplotlibrc.template'
error: Bad exit status from /var/tmp/rpm-tmp.93117 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.93117 (%build)
error: command 'rpmbuild' failed with exit status 1
|
|
From: Alan G I. <ai...@am...> - 2006-01-10 22:06:35
|
On Tue, 10 Jan 2006, John Hunter apparently wrote: > My guess is that the default rc file is using GTKAgg -- > I usually reset this to TkAgg for the windows distro, and > manually set Numeric for the numerix setting. In this > release the rc file is autogenerated depending on what was > found at build time. > Quick fix: just set TkAgg (or whatever) in your rc manually. I made that change in matplotlib/mpl-data/matplotlibrc Is that what you meant? Anyway, I seem to be up and running. Thanks! Alan |
|
From: Christopher B. <Chr...@no...> - 2006-01-10 21:58:45
|
Patient: doctor, it hurts when I do this.
Doctor: Then don't do that!
Charles R. Twardy wrote:
> try:
> import pylab # DON'T DO: from pylab import *
...
> from networkx import *
And don't do that either!
Namespaces are one honking great idea: let's do more of those!
-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
Chr...@no...
|
|
From: Christopher B. <Chr...@no...> - 2006-01-10 21:56:25
|
John Hunter wrote:
> What you want to do is use a line collection, see
John, you're fabulous, thanks. I think that's just what I was looking
for. I figured that MPL would be designed in a way that this should be
doable.
-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
Chr...@no...
|
|
From: John H. <jdh...@ac...> - 2006-01-10 21:54:33
|
>>>>> "Alan" == Alan G Isaac <ai...@am...> writes:
Alan> Something seems to be broken here ... Alan Isaac
My guess is that the default rc file is using GTKAgg -- I usually
reset this to TkAgg for the windows distro, and manually set Numeric
for the numerix setting. In this release the rc file is
autogenerated depending on what was found at build time.
Quick fix: just set TkAgg (or whatever) in your rc manually.
Charlie: make a mental note on the bug-fix build to automatically set
the right defaults in setup.py for win32 builds.
JDH
|
|
From: Alan G I. <ai...@am...> - 2006-01-10 21:19:33
|
Something seems to be broken here ...
Alan Isaac
Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pylab
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "C:\Python24\Lib\site-packages\pylab.py", line 1, in ?
from matplotlib.pylab import *
File "C:\Python24\Lib\site-packages\matplotlib\pylab.py", line 217, in ?
new_figure_manager, draw_if_interactive, show = pylab_setup()
File "C:\Python24\Lib\site-packages\matplotlib\backends\__init__.py", line 24,
in pylab_setup
globals(),locals(),[backend_name])
File "C:\Python24\Lib\site-packages\matplotlib\backends\backend_gtkagg.py", li
ne 10, in ?
from backend_gtk import gtk, FigureManagerGTK, FigureCanvasGTK,\
File "C:\Python24\Lib\site-packages\matplotlib\backends\backend_gtk.py", line
6, in ?
import gobject
ImportError: No module named gobject
>>>
|
|
From: Charlie M. <cw...@gm...> - 2006-01-10 21:01:13
|
Latest release of matplotlib available with the usual slew of
updates. Notable changes are:
- Support for numpy (was scipy_core)
- Support for setuptools (eggs to appear soon on cheeseshop)
-- more on eggs: http://peak.telecommunity.com/DevCenter/setuptoo=
ls
- Matplotlib data files moved inside the matplotlib module for
better portability
http://sourceforge.net/project/showfiles.php?group_id=3D80706&package_id=3D=
82474&release_id=3D384391
http://cheeseshop.python.org/pypi/matplotlib/
Full changelog below....
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
2006-1-9 Released 0.86
2006-1-4 Changed to support numpy (new name for scipy_core) - TEO
2006-1-4 Added Mark's scaled axes patch for shared axis
2005-12-28 Added Chris Barker's build_wxagg patch - JDH
2005-12-27 Altered numerix/scipy to support new scipy package
structure - TEO
2005-12-20 Fixed Jame's Boyles date tick reversal problem - JDH
2005-12-20 Added Jouni's rc patch to support lists of keys to set on -
JDH
2005-12-12 Updated pyparsing and mathtext for some speed enhancements
(Thanks Paul McGuire) and minor fixes to scipy numerix and
setuptools
2005-12-12 Matplotlib data is now installed as package_data in
the matplotlib module. This gets rid of checking the
many possibilities in matplotlib._get_data_path() - CM
2005-12-11 Support for setuptools/pkg_resources to build and use
matplotlib as an egg. Still allows matplotlib to exist
using a traditional distutils install. - ADS
2005-12-03 Modified setup to build matplotlibrc based on compile time
findings. It will set numerix in the order of scipy,
numarray, Numeric depending on which are founds, and
backend as in preference order GTKAgg, WXAgg, TkAgg, GTK,
Agg, PS
2005-12-03 Modified scipy patch to support Numeric, scipy and numarray
=09 Some work remains to be done because some of the scipy
=09 imports are broken if only the core is installed. Eg
=09 apparently we need from scipy.basic.fftpack import * rather
=09 than from scipy.fftpack import *
2005-12-03 Applied some fixes to Nicholas Young's nonuniform image
patch
2005-12-01 Applied Alex Gontmakher hatch patch - PS only for now
2005-11-30 Added Rob McMullen's EMF patch
2005-11-30 Added Daishi's patch for scipy
2005-11-30 Fixed out of bounds draw markers segfault in agg
2005-11-28 Got TkAgg blitting working 100% (cross fingers) correctly. - CM
2005-11-27 Multiple changes in cm.py, colors.py, figure.py, image.py,
contour.py, contour_demo.py; new _cm.py, examples/image_masked.p=
y.
1) Separated the color table data from cm.py out into
a new file, _cm.py, to make it easier to find the actual
code in cm.py and to add new colormaps. Also added
some line breaks to the color data dictionaries. Everything
from _cm.py is imported by cm.py, so the split should be
transparent.
2) Enabled automatic generation of a colormap from
a list of colors in contour; see modified
examples/contour_demo.py.
3) Support for imshow of a masked array, with the
ability to specify colors (or no color at all) for
masked regions, and for regions that are above or
below the normally mapped region. See
examples/image_masked.py.
4) In support of the above, added two new classes,
ListedColormap, and no_norm, to colors.py, and modified
the Colormap class to include common functionality. Added
a clip kwarg to the normalize class. Reworked color
handling in contour.py, especially in the ContourLabeller
mixin.
- EF
2005-11-25 Changed text.py to ensure color is hashable. EF
|
|
From: Glen W. M. <Gle...@sw...> - 2006-01-10 20:52:54
|
On Tue, Jan 10, 2006 at 01:09:59PM -0700, Bowen, Brian M wrote: > Is there an easy way to add a toolbar to the "embedding_in_qt.py" > example? Have you found this link already? http://www.scipy.org/wikis/topical_software/QtWithIPythonAndDesigner Glen |
|
From: Bowen, B. M <bm...@sa...> - 2006-01-10 20:10:29
|
Is there an easy way to add a toolbar to the "embedding_in_qt.py" example?=20 Thanks, Brian |
|
From: Bowen, B. M <bm...@sa...> - 2006-01-10 20:03:07
|
It is fixed in 0.86.
Thanks,
Brian =20
-----Original Message-----
From: John Hunter [mailto:jdh...@ac...]=20
Sent: Monday, January 09, 2006 4:59 PM
To: Bowen, Brian M
Cc: mat...@li...
Subject: Re: [Matplotlib-users] setp/xticklabel problem
>>>>> "Bowen," =3D=3D Bowen, Brian M <bm...@sa...> writes:
Brian> TypeError: list indices must be integers Traceback (most
Brian> recent call last): File Brian>
=20
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py",
Brian> line 188, in motion_notify_event Brian>
FigureCanvasBase.motion_notify_event(self, x, y) File Brian>
"/usr/lib/python2.4/site-packages/matplotlib/backend_bases.py",
Brian> line 797, in motion_notify_event func(event) File Brian>
"/usr/lib/python2.4/site-packages/matplotlib/backend_bases.py",=20
I think this is fixed in CVS, and the 0.86 pre-release that Charlie Moad
has generously put together
http://euclid.uits.iupui.edu/~cmoad/matplotlib-0.86.win32-py2.3.exe
http://euclid.uits.iupui.edu/~cmoad/matplotlib-0.86.win32-py2.4.exe
=20
http://cheeseshop.python.org/packages/source/m/matplotlib/matplotlib-0.8
6.tar.gz
Let us know!
JDH
|
|
From: Charles R. T. <ct...@gm...> - 2006-01-10 19:37:11
|
Alas, another question. I want to place text inside the plot, just below the top xaxis ticks. Previously I had hacked this as: sp.text(0.5, 0.96, title_str, font, transform=3Dax.transAxes) But as the graphs get taller, the text gets too far away from the top line. What I think I want is to put the top-aligned text at something like: (top - markerlen) in pixel coordinates. But where to find the properties and transforms I need? Many thanks. I will await a question I can answer. -C -- Charles R. Twardy |
|
From: Charles R. T. <ct...@gm...> - 2006-01-10 19:28:44
|
Hello all,
When using twinx(), how do I keep the second axis from drawing xticklabels?
The default rewrites the xticklabels, making them blurry. I tried this:
ax2 =3D twinx()
plot(xvals, yvals, 'g')
ax2.set_xticklabels([])
But that turns off ALL xticklabels (even for the original axis).
-Charles
--
Charles R. Twardy
|
|
From: Charles R. T. <ct...@gm...> - 2006-01-10 19:20:42
|
(first reply mistakenly went only to Giandomenico) Hi, I have a guess. I didn't download NetworkX to give it a try, but both pylab and networkx have draw() functions, and the example just does a "from blah import *" for both. At a guess, the pylab draw() function is clobbering the intended NetworkX draw() function. Try this: try: import pylab # DON'T DO: from pylab import * except: print "pylab not found: see https://networkx.lanl.gov/Drawing.html for i= nfo" raise from networkx import * G=3Dgrid_2d_graph(4,4) #4x4 grid pos=3Dspring_layout(G) draw(G,pos,alpha=3D0.5,with_labels=3DFalse) draw(G,pos,nodelist=3D[1,2,3,4],node_color=3D'b') # blue pylab.savefig("grid.png") # save as png pylab.show() # display > File "draw_colors.py", line 27, in ? > draw(G,pos,node_color=3Darray([G.degree(v) for v in G])) > TypeError: draw() takes exactly 1 non-keyword argument (2 given) -- Charles R. Twardy |
|
From: John H. <jdh...@ac...> - 2006-01-10 18:38:30
|
>>>>> "Christopher" == Christopher Barker <Chr...@no...> writes:
Christopher> I was afraid I'd have to do that. Do you have some
Christopher> fairly simple sample code, that would help some.
What you want to do is use a line collection, see
http://matplotlib.sf.net/matplotlib.collections.py. You can specify a
list of line segments which can be in one coordinate system (eg
oriented lines with origin at 0 and lengths in points) and pass the
collection a list off offsets which can be in another coordinate
system (eg the locations of the lines in data coordinates). This is
just the kinds of thing that is useful for a vector field, where you
want oriented lines at x,y coords in data coords but lengths and
orientation of the lines in some physical coordinate system.
Here is a little example -- you'll also want to read up on mpl
transforms at http://matplotlib.sf.net/matplotlib.transforms.html
from matplotlib.transforms import scale_transform, Value
from matplotlib.collections import LineCollection
from pylab import figure, show
import matplotlib.numerix as nx
N = 100
angles = nx.mlab.rand(N)*2*nx.pi
radii = nx.mlab.rand(N)*144. # max line should be 2 inches long
segments = [((0,0), (r*nx.cos(theta), r*nx.sin(theta))) for r,theta in zip(radii, angles)]
offsets = zip(10*nx.mlab.rand(N),20*nx.mlab.randn(N))
fig = figure()
ax = fig.add_subplot(111)
coll = LineCollection(segments, offsets=offsets,
transOffset=ax.transData, # transforms the x,y offsets
)
# points/72.*dpi = pixels -- see matplotlib.transforms
trans = scale_transform(fig.dpi/Value(72.), fig.dpi/Value(72.))
coll.set_transform(trans) # the points to pixels transform
ax.add_collection(coll)
ax.set_xlim(0,10)
ax.set_ylim(0,20)
show()
|
|
From: Christopher B. <Chr...@no...> - 2006-01-10 18:05:24
|
Rich Shepard wrote:
> Have you looked at PSTricks?
I haven't looked at that for ages. I need this in a wxPython app, as
well as other formats, so MPL only would be nice.
> I know that it can draw this type of plot
> from real data in a file, and I suspect that once you define the arrows as going
> from one point to another, that's how they'll stay. If the spacing between
> those points varies with the size of the image, I don't know of any
> application that will automatically recalculate each vector and keep it a
> fixed length.
actually, it's the other way around in a way: the application has to
re-calculate the data to make the length change. After all the actual
drawing happens in pixel coordinates.
> All the 2D drawing/plotting programs I've used (e.g., Gri,
> tgif, jpicedt, PSTricks, ipe)
Yes and no. In MPL, and others, some things are fixed: text size,
markers, etc. In this case, what I want is really like a marker, except
that each marker needs to be rotated differently.
The PNG I enclosed was generated with my wxPython FloatCanvas. I
designed that to present data graphically in arbitrary coordinates, and
it felt very natural to have objects that done' scale as you zoom: text,
dots, bitmaps, line widths, etc, etc. I also have scalable objects.
However, I haven't written code to handle axes, etc, so I prefer to use
MPL for traditional plotting.
Hugo Gamboa wrote:
> I'm quite new to matplotlib, and I had a problem with zooming, and I
> solved it by catching the draw event, obtain the new axis, recalculate
> the data and presenting it again.
I was afraid I'd have to do that. Do you have some fairly simple sample
code, that would help some.
I'm also going to dig into how markers are done. maybe I can leverage
that somehow. What I'm hoping to find is a way to define a new patch or
something, that can draw in pixel (or pt) units at a location in axes
coordinates. Maybe I'm just stuck thinking about it in that way because
of how I've written my code, but it seems useful.
I'd be interested in what John thinks about this:
-- is there an easy way to do this?
-- If not, do you thing it would be worth adding?
Are you reading, John?
thanks,
-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
Chr...@no...
|
|
From: Eric F. <ef...@ha...> - 2006-01-10 17:55:42
|
Chris, Your previous post did get through. This is something that I will need also, and I would like to look into it, but I haven't been able to find the time yet. I have worked on this sort of thing in Matlab--I added the vector-plotting capability (m_vec) to Rich Pawlowicz's m_map package. (I realize that what you are talking about is a little bit different from what m_vec does, but it requires the same type of control over how plotting is done.) My guess is that in the long run it will be possible to do it much more easily and directly in mpl than in Matlab, but this may require some modifications or additions to mpl internals. Eric Christopher Barker wrote: > Hi all, > > This is a re-post, which I don't' ordinarily do, but I got not a single > reply, so I wonder if it never actually got posted. > > I'm trying to figure out how to draw something in pixel or "real" > units(inches, mm, etc). what I want is to be able to place an object > according to axes units, but not have it change size as I zoom in and > out, kind of like a marker. > > The big picture: > > I'm trying to make a plot that shows a vector value over time (in this > case ocean current velocity and direction). The x axis is time, the y > axis is magnitude, and at each point I want to draw an arrow pointing in > the direction of the vector at that time. However, I don't want the size > (or angle) of that arrow to change as you zoom in and out. > > Any ideas how I can accomplish this? > > See the enclosed PNG for an example with fake data. > > -Chris > > > > > ------------------------------------------------------------------------ > |
|
From: Sophana K. <sop...@ar...> - 2006-01-10 17:41:37
|
Hi
I'm trying to compile matplotlib on centos3 (redhat el3). it has python
2.2.3
I get a gcc error:
building 'matplotlib._na_cntr' extension
gcc -DNDEBUG -O2 -g -pipe -march=i386 -mcpu=i686 -D_GNU_SOURCE -fPIC
-fPIC -I/usr/local/include -I/usr/include -I. -I/usr/include/python2.2
-c src/_na_cntr.c -o build/temp.linux-i686-2.2/_na_cntr.o -DNUMARRAY=1
-O3 -Wall -fPIC -m32 -Wa,--32
src/_na_cntr.c:1701: error: parse error before "init_na_cntr"
src/_na_cntr.c:1702: warning: return type defaults to `int'
src/_na_cntr.c: In function `init_na_cntr':
src/_na_cntr.c:1706: warning: `return' with no value, in function
returning non-void
src/_na_cntr.c:1712: warning: `return' with no value, in function
returning non-void
src/_na_cntr.c:1716: warning: dereferencing type-punned pointer will
break strict-aliasing rules
error: command 'gcc' failed with exit status 1
seems that PyMODINIT_FUNC is unknown.
I added
#define PyMODINIT_FUNC DL_EXPORT(void) in cntr.c
and it compiles.
But, I try to launch a example, I get the same error:
python image_demo2.py
Traceback (most recent call last):
File "image_demo2.py", line 2, in ?
from pylab import *
File "/usr/lib/python2.2/site-packages/pylab.py", line 1, in ?
from matplotlib.pylab import *
File "/usr/lib/python2.2/site-packages/matplotlib/__init__.py", line
869, in ?
rcParams = rc_params()
File "/usr/lib/python2.2/site-packages/matplotlib/__init__.py", line
817, in rc_params
fname = matplotlib_fname()
File "/usr/lib/python2.2/site-packages/matplotlib/__init__.py", line
793, in matplotlib_fname
fname = os.path.join(get_configdir(), 'matplotlibrc')
File "/usr/lib/python2.2/site-packages/matplotlib/__init__.py", line
261, in wrapper
ret = func(*args, **kwargs)
File "/usr/lib/python2.2/site-packages/matplotlib/__init__.py", line
351, in _get_configdir
if not _is_writable_dir(h):
File "/usr/lib/python2.2/site-packages/matplotlib/__init__.py", line
199, in _is_writable_dir
t = tempfile.TemporaryFile(dir=p)
TypeError: TemporaryFile() got an unexpected keyword argument 'dir'
Is python2.2 no more supported?
Thanks
|
|
From: Bowen, B. M <bm...@sa...> - 2006-01-10 16:28:55
|
=20 I am trying to add graphing support to a qt application, which runs on Linux. Can anyone tell me the advantages and disadvantages of using pylab over qwt? Thanks, Brian Bowen |
|
From: Giandomenico S. <gia...@po...> - 2006-01-10 16:15:20
|
Hi, I've a problem with the draw function. I've tried to execute the python code available at the web-page https://networkx.lanl.gov/wiki/file/networkx/trunk/doc/examples/draw_colors.py It uses matplotlib + networkx. By executing this code, I receive the following error message: File "draw_colors.py", line 27, in ? draw(G,pos,node_color=array([G.degree(v) for v in G])) TypeError: draw() takes exactly 1 non-keyword argument (2 given) By executing similar codes, I receive similar message. It seems I have a problem with the draw function. Can you help me to understand why I have this problem and how is it possible to solve it? I suppose it's related to the use of matplotlib more then to the use of networkx. Many thanks. All the best, Nic |
|
From: Fernando P. <Fer...@co...> - 2006-01-10 09:02:13
|
[ Sorry for the cross-post, but I know that a number of matplotlib member= s are also ipython users, and not necessarily on the ipython lists. This relea= se has a number of significant enhancements, so hopefully this will be of interest. Please send any ipython-related requests directly to the ipyth= on lists, to keep the matplotlib ones clear of such traffic. ] Hi all, After a long hiatus (0.6.15 was out in June of 2005), I'm glad to announc= e the release of IPython 0.7.0, with lots of new features (the _code_ diff from= the previous release is almost 9000 lines long, so there's quite a bit in her= e). IPython's homepage is at: http://ipython.scipy.org and downloads are at: http://ipython.scipy.org/dist I've provided: - source downloads (.tar.gz) - RPMs (for Python 2.3 and 2.4, built under Fedora Core 3). - Python Eggs (http://peak.telecommunity.com/DevCenter/PythonEggs). - a native win32 installer for both Python 2.3 and 2.4. Fedora users should note that IPython is now officially part of the Extra= s repository, so they can get the update from there as well (though it may = lag by a few days). Debian, Fink and BSD packages for this version should be coming soon, as = the respective maintainers (many thanks to Jack Moffit, Andrea Riciputi and D= ryice Liu) have the time to follow their packaging procedures. A lot of new features have gone into this release, the bulk of which were driven by user feedback and requests, and more importantly by patches fro= m IPython users. I greatly appreciate these contributions, and hope they w= ill continue in the future. In particular, thanks to Vivian de Smedt, Jorgen Stenarsson and Ville Vainio, who contributed large patches with much of t= he new significant functionality. I've tried to provide credit in the notes below and the project's ChangeLog, please let me know if I've accidentall= y ommitted you. Many thanks to Enthought for their continued hosting support for IPython. Release notes ------------- *** WARNING: compatibility changes *** - IPython now requires at least Python 2.3. If you can't upgrade = from 2.2, you'll need to continue using IPython 0.6.15. *** End warning. As always, the NEWS file can be found at http://ipython.scipy.org/NEWS, a= nd the full ChangeLog at http://ipython.scipy.org/ChangeLog. The highlights= of this release follow. - Wildcard patterns in searches, supported by the %psearch magic,= as well as the '?' operator. Type psearch? for the full details. Extremely usefu= l, thanks to J=F6rgen Stenarson. - Major improvements to the pdb mode. It now has tab-completion,= syntax highlighting and better stack handling. Thanks to Vivian De Smedt for th= is work (double-points given that pdb has a well-deserved reputation for bei= ng very unpleasant to work with). - Support for input with empty lines. If you have auto-indent on= , this means that you need to either hit enter _twice_, or add/remove a space to= your last blank line, to indicate you're done entering input. These changes a= lso allow us to provide copy/paste of code with blank lines. - Support for pasting multiline input even with autoindent on. T= he code will look wrong on screen, but it will be stored and executed correctly internally. - TAB on an otherwise empty line actually inserts a tab. Conveni= ent for indenting (for those who don't use autoindent). - Significant improvements for all multithreaded versions of ipyt= hon.=20 Now, if your threaded code raises exceptions, instead of seeing a crash report= , a normal (colored, verbose, etc.) exception is printed. Additionally, if y= ou have pdb on, it will activate in your threaded code. Very nice for interactively debugging GUI programs. - Many fixes to embedded ipython, including proper handling of gl= obals and tab completion. - New -t and -o options to %logstart, to respectively put timesta= mps in your logs, and to also log all output (tagged as #[Out]#). The default l= og name is now ipython_log.py, to better reflect that logs remain valid Pyth= on source. - Lightweight persistence mechanism via %store. IPython had alwa= ys had %save, to write out a group of input lines directly to a file. Now, its %store companion stores persistently (associated with your profile, and auto-loaded at startup) not just source, but any python variable which ca= n be pickled. Thanks to Matt Wilkie for the request, and ville for the patche= s. - Macros (created with %macro) can now be edited with %edit (just= say '%edit macroname'). This, coupled with the ability to store them persistently, makes the macro system much more useful. - New guarantee that, if you disable autocalling, ipython will ne= ver call getattr() on your objects. This solves problems with code that has side-effects on attribute access. Note that TAB-completion inevitably do= es call getattr(), so not all forms of side-effects can be eliminated. - Unicode support for prompts. - Improvements to path handling under win32. Thanks to Ville and= Jorgen for the patches. - Improvements to pager under win32. Contributed by Alexander Be= lchenko. - Demo class for interactive demos using ipython. - %pycat magic for showing syntax-highlighted python sources - support for download_url in setup.py, so PyPI (and setuptools) = work transparently with ipython. - New exit/quit magics to exit, conditionally asking (%Exit/%Quit= don't) - Automatically reopen the editor if your file has a syntax error= in it (when using the %edit system). - New notation N-M for indicating the range of lines N,...,M (inc= luding both endpoints), in magic commands such as %macro, %save and %edit. - The IPython instance has a new attribute, .meta, which is an em= pty namespace (an instance of 'class Bunch:pass'). This is meant to provide extension writers with a safe namespace to store metadata of any kind, wi= thout the risk of name clashes with IPython's internals. - Added tab-completion support for objects with Traits, a sophist= icated type definition system for Python: http://code.enthought.com/traits. - Several patches related to Emacs support. Thanks to Alex Schmo= lck and John Barnard. - New 'smart' autocall mode, which avoids autocalling if a functi= on with no arguments is the input. The old 'full' mode can be obtained by settin= g the autocall parameter in the ipythonrc to 2, or via the %autocall magic. - A large amount of internal reorganization and cleanup, to allow= the code to be more readily moved over to the chainsaw branch (see below). - Many other small fixes and enhancements. The changelog has ful= l=20 details. Enjoy, and as usual please report any problems. Regards, Fernando. |
|
From: Christopher B. <Chr...@no...> - 2006-01-10 00:51:12
|
Hi all,
This is a re-post, which I don't' ordinarily do, but I got not a single
reply, so I wonder if it never actually got posted.
I'm trying to figure out how to draw something in pixel or "real"
units(inches, mm, etc). what I want is to be able to place an object
according to axes units, but not have it change size as I zoom in and
out, kind of like a marker.
The big picture:
I'm trying to make a plot that shows a vector value over time (in this
case ocean current velocity and direction). The x axis is time, the y
axis is magnitude, and at each point I want to draw an arrow pointing in
the direction of the vector at that time. However, I don't want the size
(or angle) of that arrow to change as you zoom in and out.
Any ideas how I can accomplish this?
See the enclosed PNG for an example with fake data.
-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
Chr...@no...
--
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
Chr...@no...
|
|
From: Philip A. <pa...@eo...> - 2006-01-10 00:51:05
|
John Hunter writes: > matplotlib embeds the entire font file into the generated, and if on > your system some huge font is being found by the font matching > mechanism, it may be screwing up your printer driver. Try setting the > > ps.useafm : True > > option in your rc file and see if this helps. > > Also, if you run with --verbose-debug it will give you information > about which font files are being loaded (and lots of other useless > junk too... > Thanks, John -- if I set (ps.useafm : True) and also (text.usetex : False) then findfont locates a helvetca font and the file prints fine: (http://clouds.eos.ubc.ca/~phil/matplotlib_postscript/debug_notex.txt, http://clouds.eos.ubc.ca/~phil/matplotlib_postscript/file1_notex.ps) If I set (text.usetex : True) then (ps.useafm : True) is overridden, dvips is invoked and I get the same erroneous postscript file as previously. generated by dvips using cmr10: (http://clouds.eos.ubc.ca/~phil/matplotlib_postscript/debug_withtex.txt, http://clouds.eos.ubc.ca/~phil/matplotlib_postscript/file1.ps) (Note that TeX/latex is definitely working on this machine). best, Phil |
|
From: John H. <jdh...@ac...> - 2006-01-10 00:08:01
|
>>>>> "Bowen," == Bowen, Brian M <bm...@sa...> writes:
Brian> TypeError: list indices must be integers Traceback (most
Brian> recent call last): File Brian>
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py",
Brian> line 188, in motion_notify_event Brian>
FigureCanvasBase.motion_notify_event(self, x, y) File Brian>
"/usr/lib/python2.4/site-packages/matplotlib/backend_bases.py",
Brian> line 797, in motion_notify_event func(event) File Brian>
"/usr/lib/python2.4/site-packages/matplotlib/backend_bases.py",
I think this is fixed in CVS, and the 0.86 pre-release that Charlie
Moad has generously put together
http://euclid.uits.iupui.edu/~cmoad/matplotlib-0.86.win32-py2.3.exe
http://euclid.uits.iupui.edu/~cmoad/matplotlib-0.86.win32-py2.4.exe
http://cheeseshop.python.org/packages/source/m/matplotlib/matplotlib-0.86.tar.gz
Let us know!
JDH
|
|
From: John H. <jdh...@ac...> - 2006-01-10 00:04:29
|
>>>>> "Philip" == Philip Austin <pa...@eo...> writes:
Philip> Thanks for that. I found my printer manual and toggled
Philip> error printing. I get a simalr message:
Philip> ERROR: invalidfont OFFENDING COMMAND: stringwidth
Philip> STACK:
Philip> (psmarker0)
matplotlib embeds the entire font file into the generated, and if on
your system some huge font is being found by the font matching
mechanism, it may be screwing up your printer driver. Try setting the
ps.useafm : True
option in your rc file and see if this helps.
Also, if you run with --verbose-debug it will give you information
about which font files are being loaded (and lots of other useless
junk too...
JDH
|