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: Christopher B. <Chr...@no...> - 2006-01-11 21:50:51
|
Charlie Moad wrote: > I was maintaining mpkgs here: > http://sda.iu.edu/links.shtml?prim=lab_links, but they are a little > out of date. Mine too. I almost got 0.85 built, and then you went and released 0.86! > That and the are a pain to maintain. Why's that? I do have a little patch to setup.py and friends to add the StaticLibs path, but that's it. I keep meaning to give that patch to John, but haven't gotten around to it. > I have been > playing with eggs lately and prefer them. Maybe it's time to look into that. How do you install an egg? > You can > check them out here, http://euclid.uits.iupui.edu/~cmoad/mpleggs/ will do. > I usually stick with Apple's bundled python. I also build for wx and > tk since both come with tiger. Are you building Tiger only then? Damn, there are a lot of python+OS-X combinations to support! Also the wx version that comes with Tiger is pretty old, so I'm not sure how helpful that is. Boy, this is a pain! > I don't really have a preference on > numerix. I try to support both Numeric and numarray, but I'll be adding numpy soon. I really think the Python-OS-X community needs to have a fairly unified pile of packages to install. pythonmac.org is a good place for them, only because it's there. My goal is to have a MPL that works with the other packages there, so you can do one stop shopping. I'm running 10.3, so I currently build versions for Apple's 2.3 and Bob I's 2.4.1. Both of those have Numeric, numarray and wxPython packages on that site. Those need some updating, but they are there. If the three of us could come up with a unified way to build these, and get that way into the official MPL setup.py, then it should be easy to maintain: download the latest tarball and run a script. (OK, then debug the problems, but what can you do?) -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: Charles R. T. <ct...@gm...> - 2006-01-11 21:38:38
|
Nic, I downloaded NetworkX from sourceforge and unpacked it. Then: cd networkx-0.26 python setup.py build && sudo python setup.py install cd doc/examples python draw_colors.py It ran fine. I changed the code to avoid all the "import *". Try this? #!/usr/bin/env python """ Draw a graph with matplotlib. You must have matplotlib for this to work. """ __author__ =3D """Aric Hagberg (ha...@la...)""" __date__ =3D "$Date: 2005-03-22 13:57:46 -0700 (Tue, 22 Mar 2005) $" __credits__ =3D """""" __revision__ =3D "$Revision: 831 $" # Copyright (C) 2004 by # Aric Hagberg <ha...@la...> # Dan Schult <ds...@co...> # Pieter Swart <sw...@la...> # Distributed under the terms of the GNU Lesser General Public License # http://www.gnu.org/copyleft/lesser.html try: import pylab except: print "pylab not found: see https://networkx.lanl.gov/Drawing.html for = info" raise import networkx as net G =3D net.grid_2d_graph(4,4) #4x4 grid pos =3D net.spring_layout(G) net.draw(G,pos,alpha=3D0.5,with_labels=3DFalse) net.draw(G,pos,nodelist=3D[1,2,3,4],node_color=3D'b') # blue pylab.savefig("grid.png") # save as png pylab.show() # display -- Charles R. Twardy |
|
From: Charlie M. <cw...@gm...> - 2006-01-11 21:23:08
|
On 1/11/06, Christopher Barker <Chr...@no...> wrote: > Christopher Fonnesbeck wrote: > > wx has always given me headaches, so I dont bother with it anymore. > > Since ActivePython 2.4.2 for Mac already comes with Tk, I just try and > > make sure it works for TkAgg. > > well, I need wx, so that's a given for me. I never use TK, but I want to > support it. > > Will the same package work for the ActivePython install as the "official > unoffical" one, or do we need different installers? Also, does > activestate provide a place to put packages built for their distro? > > > I just need a portable matplotlib installer, as my MCMC module require= s > > it. I have been generating eggs out of convenience, but I am not > > married to the format (in fact, I have been generating mpkg installers > > as well. > > I've been doing only mpkg. What advantage do Eggs have? I kind of like > using the native OS-X way -- users know what to do with them. > > Have you had to do any hacks to the setup.py and friends? > > What do you do with libpng and libfreetype? I was maintaining mpkgs here, http://sda.iu.edu/links.shtml?prim=3Dlab_links, but they are a little out of date. That and the are a pain to maintain. I have been playing with eggs lately and prefer them. I include libpng and freetype statically in the egg, and it seems to work for me. You can check them out here, http://euclid.uits.iupui.edu/~cmoad/mpleggs/, if you want. I usually stick with Apple's bundled python. I also build for wx and tk since both come with tiger. I don't really have a preference on numerix. |
|
From: Christopher B. <Chr...@no...> - 2006-01-11 20:31:28
|
Christopher Fonnesbeck wrote:
> wx has always given me headaches, so I dont bother with it anymore.
> Since ActivePython 2.4.2 for Mac already comes with Tk, I just try and
> make sure it works for TkAgg.
well, I need wx, so that's a given for me. I never use TK, but I want to
support it.
Will the same package work for the ActivePython install as the "official
unoffical" one, or do we need different installers? Also, does
activestate provide a place to put packages built for their distro?
> I just need a portable matplotlib installer, as my MCMC module requires
> it. I have been generating eggs out of convenience, but I am not
> married to the format (in fact, I have been generating mpkg installers
> as well.
I've been doing only mpkg. What advantage do Eggs have? I kind of like
using the native OS-X way -- users know what to do with them.
Have you had to do any hacks to the setup.py and friends?
What do you do with libpng and libfreetype?
-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 F. <ch...@tr...> - 2006-01-11 19:42:39
|
On Jan 11, 2006, at 2:14 PM, Christopher Barker wrote: > The way I'm doing it, I'm statically linking libfreetype and > libpng, so that we end up with a stand-along module that works on > any OS-X (10.3 an above, anyway). I've made one for the Apple > supplied 2.3 or the framework build 2.4.1. > > It supports wx, tk, and Agg. It doesn't support GTK, because I > don't know of a GTK package that is built outside of fink or > darwinports. wx has always given me headaches, so I dont bother with it anymore. Since ActivePython 2.4.2 for Mac already comes with Tk, I just try and make sure it works for TkAgg. > > Do you guys have similar goals? is it time to use Eggs? I have no > particular desire to do this, but I do want a point+click installer > that the folks I work with can use. I just need a portable matplotlib installer, as my MCMC module requires it. I have been generating eggs out of convenience, but I am not married to the format (in fact, I have been generating mpkg installers as well. C. -- Christopher J. Fonnesbeck Population Ecologist, Marine Mammal Section Fish & Wildlife Research Institute (FWC) St. Petersburg, FL Adjunct Assistant Professor Warnell School of Forest Resources University of Georgia Athens, GA T: 727.235.5570 E: chris at trichech.us |
|
From: Christopher B. <Chr...@no...> - 2006-01-11 19:14:41
|
> On 1/11/06, Christopher Fonnesbeck <ch...@tr...> wrote: > >>I have built some matplotlib installers for OSX. I've been working on this too. It's be nice if we coordinated our efforts, and got a single package up on pythonmac.org/packages. The way I'm doing it, I'm statically linking libfreetype and libpng, so that we end up with a stand-along module that works on any OS-X (10.3 an above, anyway). I've made one for the Apple supplied 2.3 or the framework build 2.4.1. It supports wx, tk, and Agg. It doesn't support GTK, because I don't know of a GTK package that is built outside of fink or darwinports. Do you guys have similar goals? is it time to use Eggs? I have no particular desire to do this, but I do want a point+click installer that the folks I work with can use. -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: Charlie M. <cw...@gm...> - 2006-01-11 17:43:15
|
With the new setuptools support it is assumed that if you have
setuptools installed, you are going to use it. Hence, if you run
bdist with setuptools installed, the mpl-data folder will get stuck in
the wrong place. You shouldn't be able to do the reverse since you
can't run bdist_egg without setuptools. In any case, the mpl-data
folder should ALWAYS be put inside the matplotlib module folder. This
is where it is found at runtime.
On 1/11/06, Christopher Fonnesbeck <ch...@tr...> wrote:
> I have built some matplotlib installers for OSX, but some users are
> running into problems running them afterwards:
>
> >>> from pylab import *
> Traceback (most recent call last):
> File "<stdin>", 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/__i nit__.py", line 620, in ?
> defaultParams =3D {
> File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
> python2.4/site-packages/matplotlib/__i nit__.py", line 266, in wrapper
> ret =3D func(*args, **kwargs)
> File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
> python2.4/site-packages/matplotlib/__i nit__.py", line 427, in
> _get_data_path
> raise RuntimeError('Could not find the matplotlib data files')
> RuntimeError: Could not find the matplotlib data files
>
> It appears that the mpl.fata subdirectory is missing; is there any
> way of ensuring that everything is included in the installer?
>
> Thanks,
> C.
>
> --
> Christopher J. Fonnesbeck
>
> Population Ecologist, Marine Mammal Section
> Fish & Wildlife Research Institute (FWC)
> St. Petersburg, FL
>
> Adjunct Assistant Professor
> Warnell School of Forest Resources
> University of Georgia
> Athens, GA
>
> T: 727.235.5570
> E: chris at trichech.us
>
>
>
>
>
|
|
From: Christopher F. <ch...@tr...> - 2006-01-11 17:12:27
|
I have built some matplotlib installers for OSX, but some users are
running into problems running them afterwards:
>>> from pylab import *
Traceback (most recent call last):
File "<stdin>", 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/__i nit__.py", line 620, in ?
defaultParams = {
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/matplotlib/__i nit__.py", line 266, in wrapper
ret = func(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/matplotlib/__i nit__.py", line 427, in
_get_data_path
raise RuntimeError('Could not find the matplotlib data files')
RuntimeError: Could not find the matplotlib data files
It appears that the mpl.fata subdirectory is missing; is there any
way of ensuring that everything is included in the installer?
Thanks,
C.
--
Christopher J. Fonnesbeck
Population Ecologist, Marine Mammal Section
Fish & Wildlife Research Institute (FWC)
St. Petersburg, FL
Adjunct Assistant Professor
Warnell School of Forest Resources
University of Georgia
Athens, GA
T: 727.235.5570
E: chris at trichech.us
|
|
From: Mark B. <ma...@gm...> - 2006-01-11 15:17:09
|
Ahah, I just blindly copied the format string from the manual, which contains a typo. The format string in the manual: %b %d. What it should be: %b %y (might want to change this in the manual sometime so that fig 5.2 is correct). This will get you jan 92, feb 92, mar 92 and s= o on. For full details on all the date format strings, see http://docs.python.org/lib/module-time.html BTW, very slick how easy the labels can be rotated! Mark On 1/11/06, John Hunter <jdh...@ac...> wrote: > > >>>>> "Mark" =3D=3D Mark Bakker <ma...@gm...> writes: > > Mark> Hello all - I tried to have dates along the x-axis and tried > Mark> to plot it in the month-year format. There is a nice > Mark> example in Fig. 5.2 of the manual. > > Mark> Problem is, the year always plots as year 01, even in > Mark> Fig. 5.2! Check it out. > > Mark> I just tried this on 0.86, and it is still wrong. > > Mark> Easy to fix? Easy workaround? > > Look at the function matplotlib.dates.date_ticker_factory, which looks > at the date range of your axis and returns a locator and date string > formatter. > > There must be an error in one of the format strings. I don't have > time to look at it right now, but it is fairly easy to grok the code. > Sometimes these errors occur just if we accidentally used an upper > case letter in a format string or vice versa... > > I you hurry, you can probably send a fix in time for the 0.86.1 > bugfix release :-) > > > JDH > |
|
From: John H. <jdh...@ac...> - 2006-01-11 15:07:11
|
>>>>> "Charles" == Charles R Twardy <ct...@gm...> writes:
Charles> I don't think so. I looked at that. Maybe I'm mistaken,
Charles> but seems that in the end, it just places the text at y
Charles> position 0.9 in Axes coordinates. That's just below the
Charles> markers for small subplots, but WAY below the markers for
Charles> tall skinny ones. I want it to place the text at a fixed
Charles> absolute y position of just below the markers. As the
Charles> graph gets taller, that will go from .9 to .95 to .99,
Charles> etc. in Axes coordinates.
Charles> So one approach would be to find the Axes coordinates for
Charles> the lower limit of the tick markers. Any ideas?
This is a bit tricky but doable. The transformation that places the
xticks is a "blend" of the data transform and the axes transform, in
that the x value of the x ticks is a data coord, and the y value is an
axes coord(0 is bottom, 1 is top). The transform module provides a
helper function to build such a beast
from matplotlib.transforms import blend_xy_sep_transform
trans = blend_xy_sep_transform(ax.transData, ax.transAxes)
If you then make a call to text
ax.text(.2,1,'hi mom', transform=trans)
it will be placed at the top of the yaxis at 0.2 on the xaxis.
What you want to do is offset this by a couple of points below the
tick like. To do this, you need to set an offset on the transform,
where the coordinates of the offset are in points. The offset is
always an xy tuple with a transform to transform that tuple into
figure coords. In the case of points, you want to do
scale = fig.dpi/Value(72.) # points -> pixels
point_trans = scale_transform(scale, scale)
trans.set_offset((0,-ticksize-2),point_trans)
Here is a complete example: now when you resize the figure window or
pan/zoom your text will remain 2 points below the ticks...
from matplotlib import rcParams
import matplotlib.numerix as nx
from pylab import figure, show
from matplotlib.transforms import blend_xy_sep_transform, Value, scale_transform
ticksize = rcParams['xtick.major.size']
fig = figure()
ax = fig.add_subplot(111)
x,y = nx.mlab.rand(2,100)
ax.plot(x,y)
locs = nx.arange(0,1.0,0.2)
ax.set_xticks(locs)
trans = blend_xy_sep_transform(ax.transData, ax.transAxes)
scale = fig.dpi/Value(72.) # points -> pixels
point_trans = scale_transform(scale, scale)
# the offset is an xy tup and a transformation instance for that tuple
trans.set_offset((0,-ticksize-2),point_trans)
for loc in locs:
ax.text(loc,1,'%1.1f'%loc, transform=trans, va='top', ha='center')
show()
|
|
From: John H. <jdh...@ac...> - 2006-01-11 14:40:31
|
>>>>> "Mark" == Mark Bakker <ma...@gm...> writes:
Mark> Hello all - I tried to have dates along the x-axis and tried
Mark> to plot it in the month-year format. There is a nice
Mark> example in Fig. 5.2 of the manual.
Mark> Problem is, the year always plots as year 01, even in
Mark> Fig. 5.2! Check it out.
Mark> I just tried this on 0.86, and it is still wrong.
Mark> Easy to fix? Easy workaround?
Look at the function matplotlib.dates.date_ticker_factory, which looks
at the date range of your axis and returns a locator and date string
formatter.
There must be an error in one of the format strings. I don't have
time to look at it right now, but it is fairly easy to grok the code.
Sometimes these errors occur just if we accidentally used an upper
case letter in a format string or vice versa...
I you hurry, you can probably send a fix in time for the 0.86.1
bugfix release :-)
JDH
|
|
From: Mark B. <ma...@gm...> - 2006-01-11 14:05:09
|
Hello all - I tried to have dates along the x-axis and tried to plot it in the month-year format. There is a nice example in Fig. 5.2 of the manual. Problem is, the year always plots as year 01, even in Fig. 5.2! Check it out. I just tried this on 0.86, and it is still wrong. Easy to fix? Easy workaround? Thanks, Mark |
|
From: Charles R. T. <ct...@gm...> - 2006-01-11 13:20:11
|
> http://www.scipy.org/wikis/topical_software/Transformations > > Does this help with your problem? Jouni, I don't think so. I looked at that. Maybe I'm mistaken, but seems that in the end, it just places the text at y position 0.9 in Axes coordinates. That's just below the markers for small subplots, but WAY below the markers for tall skinny ones. I want it to place the text at a fixed absolute y position of just below the markers. As the graph gets taller, that will go from .9 to .95 to .99, etc. in Axes coordinates. So one approach would be to find the Axes coordinates for the lower limit of the tick markers. Any ideas? -C -- Charles R. Twardy |
|
From: Giandomenico S. <gia...@po...> - 2006-01-11 09:27:50
|
Hi, Many thanks. I tried to use this new code, but nothing to do. The error remains the same. DO you have other suggestions please? Thanks. Nico Il giorno mar, 10/01/2006 alle 14.20 -0500, Charles R. Twardy ha scritto: > (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 info" > raise > > from networkx import * > > G=grid_2d_graph(4,4) #4x4 grid > pos=spring_layout(G) > draw(G,pos,alpha=0.5,with_labels=False) > draw(G,pos,nodelist=[1,2,3,4],node_color='b') # blue > pylab.savefig("grid.png") # save as png > pylab.show() # display > > > > > 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) > > -- > Charles R. Twardy > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id865&op=click > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: G. S. <g....@po...> - 2006-01-11 09:27:13
|
Hi, Many thanks. I tried to use this new code, but nothing to do. The error remains the same. DO you have other suggestions please? Thanks. Nico Il giorno mar, 10/01/2006 alle 14.20 -0500, Charles R. Twardy ha scritto: > (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 info" > raise > > from networkx import * > > G=grid_2d_graph(4,4) #4x4 grid > pos=spring_layout(G) > draw(G,pos,alpha=0.5,with_labels=False) > draw(G,pos,nodelist=[1,2,3,4],node_color='b') # blue > pylab.savefig("grid.png") # save as png > pylab.show() # display > > > > > 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) > > -- > Charles R. Twardy > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id865&op=click > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Jouni K S. <jk...@ik...> - 2006-01-11 08:11:51
|
"Charles R. Twardy" <ct...@gm...> writes: > I want to place text inside the plot, just below the top xaxis ticks. > But as the graphs get taller, the text gets too far away from the top line. I wanted to do something similar, and wrote an example in the Wiki, at the bottom of http://www.scipy.org/wikis/topical_software/Transformations Does this help with your problem? -- Jouni |
|
From: tyler p. <tyl...@gm...> - 2006-01-11 00:53:20
|
I checked the user guide and none of the alignments put the title just belo= w the top border. How can I do this? here is my example: http://jiyu.gnook.org/~tj/title.png thanks in advance |
|
From: tyler p. <tyl...@gm...> - 2006-01-11 00:51:41
|
Hi, does anyone know how to remove the top and right borders in a plot in matplotlib? like this: http://jiyu.gnook.org/~tj/border.png |
|
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
>>>
|