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
(13) |
2
(11) |
3
|
4
(9) |
|
5
(3) |
6
(17) |
7
(24) |
8
(11) |
9
(26) |
10
(19) |
11
(4) |
|
12
(4) |
13
(14) |
14
(9) |
15
(5) |
16
(18) |
17
(23) |
18
(3) |
|
19
(1) |
20
(7) |
21
(27) |
22
(26) |
23
(6) |
24
(17) |
25
(1) |
|
26
|
27
(7) |
28
(1) |
29
(4) |
30
(5) |
|
|
|
From: pranal s. <sha...@gm...> - 2006-11-21 23:04:12
|
hey folks, is there any way in matplotlib to find aout the X-Y locations of the points plotted by markers, without using Wx-python..... pls let me know...if there is........ pranal |
|
From: John H. <jdh...@ac...> - 2006-11-21 22:09:49
|
>>>>> "Adam" == Adam Miller <am...@gr...> writes:
Adam> Hi, It is correct that the machine I'm building on does not
Adam> have X11 running, though it is installed. I can, however,
Adam> enter python and import gtk without error.
Adam> [root@localhost examples]# python Python 2.4.1 (#1, May 16
Adam> 2005, 15:15:14) [GCC 4.0.0 20050512 (Red Hat 4.0.0-5)] on
Adam> linux2 Type "help", "copyright", "credits" or "license" for
Adam> more information.
>>>> import gtk
>>>>
Adam> [root@localhost examples]#
Hmm... something is fish, because the error message you printed in
your first message is triggered only by an attempt to import gtk.
Look in setup.py: here is what is happening
if BUILD_GTK:
try:
import gtk
except ImportError:
print 'GTK requires pygtk'
BUILD_GTK = 0
except RuntimeError:
print 'pygtk present but import failed'
I submit that something is different in your build environment in
which you triggered the original message and the one you are testing
in now.
JDH
|
|
From: Adam M. <am...@gr...> - 2006-11-21 21:59:35
|
Hi, It is correct that the machine I'm building on does not have X11 running, though it is installed. I can, however, enter python and import gtk without error. [root@localhost examples]# python Python 2.4.1 (#1, May 16 2005, 15:15:14) [GCC 4.0.0 20050512 (Red Hat 4.0.0-5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import gtk >>> [root@localhost examples]# Adam On Tue, 21 Nov 2006, John Hunter wrote: >>>>>> "Adam" == Adam Miller <am...@gr...> writes: > > Adam> Hi, I'm having a bit of troulbe getting pylab.show() to > Adam> display a figure drawn with matplotlib. > > Adam> The Test: > > Adam> python import pylab pylab.plot([0,0],[1,1]) pylab.show() > > Adam> I do not recieve an error, though I also do not see the > Adam> graph. > > Adam> FC4 x86_64 install > > Adam> python-matplotlib-debuginfo-0.87.7-2 > Adam> python-matplotlib-0.87.7-2 > > Adam> gtk2-2.6.10-2.fc4.4.i386 gtk2-2.6.10-2.fc4.4.x86_64 > Adam> gtk2-devel-2.6.10-2.fc4.4.i386 > Adam> gtk2-devel-2.6.10-2.fc4.4.x86_64 > > Adam> When I build the rpms from the srpm I see the following, > Adam> though the build continues. > > Adam> pygtk present but import failed pygtk present but import > Adam> failed > > > matplotlib build has this annoying problem that it requires an X11 > environment to build the GTK runtime code. Often if you are logged in > as su you may not have access to the X display. You need to build in > an environment in which you can do: > >> python >>>> import gtk > > Then mpl should build the gtk backend properly. What you are > currently seeing is that the GTK build is failing which is why you are > getting the runtime error. > > JDH > |
|
From: John H. <jdh...@ac...> - 2006-11-21 21:42:53
|
>>>>> "Adam" == Adam Miller <am...@gr...> writes:
Adam> Hi, I'm having a bit of troulbe getting pylab.show() to
Adam> display a figure drawn with matplotlib.
Adam> The Test:
Adam> python import pylab pylab.plot([0,0],[1,1]) pylab.show()
Adam> I do not recieve an error, though I also do not see the
Adam> graph.
Adam> FC4 x86_64 install
Adam> python-matplotlib-debuginfo-0.87.7-2
Adam> python-matplotlib-0.87.7-2
Adam> gtk2-2.6.10-2.fc4.4.i386 gtk2-2.6.10-2.fc4.4.x86_64
Adam> gtk2-devel-2.6.10-2.fc4.4.i386
Adam> gtk2-devel-2.6.10-2.fc4.4.x86_64
Adam> When I build the rpms from the srpm I see the following,
Adam> though the build continues.
Adam> pygtk present but import failed pygtk present but import
Adam> failed
matplotlib build has this annoying problem that it requires an X11
environment to build the GTK runtime code. Often if you are logged in
as su you may not have access to the X display. You need to build in
an environment in which you can do:
> python
>>> import gtk
Then mpl should build the gtk backend properly. What you are
currently seeing is that the GTK build is failing which is why you are
getting the runtime error.
JDH
|
|
From: Adam M. <am...@gr...> - 2006-11-21 21:37:32
|
Hi, I'm having a bit of troulbe getting pylab.show() to display a figure drawn with matplotlib. The Test: python import pylab pylab.plot([0,0],[1,1]) pylab.show() I do not recieve an error, though I also do not see the graph. FC4 x86_64 install python-matplotlib-debuginfo-0.87.7-2 python-matplotlib-0.87.7-2 gtk2-2.6.10-2.fc4.4.i386 gtk2-2.6.10-2.fc4.4.x86_64 gtk2-devel-2.6.10-2.fc4.4.i386 gtk2-devel-2.6.10-2.fc4.4.x86_64 When I build the rpms from the srpm I see the following, though the build continues. pygtk present but import failed pygtk present but import failed In /usr/src/redhat/BUILD/matplotlib-0.87.7/examples I run 'python subplot_demo.py -dGTKAgg' and get 'ImportError: No module named _ns_backend_gdk' Am I missing something? Thanks! Adam Miller |
|
From: John H. <jdh...@ac...> - 2006-11-21 21:27:28
|
>>>>> "Eric" == Eric Firing <ef...@ha...> writes:
Eric> Anyone who has not done such a compilation is likely to run
Eric> into missing devel packages (because they don't get
Eric> installed by default), but installing them using synaptic or
Eric> apt-get should be easy, and a matter of only a few minutes.
Eric> (It might help if we had a list of exactly which packages
Eric> are needed--has anyone compiled this? Any volunteers for a
Eric> wiki entry, if there isn't one already?)
Here is the starter list which I made from a redhat distro a couple of
years ago -- much of this is probably still accurate but should be
updated by distro and wiki-ized
* matplotlib core: zlib, zlib-devel, libpng, libpng-devel,
freetype, freetype-devel, freetype-utils
* gtk/gtkagg backend: gtk2-devel, gtk+-devel, pygtk2, glib-devel,
pygtk2-devel, gnome-libs-devel, pygtk2-libglade
* tk backend: tcl, tk, tkinter
* wx/wxagg backends - the wxpython rpms from wxpython
For example, I think the tcl/tk need to have some devel libs added.
JDH
|
|
From: Eric F. <ef...@ha...> - 2006-11-21 20:54:44
|
Josh Lifton wrote: > As I posted a couple of days ago, Ubuntu users have the following options > to avoid old versions of MPL: > > * Upgrade to the Edgy (6.10) distribution, which uses MPL 0.87.5. > Upgrading is easy, see > http://www.ubuntu.com/download/releasenotes/610?highlight=%28edgy%29%7C%28upgrade%29 (I am a happy Edgy user, but I installed from scratch.) I have read that the upgrade to Edgy may or may not go smoothly, however, depending on whether things like Automatix or EasyUbuntu were used. > > * Add a repository containing the newest MPL to your > /etc/apt/sources.list. Such a repository was announced on this list a > couple of days ago. But I seem to recall that there was a problem with this--the dependencies did not take care of making sure that compatible versions of numeric libraries were installed, meaning the ones against which the new mpl package was compiled. > > * Compile MPL from source off the SVN repository. Or from the latest tarball, which might be slightly easier and more stable, but misses the very latest changes. Anyone who has not done such a compilation is likely to run into missing devel packages (because they don't get installed by default), but installing them using synaptic or apt-get should be easy, and a matter of only a few minutes. (It might help if we had a list of exactly which packages are needed--has anyone compiled this? Any volunteers for a wiki entry, if there isn't one already?) Anyone wanting to use wxPython will run into the long-standing missing-headers-bug: https://launchpad.net/distros/ubuntu/+source/wxwidgets2.6/+bug/2887 but it is easy to fix, as described in the link. (There is a typo in step 3 of the workaround: 2.6.3.2 should be 2.6.3.3.) Don't bother unless you really want wx, though. > > Cheers, > Josh |
|
From: John H. <jdh...@ac...> - 2006-11-21 19:29:32
|
>>>>> "Samuel" == Samuel M Smith <sm...@sa...> writes:
Samuel> I figured it out. It is saving the outside edge as
Samuel> transparent not gray. I was viewing the images in Apple's
Samuel> preview and it displays transparent as gray (not
Samuel> checkerboard like photoshop or graphic converter).
I still don't understand where the transparency is coming from (unless
you are setting the alpha explicitly somewhere else). In the example
output I posted previously, the 4th entry in the image RGBAs is 1,
indicating that the alpha channel is 1, fully opaque.
JDH
|
|
From: Samuel M. S. <sm...@sa...> - 2006-11-21 19:27:18
|
I figured it out. It is saving the outside edge as transparent not
gray. I was viewing the images in Apple's preview and it
displays transparent as gray (not checkerboard like photoshop or
graphic converter).
Sorry.
On 21 Nov, 2006, at 12:21, John Hunter wrote:
>>>>>> "Samuel" == Samuel M Smith <sm...@sa...> writes:
>
> Samuel> I recently upgraded matplotlib 87.7 Mac OS X PPC 10.4
> Samuel> python 2.4 from sourceforge binary Using backend TkAgg
> Samuel> version 8.4
>
>
> Samuel> Whenever I save png plots using the toolbar save button or
> Samuel> explicitly, the edgecolor around the outside of the plot
> Samuel> is gray. I want it to be white.
>
> Samuel> I have the following in my rc file. savefig.edgecolor :
> Samuel> white # figure edgecolor when saving
>
> Samuel> I also tried this in my plotting program
> Samuel> rc('savefig',edgecolor = 'w')
>
> Samuel> and I also tried saving from the plotting program with
> Samuel> savefig("paths4test.png",edgecolor= 'w')
>
> Strange -- I don't see that. In the example below, the rows of
> [1,1,1,1] indicate white. What do you get?
>
>
> In [5]: plot([1,2,3])
> Out[5]: [<matplotlib.lines.Line2D instance at 0xb64dd74c>]
>
> In [6]: savefig('test.png')
>
> In [7]: im = imread('test.png')
>
> In [8]: im.shape
> Out[8]: (900, 1200, 4)
>
>
> In [10]: im[0:5,0:10,:]
> Out[10]:
> array([[[ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.]],
>
> [[ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.]],
>
> [[ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.]],
>
> [[ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.]],
>
> [[ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.],
> [ 1., 1., 1., 1.]]], dtype=float32)
>
>
**********************************************************************
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84005-4108
801-768-2768 voice
801-768-2769 fax
**********************************************************************
"The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment"
**********************************************************************
|
|
From: John H. <jdh...@ac...> - 2006-11-21 19:26:41
|
>>>>> "John" == John Hunter <jdh...@ac...> writes:
John> Strange -- I don't see that. In the example below, the rows
John> of [1,1,1,1] indicate white. What do you get?
And when I ask for red, I get that too:
In [1]: plot([1,2,3])
Out[1]: [<matplotlib.lines.Line2D instance at 0xb64c7f6c>]
In [2]: savefig('test.png', edgecolor='red')
In [3]: im = imread('test.png')
In [4]: im[0:5,0:10,:]
Out[4]:
array([[[ 1. , 0. , 0. , 1. ],
[ 1. , 0. , 0. , 1. ],
[ 1. , 0. , 0. , 1. ],
[ 1. , 0. , 0. , 1. ],
[ 1. , 0. , 0. , 1. ],
[ 1. , 0. , 0. , 1. ],
[ 1. , 0. , 0. , 1. ],
[ 1. , 0. , 0. , 1. ],
[ 1. , 0. , 0. , 1. ],
[ 1. , 0. , 0. , 1. ]],
[[ 1. , 0. , 0. , 1. ],
[ 1. , 0. , 0. , 1. ],
[ 1. , 0.45882353, 0.45882353, 1. ],
[ 1. , 0.45882353, 0.45882353, 1. ],
[ 1. , 0.45882353, 0.45882353, 1. ],
[ 1. , 0.45882353, 0.45882353, 1. ],
[ 1. , 0.45882353, 0.45882353, 1. ],
[ 1. , 0.45882353, 0.45882353, 1. ],
[ 1. , 0.45882353, 0.45882353, 1. ],
[ 1. , 0.45882353, 0.45882353, 1. ]],
[[ 1. , 0. , 0. , 1. ],
[ 1. , 0.45882353, 0.45882353, 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ]],
[[ 1. , 0. , 0. , 1. ],
[ 1. , 0.45882353, 0.45882353, 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ]],
[[ 1. , 0. , 0. , 1. ],
[ 1. , 0.45882353, 0.45882353, 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ],
[ 1. , 1. , 1. , 1. ]]],
dtype=float32)
|
|
From: John H. <jdh...@ac...> - 2006-11-21 19:21:35
|
>>>>> "Samuel" == Samuel M Smith <sm...@sa...> writes:
Samuel> I recently upgraded matplotlib 87.7 Mac OS X PPC 10.4
Samuel> python 2.4 from sourceforge binary Using backend TkAgg
Samuel> version 8.4
Samuel> Whenever I save png plots using the toolbar save button or
Samuel> explicitly, the edgecolor around the outside of the plot
Samuel> is gray. I want it to be white.
Samuel> I have the following in my rc file. savefig.edgecolor :
Samuel> white # figure edgecolor when saving
Samuel> I also tried this in my plotting program
Samuel> rc('savefig',edgecolor = 'w')
Samuel> and I also tried saving from the plotting program with
Samuel> savefig("paths4test.png",edgecolor= 'w')
Strange -- I don't see that. In the example below, the rows of
[1,1,1,1] indicate white. What do you get?
In [5]: plot([1,2,3])
Out[5]: [<matplotlib.lines.Line2D instance at 0xb64dd74c>]
In [6]: savefig('test.png')
In [7]: im = imread('test.png')
In [8]: im.shape
Out[8]: (900, 1200, 4)
In [10]: im[0:5,0:10,:]
Out[10]:
array([[[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.]],
[[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.]],
[[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.]],
[[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.]],
[[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.],
[ 1., 1., 1., 1.]]], dtype=float32)
|
|
From: Samuel M. S. <sm...@sa...> - 2006-11-21 19:21:34
|
It also doesn't work with backend WXAgg version 2.6.3.3
On 21 Nov, 2006, at 12:13, Samuel M. Smith wrote:
> I recently upgraded matplotlib 87.7 Mac OS X PPC 10.4 python 2.4 from
> sourceforge binary
> Using backend TkAgg version 8.4
>
>
> Whenever I save png plots using the toolbar save button or explicitly,
> the edgecolor around the outside of the plot is gray. I want it to
> be white.
>
> I have the following in my rc file.
> savefig.edgecolor : white # figure edgecolor when saving
>
> I also tried this in my plotting program
> rc('savefig',edgecolor = 'w')
>
> and I also tried saving from the plotting program with
> savefig("paths4test.png",edgecolor= 'w')
>
> Nothing seems to work.
>
> I didn't have this problem with Matplotlib 85.x
>
>
>
> **********************************************************************
> Samuel M. Smith Ph.D.
> 2966 Fort Hill Road
> Eagle Mountain, Utah 84005-4108
> 801-768-2768 voice
> 801-768-2769 fax
> **********************************************************************
> "The greatest source of failure and unhappiness in the world is
> giving up what we want most for what we want at the moment"
> **********************************************************************
>
>
>
> ----------------------------------------------------------------------
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
**********************************************************************
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84005-4108
801-768-2768 voice
801-768-2769 fax
**********************************************************************
"The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment"
**********************************************************************
|
|
From: Josh L. <li...@me...> - 2006-11-21 19:17:44
|
As I posted a couple of days ago, Ubuntu users have the following options to avoid old versions of MPL: * Upgrade to the Edgy (6.10) distribution, which uses MPL 0.87.5. Upgrading is easy, see http://www.ubuntu.com/download/releasenotes/610?highlight=%28edgy%29%7C%28upgrade%29 * Add a repository containing the newest MPL to your /etc/apt/sources.list. Such a repository was announced on this list a couple of days ago. * Compile MPL from source off the SVN repository. Cheers, Josh On Tue, 21 Nov 2006, Eric Firing wrote: > From my point of view, version 82-5 is simply too old to bother with. > In newer versions quiver has been completely rewritten including masked > array support. I recommend that you remove your ubuntu mpl package and > install the latest release from the source tarball. > > > Eric > > giovanni ruggiero wrote: > > Hi ALL, > > I am just starting to leave the matlab to work with matplotlib 82-5 in > > my ubuntu linux. I have problens to make a vector fild plots using > > quiver. I have a netcdf file that i extract a u_velocity and v_velocity > > variables, after i mask the array and try to quiver. i get the > > following error > > > > Traceback (most recent call last): > > File "<stdin>", line 1, in ? > > File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line > > 2256, in quiver > > ret = gca().quiver(*args, **kwargs) > > File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 828, > > in quiver > > U = asarray(U) > > File "/usr/lib/python2.4/site-packages/Numeric/Numeric.py", line 134, > > in asarray > > return multiarray.array(a, typecode, copy=0, savespace=savespace) > > File "/usr/lib/python2.4/site-packages/Numeric/MA/MA.py", line 632, in > > __array__ > > raise MAError, \ > > MA.MA.MAError: Cannot automatically convert masked array to Numeric > > because data > > is masked in one or more locations. > > > > > > But if i do not mask the array but i try to plot without the scale it > > gets the error : > > > > File "<stdin>", line 1, in ? > > File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line > > 2256, in quiver > > ret = gca().quiver(*args, **kwargs) > > File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 855, > > in quiver > > if Nmax == 0: #jb > > UnboundLocalError: local variable 'Nmax' referenced before assignment > > > > Could someone helps me? > > Thanks > > > > ------------------------------------------------------------------------ > > Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu > > celular. Registre seu aparelho agora! > > <http://us.rd.yahoo.com/mail/br/tagline/mobile_alerts/*http://br.mobile.yahoo.com/mailalertas/> > > > > > > ------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share your > > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Samuel M. S. <sm...@sa...> - 2006-11-21 19:14:04
|
I recently upgraded matplotlib 87.7 Mac OS X PPC 10.4 python 2.4 from
sourceforge binary
Using backend TkAgg version 8.4
Whenever I save png plots using the toolbar save button or explicitly,
the edgecolor around the outside of the plot is gray. I want it to
be white.
I have the following in my rc file.
savefig.edgecolor : white # figure edgecolor when saving
I also tried this in my plotting program
rc('savefig',edgecolor = 'w')
and I also tried saving from the plotting program with
savefig("paths4test.png",edgecolor= 'w')
Nothing seems to work.
I didn't have this problem with Matplotlib 85.x
**********************************************************************
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84005-4108
801-768-2768 voice
801-768-2769 fax
**********************************************************************
"The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment"
**********************************************************************
|
|
From: Eric F. <ef...@ha...> - 2006-11-21 19:02:32
|
From my point of view, version 82-5 is simply too old to bother with. In newer versions quiver has been completely rewritten including masked array support. I recommend that you remove your ubuntu mpl package and install the latest release from the source tarball. Eric giovanni ruggiero wrote: > Hi ALL, > I am just starting to leave the matlab to work with matplotlib 82-5 in > my ubuntu linux. I have problens to make a vector fild plots using > quiver. I have a netcdf file that i extract a u_velocity and v_velocity > variables, after i mask the array and try to quiver. i get the > following error > > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line > 2256, in quiver > ret = gca().quiver(*args, **kwargs) > File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 828, > in quiver > U = asarray(U) > File "/usr/lib/python2.4/site-packages/Numeric/Numeric.py", line 134, > in asarray > return multiarray.array(a, typecode, copy=0, savespace=savespace) > File "/usr/lib/python2.4/site-packages/Numeric/MA/MA.py", line 632, in > __array__ > raise MAError, \ > MA.MA.MAError: Cannot automatically convert masked array to Numeric > because data > is masked in one or more locations. > > > But if i do not mask the array but i try to plot without the scale it > gets the error : > > File "<stdin>", line 1, in ? > File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line > 2256, in quiver > ret = gca().quiver(*args, **kwargs) > File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 855, > in quiver > if Nmax == 0: #jb > UnboundLocalError: local variable 'Nmax' referenced before assignment > > Could someone helps me? > Thanks > > ------------------------------------------------------------------------ > Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu > celular. Registre seu aparelho agora! > <http://us.rd.yahoo.com/mail/br/tagline/mobile_alerts/*http://br.mobile.yahoo.com/mailalertas/> > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: John H. <jdh...@ac...> - 2006-11-21 19:00:48
|
>>>>> "Eric" == Eric Firing <ef...@ha...> writes:
Eric> Yes, it should be !=0. The purpose is to show how sparse a
Eric> matrix is--how much is filled with zeros--by displaying the
Eric> non-zero entries.
OK I fixed it. Thanks.
JDH
|
|
From: giovanni r. <oc...@ya...> - 2006-11-21 18:34:09
|
Hi ALL,=0AI am just starting to leave the matlab to work with matplotlib 82=
-5 in my ubuntu linux. I have problens to make a vector fild plots using qu=
iver. I have a netcdf file that i extract a u_velocity and v_velocity varia=
bles, after i mask the array and try to quiver. i get the following error =
=0A=0ATraceback (most recent call last):=0A File "<stdin>", line 1, in ?=
=0A File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line 2256=
, in quiver=0A ret =3D gca().quiver(*args, **kwargs)=0A File "/usr/lib=
/python2.4/site-packages/matplotlib/axes.py", line 828, in quiver=0A U =
=3D asarray(U)=0A File "/usr/lib/python2.4/site-packages/Numeric/Numeric.p=
y", line 134, in asarray=0A return multiarray.array(a, typecode, copy=3D=
0, savespace=3Dsavespace)=0A File "/usr/lib/python2.4/site-packages/Numeri=
c/MA/MA.py", line 632, in __array__=0A raise MAError, \=0AMA.MA.MAError:=
Cannot automatically convert masked array to Numeric because data=0A =
is masked in one or more locations.=0A=0A=0ABut if i do not m=
ask the array but i try to plot without the scale it gets the error :=0A=
=0A File "<stdin>", line 1, in ?=0A File "/usr/lib/python2.4/site-packages=
/matplotlib/pylab.py", line 2256, in quiver=0A ret =3D gca().quiver(*ar=
gs, **kwargs)=0A File "/usr/lib/python2.4/site-packages/matplotlib/axes.py=
", line 855, in quiver=0A if Nmax =3D=3D 0: #jb=0AUnboundLocalError: loc=
al variable 'Nmax' referenced before assignment=0A=0ACould someone helps me=
?=0AThanks=0A=0A=0A=0A=0A=09=09=0A_________________________________________=
______________ =0AYahoo! Acesso Gr=E1tis - Internet r=E1pida e gr=E1tis. In=
stale =0Ao discador agora! =0Ahttp://br.acesso.yahoo.com |
|
From: Eric F. <ef...@ha...> - 2006-11-21 17:55:09
|
John Hunter wrote: ... > I am not a spy user, though I wrote it. I assume the test should be Z!=0? > > Note spy2 (which arguably makes a nicer plot) has the same potential > problem. If there is consensus that it should be !=0 I am happy to > change it. Yes, it should be !=0. The purpose is to show how sparse a matrix is--how much is filled with zeros--by displaying the non-zero entries. Eric |
|
From: Gary <pa...@in...> - 2006-11-21 17:39:54
|
I'm trying to upgrade things. Upon doing so, I find that pylab gives a warning about not finding wxmsw26uh_vc.dll A search suggested that I need the unicode version of wx. I installed that, but still get the same message. (Thinking I accidently installed the ansi version, I downloaded and installed the unicode version again.) what do you think? -gary |
|
From: John H. <jdh...@ac...> - 2006-11-21 17:34:08
|
>>>>> "Robert" == Robert Cimrman <cim...@nt...> writes:
Robert> It looks like the 'spy' function ignores negative values
Robert> (matplotlib 0.87.5).
Robert> In [30]:spy( ones( (5, 5) ) )[0].get_xdata() Out[30]:
Robert> array([ 0.5, 0.5, 0.5, 0.5, 0.5, 1.5, 1.5, 1.5, 1.5, 1.5,
Robert> 2.5, 2.5, 2.5, 2.5, 2.5, 3.5, 3.5, 3.5, 3.5, 3.5, 4.5,
Robert> 4.5, 4.5, 4.5, 4.5])
Robert> In [31]:spy( -ones( (5, 5) ) )[0].get_xdata()
Robert> Out[31]:array([], type=Float)
The implementation of spy is pretty simple:
def spy(self, Z, marker='s', markersize=10, **kwargs):
"""
SPY(Z, **kwargs) plots the sparsity pattern of the matrix Z
using plot markers.
The line handles are returned
kwargs control the Line2D properties of the markers:
%(Line2D)s
"""
if hasattr(Z, 'tocoo'):
c = Z.tocoo()
x = c.row
y = c.col
z = c.data
else:
x,y,z = matplotlib.mlab.get_xyz_where(Z, Z>0)
return self.plot(x+0.5,y+0.5, linestyle='None',
marker=marker,markersize=markersize, **kwargs)
I am not a spy user, though I wrote it. I assume the test should be Z!=0?
Note spy2 (which arguably makes a nicer plot) has the same potential
problem. If there is consensus that it should be !=0 I am happy to
change it.
JDH
|
|
From: Robert C. <cim...@nt...> - 2006-11-21 17:21:48
|
It looks like the 'spy' function ignores negative values (matplotlib
0.87.5).
In [30]:spy( ones( (5, 5) ) )[0].get_xdata()
Out[30]:
array([ 0.5, 0.5, 0.5, 0.5, 0.5, 1.5, 1.5, 1.5, 1.5, 1.5,
2.5, 2.5, 2.5, 2.5, 2.5, 3.5, 3.5, 3.5, 3.5, 3.5,
4.5, 4.5, 4.5, 4.5, 4.5])
In [31]:spy( -ones( (5, 5) ) )[0].get_xdata()
Out[31]:array([], type=Float)
regards,
r.
|
|
From: John H. <jdh...@ac...> - 2006-11-21 16:49:24
|
>>>>> "Simson" == Simson Garfinkel <si...@ac...> writes:
Simson> Well, I manually installed pytz and got this error: File
Simson> "make_stats.py", line 184, in ? do_plot(hosts['ec2'])
Simson> File "make_stats.py", line 80, in do_plot from
Simson> matplotlib.dates import MonthLocator, WeekdayLocator,
Simson> DateFormatter File
Simson> "/Library/Frameworks/Python.framework/Versions/2.4/lib/
Simson> python2.4/site-packages/matplotlib/dates.py", line 92, in
Simson> ? from dateutil.rrule import rrule, MO, TU, WE, TH, FR,
Simson> SA, SU, YEARLY, \ ImportError: No module named
Simson> dateutil.rrule
Simson> So I did a fresh install of matplotlib from darwinports
Simson> (port install py-matplotlib) and now I'm getting the SAME
Simson> ERROR...
When you install matplotlib from src, it automatically installs pytz
and dateutil if they are not already on your system. The darwinports
build may be broken. Try grabbing datetuil yourself and installing it
-- it's pure python so it should be easy.
http://labix.org/python-dateutil
JDH
|
|
From: John H. <jdh...@ac...> - 2006-11-21 16:44:50
|
>>>>> "Willi" == Willi Richert <w.r...@gm...> writes:
Willi> Thanks, that solved that problem, but if I use
Willi> 'label="blabla"' in scatter, it does not show up in the
Willi> legend. Only the label of the Polygon is shown.
There was a bug in the axes autolegend code that was preventing
scatter from being picked up but I have fixed it in svn. Note that
automatically making a legend entry with scatter is a bit problematic,
since scatter can use many different colors. We have a poor-man's
compromise, which is to make a rectangle the sample color as the first
scatter point plotted.
JDH
|
|
From: Simson G. <si...@ac...> - 2006-11-21 12:49:34
|
Well, I manually installed pytz and got this error:
File "make_stats.py", line 184, in ?
do_plot(hosts['ec2'])
File "make_stats.py", line 80, in do_plot
from matplotlib.dates import MonthLocator, WeekdayLocator,
DateFormatter
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/matplotlib/dates.py", line 92, in ?
from dateutil.rrule import rrule, MO, TU, WE, TH, FR, SA, SU,
YEARLY, \
ImportError: No module named dateutil.rrule
So I did a fresh install of matplotlib from darwinports (port install
py-matplotlib) and now I'm getting the SAME ERROR...
Any thoughts?
On Nov 20, 2006, at 7:36 PM, Simson Garfinkel wrote:
> I'm using matplotlib on a Mac. I tried to do a date plot but got an
> error message that pytz is not installed. According to the "using
> matplotlib" tutorial pytz it is supposed to be installed
> automatically...
>
> Traceback (most recent call last):
> File "make_stats.py", line 184, in ?
> do_plot(hosts['ec2'])
> File "make_stats.py", line 80, in do_plot
> from matplotlib.dates import MonthLocator, WeekdayLocator,
> DateFormatter
> File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
> python2.4/site-packages/matplotlib/dates.py", line 89, in ?
> from pytz import timezone
> ImportError: No module named pytz
> [simsong@Black s3bandwidth] %
>
> Any
> cue?------------------------------------------------------------------
> -------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?
> page=join.php&p=sourceforge&CID=DEVDEV________________________________
> _______________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
|
|
From: Simson G. <si...@ac...> - 2006-11-21 12:08:58
|
The information about Robery Kern and MacEnthon is out of date and should be removed or updated. I've tried to find an updated version of MacEnthon on the Enthon site and haven't been able to find it... |