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
(9) |
2
(6) |
3
(8) |
4
(6) |
5
|
|
6
(1) |
7
(4) |
8
(15) |
9
(11) |
10
|
11
(1) |
12
(13) |
|
13
(5) |
14
(10) |
15
(12) |
16
(7) |
17
(12) |
18
(5) |
19
(4) |
|
20
(11) |
21
(4) |
22
(11) |
23
(28) |
24
(24) |
25
(23) |
26
(6) |
|
27
(7) |
28
(17) |
29
(21) |
30
(6) |
|
|
|
|
From: Eric F. <ef...@ha...> - 2008-04-09 21:23:31
|
Chris Withers wrote: > Eric Firing wrote: >> >>> Out of interest, how does one tell MPL to "start a new figure and >>> forget everything that's gone before"? >> >> You can minimize the amount of package and module-level state >> information by using the oo interface: see examples/agg_oo.py. > > I tried this example, and it generates no output. > Is that to be expected? Chris, It should produce a "test.png"; it is using a non-interactive backend. It works on my machine. Eric > > cheers, > > Chris > |
|
From: Chris W. <ch...@si...> - 2008-04-09 21:19:22
|
Hey All,
Is there any way I can control the location that a tk figure window is
shown on screen?
I can control the size fine with:
pylab.figure(figsize=(10,10))
...but this produces a figure that, while it's the right size, is
rendered with the top left of the window in the middle of the screen.
If I can get it to be to-left, then it will all be visisble without me
having to move it with a mouse ;-).
Any ideas?
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
|
|
From: Chris W. <ch...@si...> - 2008-04-09 21:15:11
|
Eric Firing wrote:
>
>> Out of interest, how does one tell MPL to "start a new figure and
>> forget everything that's gone before"?
>
> You can minimize the amount of package and module-level state
> information by using the oo interface: see examples/agg_oo.py.
I tried this example, and it generates no output.
Is that to be expected?
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
|
|
From: Joseph X. <jos...@gm...> - 2008-04-09 19:38:35
|
That worked, thanks.
On Wed, Apr 9, 2008 at 5:42 AM, Matthias Michler
<Mat...@gm...> wrote:
> Hello Joseph,
>
> I'm not sure I understand correctly, but it seems to me that the number of
> plotted lines (from errorbar, len(gca().lines) ) is large compared to your 3
> labels. That's why only the lines of the first errorbar are used to build the
> legend.
> It might to helpful to use the 'label' kwarg of errorbar to properly connect
> the errorbar to a label. After that you can build the legend with 'legend()'.
>
> regards Matthias
>
> PS: Could you provide a complete example, if my suggestion doesn't help,
> please?
>
>
>
> On Wednesday 09 April 2008 10:54:23 Joseph Xu wrote:
> > Hi:
> >
> > I'm having a problem where the lines I plot show up in one style (all
> > solid, with different colors) while the legend shows them to be a
> > different style (all blue, different dashes). I used the following
> > code to plot:
> >
> > labels = []
> > dir_names = {'U' : 'UP', 'D' : 'DOWN', 'L' : 'LEFT', 'R' : 'RIGHT'}
> > for dir in lines:
> > xa = sorted(lines[dir].keys())
> > ya = [lines[dir][x][0] for x in xa]
> > yerr = []
> > for x in xa:
> > if lines[dir][x][1] > lines[dir][x][2]:
> > # no bound data
> > yerr.append([0,0])
> > else:
> > yerr.append([lines[dir][x][1] - lines[dir][x][0], lines[dir][x][2]
> > - lines[dir][x][0]])
> > yerra = array(yerr).transpose()
> > errorbar(xa, ya, yerr=yerra)
> > labels.append(dir_names[dir])
> >
> > legend(labels)
> > show()
> >
> >
> > Here's the result:
> >
> > http://i32.tinypic.com/2eat8r8.jpg
> >
> > What am I doing wrong?
> >
> > Thanks for the help.
> >
> > Joseph
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> > Don't miss this year's exciting event. There's still time to save $100.
> > Use priority code J8TL2D2.
> > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java
> >one _______________________________________________
> > Matplotlib-users mailing list
> > Mat...@li...
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
|
|
From: Benjamin D. <ben...@gm...> - 2008-04-09 18:37:33
|
Hello, I wrote a Python application using GTK+ and Matplotlib. I normally use the application in full screen mode (1680x1050). There is a big gray border. You can reproduce it using the embedding_in_gtk.py from the examples and full screen it. How can I remove this grey border? The numbers on the axes should not be cropped. Regards, Benjamin Drung |
|
From: Michael D. <md...@st...> - 2008-04-09 15:23:35
|
Unfortunately, matplotlib doesn't automatically provide anything like the rich text formatting you describe. The best you could do is to manually position the text. Cheers, Mike Olivier De Wolf wrote: > Hi, > > I would like to add a Text that has three colors, "bbbbbbb, gggggggg, > rrrrrrrr" where bbbb is in blue, gggg is in green and rrrr in red. > I am able to create three texts but how can I have them position 'side > by side'? > > > Thanks, > > Olivier > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA |
|
From: Matthias M. <Mat...@gm...> - 2008-04-09 09:42:30
|
Hello Joseph,
I'm not sure I understand correctly, but it seems to me that the number of
plotted lines (from errorbar, len(gca().lines) ) is large compared to your 3
labels. That's why only the lines of the first errorbar are used to build the
legend.
It might to helpful to use the 'label' kwarg of errorbar to properly connect
the errorbar to a label. After that you can build the legend with 'legend()'.
regards Matthias
PS: Could you provide a complete example, if my suggestion doesn't help,
please?
On Wednesday 09 April 2008 10:54:23 Joseph Xu wrote:
> Hi:
>
> I'm having a problem where the lines I plot show up in one style (all
> solid, with different colors) while the legend shows them to be a
> different style (all blue, different dashes). I used the following
> code to plot:
>
> labels = []
> dir_names = {'U' : 'UP', 'D' : 'DOWN', 'L' : 'LEFT', 'R' : 'RIGHT'}
> for dir in lines:
> xa = sorted(lines[dir].keys())
> ya = [lines[dir][x][0] for x in xa]
> yerr = []
> for x in xa:
> if lines[dir][x][1] > lines[dir][x][2]:
> # no bound data
> yerr.append([0,0])
> else:
> yerr.append([lines[dir][x][1] - lines[dir][x][0], lines[dir][x][2]
> - lines[dir][x][0]])
> yerra = array(yerr).transpose()
> errorbar(xa, ya, yerr=yerra)
> labels.append(dir_names[dir])
>
> legend(labels)
> show()
>
>
> Here's the result:
>
> http://i32.tinypic.com/2eat8r8.jpg
>
> What am I doing wrong?
>
> Thanks for the help.
>
> Joseph
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java
>one _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
|
|
From: Anders N. <and...@gm...> - 2008-04-09 09:08:35
|
Hi,
I'm a matplotlib N00b and I have
============
from pylab import *
multimap =
...
figure(1)
for index, key in enumerate( multimap.keys() ):
p = subplot(6, 5, index+1)
xlabel('intraclashes kcal')
ylabel('count')
p.axis([0,70,0,0.2])
vals = multimap[key]
#p.set_autoscale_on(False)
p.hist(vals , 20, normed=True, facecolor="red")
show()
===========
And depending on if I comment or uncomment the
#p.set_autoscale_on(False)
I get either variable axes ranges
http://people.binf.ku.dk/biehl/penelope/mpl_var_axes.png
or squished histogram bars
http://people.binf.ku.dk/biehl/penelope/mpl_fixed_axes.png
Is there a way to fix this?
Thanks,
Anders
|
|
From: Joseph X. <jos...@gm...> - 2008-04-09 08:54:27
|
Hi:
I'm having a problem where the lines I plot show up in one style (all
solid, with different colors) while the legend shows them to be a
different style (all blue, different dashes). I used the following
code to plot:
labels = []
dir_names = {'U' : 'UP', 'D' : 'DOWN', 'L' : 'LEFT', 'R' : 'RIGHT'}
for dir in lines:
xa = sorted(lines[dir].keys())
ya = [lines[dir][x][0] for x in xa]
yerr = []
for x in xa:
if lines[dir][x][1] > lines[dir][x][2]:
# no bound data
yerr.append([0,0])
else:
yerr.append([lines[dir][x][1] - lines[dir][x][0], lines[dir][x][2]
- lines[dir][x][0]])
yerra = array(yerr).transpose()
errorbar(xa, ya, yerr=yerra)
labels.append(dir_names[dir])
legend(labels)
show()
Here's the result:
http://i32.tinypic.com/2eat8r8.jpg
What am I doing wrong?
Thanks for the help.
Joseph
|
|
From: Olivier De W. <od...@gm...> - 2008-04-09 08:33:56
|
Hi, I would like to add a Text that has three colors, "bbbbbbb, gggggggg, rrrrrrrr" where bbbb is in blue, gggg is in green and rrrr in red. I am able to create three texts but how can I have them position 'side by side'? Thanks, Olivier |
|
From: Joshua L. <dis...@gm...> - 2008-04-09 00:07:18
|
Perfect, this works like a charm. And if so desired, this could also
be done without changing the symlink by just changing the Python
Makefile to use gcc-4.2 and g++-4.2. Thanks!
Josh
On Tue, Apr 8, 2008 at 3:11 PM, Jeff Whitaker <js...@fa...> wrote:
> Joshua Lippai wrote:
>
> > Also, I assume I should also take out the no-cpp-precomp flag since
> > that doesn't work with GCC 4.2 either? Or does it not matter?
> >
> >
>
> Josh: Apparently it just ignores that flag.
>
>
> > Josh
> >
> > On Tue, Apr 8, 2008 at 1:57 PM, Joshua Lippai <dis...@gm...>
> wrote:
> >
> >
> > > Thanks, Jeff. But is there a downside to removing the Wno-long-double
> > > flag I should know about?
> > >
> > > Josh
> > >
> > >
> >
>
> No idea.
>
> -Jeff
>
>
>
> >
> > >
> > >
> > > On Tue, Apr 8, 2008 at 9:06 AM, Jeff Whitaker <js...@fa...>
> wrote:
> > > >
> > > > Joshua Lippai wrote:
> > > >
> > > > > Hello all,
> > > > >
> > > > > I'v been trying to get the same python module setup in 10.5 qorking
> > > > > that I had going in 10.4, and so far I've been unable to install
> > > > > matplotlib from svn on my own. I've managed to use an installer
> > > > > (easy_install I think...) in the mean time, but I'd really like to
> be
> > > > > able to keep more up-to-date. When I run python setup.py build, I
> get
> > > > > the following output:
> > > > >
> > > > > BUILDING MATPLOTLIB
> > > > > matplotlib: 0.98pre
> > > > > python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
> [GCC
> > > > > 4.0.1 (Apple Computer, Inc. build 5363)]
> > > > > platform: darwin
> > > > >
> > > > > REQUIRED DEPENDENCIES
> > > > > numpy: 1.0.5.dev4951
> > > > > freetype2: 9.16.3
> > > > >
> > > > > OPTIONAL BACKEND DEPENDENCIES
> > > > > libpng: 1.2.22
> > > > > Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
> > > > > wxPython: 2.8.7.1
> > > > > * WxAgg extension not required for wxPython
> >= 2.8
> > > > > Gtk+: no
> > > > > * Building for Gtk+ requires pygtk; you must
> be
> > > > able
> > > > > * to "import gtk" in your build/install
> environment
> > > > > Qt: no
> > > > > Qt4: no
> > > > > Cairo: no
> > > > >
> > > > > OPTIONAL DATE/TIMEZONE DEPENDENCIES
> > > > > datetime: present, version unknown
> > > > > dateutil: 1.4
> > > > > pytz: 2008a
> > > > >
> > > > > OPTIONAL USETEX DEPENDENCIES
> > > > > dvipng: 1.9
> > > > > ghostscript: 8.57
> > > > > latex: 3.141592
> > > > >
> > > > > EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
> > > > > configobj: matplotlib will provide
> > > > > enthought.traits: matplotlib will provide
> > > > >
> > > > > [Edit setup.cfg to suppress the above messages]
> > > > >
> > > >
> ============================================================================
> > > > > running build
> > > > > running build_py
> > > > > copying lib/matplotlib/cbook.py ->
> > > > build/lib.macosx-10.4-fat-2.5/matplotlib
> > > > > copying lib/matplotlib/collections.py ->
> > > > > build/lib.macosx-10.4-fat-2.5/matplotlib
> > > > > copying lib/matplotlib/lines.py ->
> > > > build/lib.macosx-10.4-fat-2.5/matplotlib
> > > > > copying lib/matplotlib/rcsetup.py ->
> > > > build/lib.macosx-10.4-fat-2.5/matplotlib
> > > > > copying lib/matplotlib/backends/backend_qt4agg.py ->
> > > > > build/lib.macosx-10.4-fat-2.5/matplotlib/backends
> > > > > copying lib/matplotlib/backends/backend_qtagg.py ->
> > > > > build/lib.macosx-10.4-fat-2.5/matplotlib/backends
> > > > > copying lib/matplotlib/mpl-data/matplotlibrc ->
> > > > > build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data
> > > > > copying lib/matplotlib/mpl-data/matplotlib.conf ->
> > > > > build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data
> > > > > running build_ext
> > > > > building 'matplotlib.backends._backend_agg' extension
> > > > > gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
> > > > > -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
> -mno-fused-madd
> > > > > -fno-common -dynamic -DNDEBUG -g -O3
> > > > >
> > > >
> -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
> > > > > -I/opt/gtk/include/libpng12 -I/usr/local/include -I/usr/include
> > > > > -I/usr/X11R6/include -I.
> > > > >
> > > >
> -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
> > > > > -Isrc -Iagg24/include -I. -I/opt/gtk/include/freetype2
> > > > > -I/opt/gtk/include -I/usr/local/include -I/usr/include
> > > > > -I/usr/X11R6/include -I.
> > > > >
> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
> > > > > -c src/_image.cpp -o build/temp.macosx-10.4-fat-2.5/src/_image.o
> > > > > src/_image.cpp: In member function 'Py::Object
> > > > > _image_module::from_images(const Py::Tuple&)':
> > > > > src/_image.cpp:842: error: insn does not satisfy its constraints:
> > > > > (insn 2573 1070 2574 126 agg24/include/agg_color_rgba.h:268 (set
> > > > > (mem:QI (plus:SI (reg/f:SI 6 bp)
> > > > > (const_int -280 [0xfffffffffffffee8])) [0 SR.2969+0
> S1 A8])
> > > > > (reg:QI 5 di)) 56 {*movqi_1} (nil)
> > > > > (nil))
> > > > > src/_image.cpp:842: internal compiler error: in
> > > > > reload_cse_simplify_operands, at postreload.c:391
> > > > > Please submit a full bug report,
> > > > > with preprocessed source if appropriate.
> > > > > See <URL:http://developer.apple.com/bugreporter> for instructions.
> > > > > error: command 'gcc' failed with exit status 1
> > > > >
> > > > > I'm using Apple's GCC 4.0.1 that gets installed by the Xcode
> Developer
> > > > > tools, so I really am not sure exactly of what's going on here. I
> know
> > > > > this has (obviously) been built for OS X 10.5 before, and I'm
> > > > > wondering if anyone else has run into this and knows how to get
> around
> > > > > it.
> > > > >
> > > > > Thanks,
> > > > > Josh
> > > > >
> > > > >
> > > > >
> > > > Josh: I've been able to work around this by installing the gcc 4.2
> beta
> > > > from Apple. You then have to manually symlink gcc to gcc-4.2 in
> /usr/bin,
> > > > and edit the Makefile buried within the python installation to remove
> the
> > > > -Wno-long-double compiler flag (since it doesn't work with gcc-4.2).
> I
> > > > believe the Makefile is located in
> > > >
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config.
> > > >
> > > > -Jeff
> > > >
> > > >
> > >
> > >
> > >
> >
>
>
|
|
From: Nathanael B. <nbe...@gm...> - 2008-04-08 23:28:39
|
Hi all, I am trying to setup matplotbib on my computer (which is unfortunately running on windows) and for some reason, it doesn't seem to be working. I believe I have downloaded everything I should have downloaded (Python 2.5, numpy, ipython, lpng1226, zlib, gtk, and I'm probably forgetting a few other things that I did download), yet when I open Ipython and plot the recommended example plot([1,2,3]) all I get is the error "NameError: name 'plot' is not defined". Possibly, the things I downloaded did not go to the right directories. Does anybody know if this matters, and if yes, where should the files be located? Part of the problem also is that my computer skills are low, so I don't understand many of the terms used (such as "backends", for instance - what is it?). I would really appreciate it if somebody could tell me what I should try to do or point me to a step-by-step guide ! (I would really, really love to be able to plot data I generate on Python...) Many thanks in advance for your help, Nathanael |
|
From: Jeff W. <js...@fa...> - 2008-04-08 22:11:12
|
Joshua Lippai wrote:
> Also, I assume I should also take out the no-cpp-precomp flag since
> that doesn't work with GCC 4.2 either? Or does it not matter?
>
Josh: Apparently it just ignores that flag.
> Josh
>
> On Tue, Apr 8, 2008 at 1:57 PM, Joshua Lippai <dis...@gm...> wrote:
>
>> Thanks, Jeff. But is there a downside to removing the Wno-long-double
>> flag I should know about?
>>
>> Josh
>>
No idea.
-Jeff
>>
>>
>> On Tue, Apr 8, 2008 at 9:06 AM, Jeff Whitaker <js...@fa...> wrote:
>> >
>> > Joshua Lippai wrote:
>> >
>> > > Hello all,
>> > >
>> > > I'v been trying to get the same python module setup in 10.5 qorking
>> > > that I had going in 10.4, and so far I've been unable to install
>> > > matplotlib from svn on my own. I've managed to use an installer
>> > > (easy_install I think...) in the mean time, but I'd really like to be
>> > > able to keep more up-to-date. When I run python setup.py build, I get
>> > > the following output:
>> > >
>> > > BUILDING MATPLOTLIB
>> > > matplotlib: 0.98pre
>> > > python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC
>> > > 4.0.1 (Apple Computer, Inc. build 5363)]
>> > > platform: darwin
>> > >
>> > > REQUIRED DEPENDENCIES
>> > > numpy: 1.0.5.dev4951
>> > > freetype2: 9.16.3
>> > >
>> > > OPTIONAL BACKEND DEPENDENCIES
>> > > libpng: 1.2.22
>> > > Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
>> > > wxPython: 2.8.7.1
>> > > * WxAgg extension not required for wxPython >= 2.8
>> > > Gtk+: no
>> > > * Building for Gtk+ requires pygtk; you must be
>> > able
>> > > * to "import gtk" in your build/install environment
>> > > Qt: no
>> > > Qt4: no
>> > > Cairo: no
>> > >
>> > > OPTIONAL DATE/TIMEZONE DEPENDENCIES
>> > > datetime: present, version unknown
>> > > dateutil: 1.4
>> > > pytz: 2008a
>> > >
>> > > OPTIONAL USETEX DEPENDENCIES
>> > > dvipng: 1.9
>> > > ghostscript: 8.57
>> > > latex: 3.141592
>> > >
>> > > EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
>> > > configobj: matplotlib will provide
>> > > enthought.traits: matplotlib will provide
>> > >
>> > > [Edit setup.cfg to suppress the above messages]
>> > >
>> > ============================================================================
>> > > running build
>> > > running build_py
>> > > copying lib/matplotlib/cbook.py ->
>> > build/lib.macosx-10.4-fat-2.5/matplotlib
>> > > copying lib/matplotlib/collections.py ->
>> > > build/lib.macosx-10.4-fat-2.5/matplotlib
>> > > copying lib/matplotlib/lines.py ->
>> > build/lib.macosx-10.4-fat-2.5/matplotlib
>> > > copying lib/matplotlib/rcsetup.py ->
>> > build/lib.macosx-10.4-fat-2.5/matplotlib
>> > > copying lib/matplotlib/backends/backend_qt4agg.py ->
>> > > build/lib.macosx-10.4-fat-2.5/matplotlib/backends
>> > > copying lib/matplotlib/backends/backend_qtagg.py ->
>> > > build/lib.macosx-10.4-fat-2.5/matplotlib/backends
>> > > copying lib/matplotlib/mpl-data/matplotlibrc ->
>> > > build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data
>> > > copying lib/matplotlib/mpl-data/matplotlib.conf ->
>> > > build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data
>> > > running build_ext
>> > > building 'matplotlib.backends._backend_agg' extension
>> > > gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
>> > > -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
>> > > -fno-common -dynamic -DNDEBUG -g -O3
>> > >
>> > -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
>> > > -I/opt/gtk/include/libpng12 -I/usr/local/include -I/usr/include
>> > > -I/usr/X11R6/include -I.
>> > >
>> > -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
>> > > -Isrc -Iagg24/include -I. -I/opt/gtk/include/freetype2
>> > > -I/opt/gtk/include -I/usr/local/include -I/usr/include
>> > > -I/usr/X11R6/include -I.
>> > > -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>> > > -c src/_image.cpp -o build/temp.macosx-10.4-fat-2.5/src/_image.o
>> > > src/_image.cpp: In member function 'Py::Object
>> > > _image_module::from_images(const Py::Tuple&)':
>> > > src/_image.cpp:842: error: insn does not satisfy its constraints:
>> > > (insn 2573 1070 2574 126 agg24/include/agg_color_rgba.h:268 (set
>> > > (mem:QI (plus:SI (reg/f:SI 6 bp)
>> > > (const_int -280 [0xfffffffffffffee8])) [0 SR.2969+0 S1 A8])
>> > > (reg:QI 5 di)) 56 {*movqi_1} (nil)
>> > > (nil))
>> > > src/_image.cpp:842: internal compiler error: in
>> > > reload_cse_simplify_operands, at postreload.c:391
>> > > Please submit a full bug report,
>> > > with preprocessed source if appropriate.
>> > > See <URL:http://developer.apple.com/bugreporter> for instructions.
>> > > error: command 'gcc' failed with exit status 1
>> > >
>> > > I'm using Apple's GCC 4.0.1 that gets installed by the Xcode Developer
>> > > tools, so I really am not sure exactly of what's going on here. I know
>> > > this has (obviously) been built for OS X 10.5 before, and I'm
>> > > wondering if anyone else has run into this and knows how to get around
>> > > it.
>> > >
>> > > Thanks,
>> > > Josh
>> > >
>> > >
>> > >
>> > Josh: I've been able to work around this by installing the gcc 4.2 beta
>> > from Apple. You then have to manually symlink gcc to gcc-4.2 in /usr/bin,
>> > and edit the Makefile buried within the python installation to remove the
>> > -Wno-long-double compiler flag (since it doesn't work with gcc-4.2). I
>> > believe the Makefile is located in
>> > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config.
>> >
>> > -Jeff
>> >
>> >
>>
>>
|
|
From: Joshua L. <dis...@gm...> - 2008-04-08 21:17:49
|
Also, I assume I should also take out the no-cpp-precomp flag since
that doesn't work with GCC 4.2 either? Or does it not matter?
Josh
On Tue, Apr 8, 2008 at 1:57 PM, Joshua Lippai <dis...@gm...> wrote:
> Thanks, Jeff. But is there a downside to removing the Wno-long-double
> flag I should know about?
>
> Josh
>
>
>
> On Tue, Apr 8, 2008 at 9:06 AM, Jeff Whitaker <js...@fa...> wrote:
> >
> > Joshua Lippai wrote:
> >
> > > Hello all,
> > >
> > > I'v been trying to get the same python module setup in 10.5 qorking
> > > that I had going in 10.4, and so far I've been unable to install
> > > matplotlib from svn on my own. I've managed to use an installer
> > > (easy_install I think...) in the mean time, but I'd really like to be
> > > able to keep more up-to-date. When I run python setup.py build, I get
> > > the following output:
> > >
> > > BUILDING MATPLOTLIB
> > > matplotlib: 0.98pre
> > > python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC
> > > 4.0.1 (Apple Computer, Inc. build 5363)]
> > > platform: darwin
> > >
> > > REQUIRED DEPENDENCIES
> > > numpy: 1.0.5.dev4951
> > > freetype2: 9.16.3
> > >
> > > OPTIONAL BACKEND DEPENDENCIES
> > > libpng: 1.2.22
> > > Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
> > > wxPython: 2.8.7.1
> > > * WxAgg extension not required for wxPython >= 2.8
> > > Gtk+: no
> > > * Building for Gtk+ requires pygtk; you must be
> > able
> > > * to "import gtk" in your build/install environment
> > > Qt: no
> > > Qt4: no
> > > Cairo: no
> > >
> > > OPTIONAL DATE/TIMEZONE DEPENDENCIES
> > > datetime: present, version unknown
> > > dateutil: 1.4
> > > pytz: 2008a
> > >
> > > OPTIONAL USETEX DEPENDENCIES
> > > dvipng: 1.9
> > > ghostscript: 8.57
> > > latex: 3.141592
> > >
> > > EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
> > > configobj: matplotlib will provide
> > > enthought.traits: matplotlib will provide
> > >
> > > [Edit setup.cfg to suppress the above messages]
> > >
> > ============================================================================
> > > running build
> > > running build_py
> > > copying lib/matplotlib/cbook.py ->
> > build/lib.macosx-10.4-fat-2.5/matplotlib
> > > copying lib/matplotlib/collections.py ->
> > > build/lib.macosx-10.4-fat-2.5/matplotlib
> > > copying lib/matplotlib/lines.py ->
> > build/lib.macosx-10.4-fat-2.5/matplotlib
> > > copying lib/matplotlib/rcsetup.py ->
> > build/lib.macosx-10.4-fat-2.5/matplotlib
> > > copying lib/matplotlib/backends/backend_qt4agg.py ->
> > > build/lib.macosx-10.4-fat-2.5/matplotlib/backends
> > > copying lib/matplotlib/backends/backend_qtagg.py ->
> > > build/lib.macosx-10.4-fat-2.5/matplotlib/backends
> > > copying lib/matplotlib/mpl-data/matplotlibrc ->
> > > build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data
> > > copying lib/matplotlib/mpl-data/matplotlib.conf ->
> > > build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data
> > > running build_ext
> > > building 'matplotlib.backends._backend_agg' extension
> > > gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
> > > -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
> > > -fno-common -dynamic -DNDEBUG -g -O3
> > >
> > -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
> > > -I/opt/gtk/include/libpng12 -I/usr/local/include -I/usr/include
> > > -I/usr/X11R6/include -I.
> > >
> > -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
> > > -Isrc -Iagg24/include -I. -I/opt/gtk/include/freetype2
> > > -I/opt/gtk/include -I/usr/local/include -I/usr/include
> > > -I/usr/X11R6/include -I.
> > > -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
> > > -c src/_image.cpp -o build/temp.macosx-10.4-fat-2.5/src/_image.o
> > > src/_image.cpp: In member function 'Py::Object
> > > _image_module::from_images(const Py::Tuple&)':
> > > src/_image.cpp:842: error: insn does not satisfy its constraints:
> > > (insn 2573 1070 2574 126 agg24/include/agg_color_rgba.h:268 (set
> > > (mem:QI (plus:SI (reg/f:SI 6 bp)
> > > (const_int -280 [0xfffffffffffffee8])) [0 SR.2969+0 S1 A8])
> > > (reg:QI 5 di)) 56 {*movqi_1} (nil)
> > > (nil))
> > > src/_image.cpp:842: internal compiler error: in
> > > reload_cse_simplify_operands, at postreload.c:391
> > > Please submit a full bug report,
> > > with preprocessed source if appropriate.
> > > See <URL:http://developer.apple.com/bugreporter> for instructions.
> > > error: command 'gcc' failed with exit status 1
> > >
> > > I'm using Apple's GCC 4.0.1 that gets installed by the Xcode Developer
> > > tools, so I really am not sure exactly of what's going on here. I know
> > > this has (obviously) been built for OS X 10.5 before, and I'm
> > > wondering if anyone else has run into this and knows how to get around
> > > it.
> > >
> > > Thanks,
> > > Josh
> > >
> > >
> > >
> > Josh: I've been able to work around this by installing the gcc 4.2 beta
> > from Apple. You then have to manually symlink gcc to gcc-4.2 in /usr/bin,
> > and edit the Makefile buried within the python installation to remove the
> > -Wno-long-double compiler flag (since it doesn't work with gcc-4.2). I
> > believe the Makefile is located in
> > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config.
> >
> > -Jeff
> >
> >
>
|
|
From: Joshua L. <dis...@gm...> - 2008-04-08 20:57:37
|
Thanks, Jeff. But is there a downside to removing the Wno-long-double
flag I should know about?
Josh
On Tue, Apr 8, 2008 at 9:06 AM, Jeff Whitaker <js...@fa...> wrote:
>
> Joshua Lippai wrote:
>
> > Hello all,
> >
> > I'v been trying to get the same python module setup in 10.5 qorking
> > that I had going in 10.4, and so far I've been unable to install
> > matplotlib from svn on my own. I've managed to use an installer
> > (easy_install I think...) in the mean time, but I'd really like to be
> > able to keep more up-to-date. When I run python setup.py build, I get
> > the following output:
> >
> > BUILDING MATPLOTLIB
> > matplotlib: 0.98pre
> > python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC
> > 4.0.1 (Apple Computer, Inc. build 5363)]
> > platform: darwin
> >
> > REQUIRED DEPENDENCIES
> > numpy: 1.0.5.dev4951
> > freetype2: 9.16.3
> >
> > OPTIONAL BACKEND DEPENDENCIES
> > libpng: 1.2.22
> > Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
> > wxPython: 2.8.7.1
> > * WxAgg extension not required for wxPython >= 2.8
> > Gtk+: no
> > * Building for Gtk+ requires pygtk; you must be
> able
> > * to "import gtk" in your build/install environment
> > Qt: no
> > Qt4: no
> > Cairo: no
> >
> > OPTIONAL DATE/TIMEZONE DEPENDENCIES
> > datetime: present, version unknown
> > dateutil: 1.4
> > pytz: 2008a
> >
> > OPTIONAL USETEX DEPENDENCIES
> > dvipng: 1.9
> > ghostscript: 8.57
> > latex: 3.141592
> >
> > EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
> > configobj: matplotlib will provide
> > enthought.traits: matplotlib will provide
> >
> > [Edit setup.cfg to suppress the above messages]
> >
> ============================================================================
> > running build
> > running build_py
> > copying lib/matplotlib/cbook.py ->
> build/lib.macosx-10.4-fat-2.5/matplotlib
> > copying lib/matplotlib/collections.py ->
> > build/lib.macosx-10.4-fat-2.5/matplotlib
> > copying lib/matplotlib/lines.py ->
> build/lib.macosx-10.4-fat-2.5/matplotlib
> > copying lib/matplotlib/rcsetup.py ->
> build/lib.macosx-10.4-fat-2.5/matplotlib
> > copying lib/matplotlib/backends/backend_qt4agg.py ->
> > build/lib.macosx-10.4-fat-2.5/matplotlib/backends
> > copying lib/matplotlib/backends/backend_qtagg.py ->
> > build/lib.macosx-10.4-fat-2.5/matplotlib/backends
> > copying lib/matplotlib/mpl-data/matplotlibrc ->
> > build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data
> > copying lib/matplotlib/mpl-data/matplotlib.conf ->
> > build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data
> > running build_ext
> > building 'matplotlib.backends._backend_agg' extension
> > gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
> > -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
> > -fno-common -dynamic -DNDEBUG -g -O3
> >
> -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
> > -I/opt/gtk/include/libpng12 -I/usr/local/include -I/usr/include
> > -I/usr/X11R6/include -I.
> >
> -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
> > -Isrc -Iagg24/include -I. -I/opt/gtk/include/freetype2
> > -I/opt/gtk/include -I/usr/local/include -I/usr/include
> > -I/usr/X11R6/include -I.
> > -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
> > -c src/_image.cpp -o build/temp.macosx-10.4-fat-2.5/src/_image.o
> > src/_image.cpp: In member function 'Py::Object
> > _image_module::from_images(const Py::Tuple&)':
> > src/_image.cpp:842: error: insn does not satisfy its constraints:
> > (insn 2573 1070 2574 126 agg24/include/agg_color_rgba.h:268 (set
> > (mem:QI (plus:SI (reg/f:SI 6 bp)
> > (const_int -280 [0xfffffffffffffee8])) [0 SR.2969+0 S1 A8])
> > (reg:QI 5 di)) 56 {*movqi_1} (nil)
> > (nil))
> > src/_image.cpp:842: internal compiler error: in
> > reload_cse_simplify_operands, at postreload.c:391
> > Please submit a full bug report,
> > with preprocessed source if appropriate.
> > See <URL:http://developer.apple.com/bugreporter> for instructions.
> > error: command 'gcc' failed with exit status 1
> >
> > I'm using Apple's GCC 4.0.1 that gets installed by the Xcode Developer
> > tools, so I really am not sure exactly of what's going on here. I know
> > this has (obviously) been built for OS X 10.5 before, and I'm
> > wondering if anyone else has run into this and knows how to get around
> > it.
> >
> > Thanks,
> > Josh
> >
> >
> >
> Josh: I've been able to work around this by installing the gcc 4.2 beta
> from Apple. You then have to manually symlink gcc to gcc-4.2 in /usr/bin,
> and edit the Makefile buried within the python installation to remove the
> -Wno-long-double compiler flag (since it doesn't work with gcc-4.2). I
> believe the Makefile is located in
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config.
>
> -Jeff
>
>
|
|
From: Jochen K. <jo...@fh...> - 2008-04-08 20:04:34
|
On 08.04.2008, at 19:51, Manuel Metz wrote: > Jochen Küpper wrote: >> >> matplotlib creates a contour plot with an x-axes labels of >> "0.0000324", ... and adds a "+1" in the lower right corner. >> Actually, it is often not visible at all. >> How can I set it to always use the "correct" values directly as >> labels? >> > gca().xaxis.set_major_formatter(ScalarFormatter(useOffset=False)) > > see also examples/newscalarformatter_demo.py That works perfectly! As a more general question: How was I supposed to find this out? What user-documentation is there besides the matplotlib.sf.net homepage and the PDF user guide? Should I have found it in these docs already? Thanks for your help. Greetings, Jochen -- Einigkeit und Recht und Freiheit http://www.Jochen-Kuepper.de Liberté, Égalité, Fraternité GnuPG key: CC1B0B4D Sex, drugs and rock-n-roll |
|
From: Eric F. <ef...@ha...> - 2008-04-08 18:11:58
|
Alan G Isaac wrote: > On Tuesday 08 April 2008 10:46:32 am Bryan Fodness wrote: >> I am starting with a zero array, populate it according to >> some condition, save the graph > > I am going to need something along this line pretty soon. > What is the difference between matshow and pcolormesh for > this? (Besides the aspect ratio?) matshow is a compatibility interface to imshow, which is restricted to regular rectangular grids, but is the fastest way to make an image-like plot. pcolormesh is not as fast, but can handle arbitrary quadrilateral grids. There is also code to handle irregular rectangular grids at a speed intermediate between imshow and pcolormesh (which is a wrapper for quadmesh). A unified interface to all of these is provided by the pcolorfast axes method in svn. Its API may need tweaking; suggestions are welcome. Eric > > Thank you, > Alan Isaac > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Register now and save $200. Hurry, offer ends at 11:59 p.m., > Monday, April 7! Use priority code J8TLD2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: Manuel M. <mm...@as...> - 2008-04-08 17:52:51
|
Jochen Küpper wrote: > Hi, > > when I create a contour plot with the following grid: > xval = [ 1.00003324, 1.00009971, 1.00016618] > yval = [250, 260, 270] > data = ones((3,3)) > contourf(xval, yval, data) > > matplotlib creates a contour plot with an x-axes labels of > "0.0000324", ... and adds a "+1" in the lower right corner. > Actually, it is often not visible at all. > > How can I set it to always use the "correct" values directly as labels? > > Greetings, > Jochen Hi, you can use gca().xaxis.set_major_formatter(ScalarFormatter(useOffset=False)) see also examples/newscalarformatter_demo.py Manuel |
|
From: Pierre GM <pgm...@gm...> - 2008-04-08 16:58:04
|
On Tuesday 08 April 2008 10:46:32 Bryan Fodness wrote:
> I am starting with a zero array, populate it according to some
> condition, save the graph, and then reset the array to zero. Can
> someone tell me if there is a better (faster) way to do this?
My 2c:
* Use inplace addition to save some space
while something:
....
if something:
if something:
a[y,x] += 1
* To set all the values to 0:
a.flat = 0
|
|
From: Alan G I. <ai...@am...> - 2008-04-08 16:27:06
|
On Tuesday 08 April 2008 10:46:32 am Bryan Fodness wrote: > I am starting with a zero array, populate it according to > some condition, save the graph I am going to need something along this line pretty soon. What is the difference between matshow and pcolormesh for this? (Besides the aspect ratio?) Thank you, Alan Isaac |
|
From: Jeff W. <js...@fa...> - 2008-04-08 16:06:48
|
Joshua Lippai wrote:
> Hello all,
>
> I'v been trying to get the same python module setup in 10.5 qorking
> that I had going in 10.4, and so far I've been unable to install
> matplotlib from svn on my own. I've managed to use an installer
> (easy_install I think...) in the mean time, but I'd really like to be
> able to keep more up-to-date. When I run python setup.py build, I get
> the following output:
>
> BUILDING MATPLOTLIB
> matplotlib: 0.98pre
> python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC
> 4.0.1 (Apple Computer, Inc. build 5363)]
> platform: darwin
>
> REQUIRED DEPENDENCIES
> numpy: 1.0.5.dev4951
> freetype2: 9.16.3
>
> OPTIONAL BACKEND DEPENDENCIES
> libpng: 1.2.22
> Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
> wxPython: 2.8.7.1
> * WxAgg extension not required for wxPython >= 2.8
> Gtk+: no
> * Building for Gtk+ requires pygtk; you must be able
> * to "import gtk" in your build/install environment
> Qt: no
> Qt4: no
> Cairo: no
>
> OPTIONAL DATE/TIMEZONE DEPENDENCIES
> datetime: present, version unknown
> dateutil: 1.4
> pytz: 2008a
>
> OPTIONAL USETEX DEPENDENCIES
> dvipng: 1.9
> ghostscript: 8.57
> latex: 3.141592
>
> EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
> configobj: matplotlib will provide
> enthought.traits: matplotlib will provide
>
> [Edit setup.cfg to suppress the above messages]
> ============================================================================
> running build
> running build_py
> copying lib/matplotlib/cbook.py -> build/lib.macosx-10.4-fat-2.5/matplotlib
> copying lib/matplotlib/collections.py ->
> build/lib.macosx-10.4-fat-2.5/matplotlib
> copying lib/matplotlib/lines.py -> build/lib.macosx-10.4-fat-2.5/matplotlib
> copying lib/matplotlib/rcsetup.py -> build/lib.macosx-10.4-fat-2.5/matplotlib
> copying lib/matplotlib/backends/backend_qt4agg.py ->
> build/lib.macosx-10.4-fat-2.5/matplotlib/backends
> copying lib/matplotlib/backends/backend_qtagg.py ->
> build/lib.macosx-10.4-fat-2.5/matplotlib/backends
> copying lib/matplotlib/mpl-data/matplotlibrc ->
> build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data
> copying lib/matplotlib/mpl-data/matplotlib.conf ->
> build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data
> running build_ext
> building 'matplotlib.backends._backend_agg' extension
> gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
> -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
> -fno-common -dynamic -DNDEBUG -g -O3
> -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
> -I/opt/gtk/include/libpng12 -I/usr/local/include -I/usr/include
> -I/usr/X11R6/include -I.
> -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
> -Isrc -Iagg24/include -I. -I/opt/gtk/include/freetype2
> -I/opt/gtk/include -I/usr/local/include -I/usr/include
> -I/usr/X11R6/include -I.
> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
> -c src/_image.cpp -o build/temp.macosx-10.4-fat-2.5/src/_image.o
> src/_image.cpp: In member function 'Py::Object
> _image_module::from_images(const Py::Tuple&)':
> src/_image.cpp:842: error: insn does not satisfy its constraints:
> (insn 2573 1070 2574 126 agg24/include/agg_color_rgba.h:268 (set
> (mem:QI (plus:SI (reg/f:SI 6 bp)
> (const_int -280 [0xfffffffffffffee8])) [0 SR.2969+0 S1 A8])
> (reg:QI 5 di)) 56 {*movqi_1} (nil)
> (nil))
> src/_image.cpp:842: internal compiler error: in
> reload_cse_simplify_operands, at postreload.c:391
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://developer.apple.com/bugreporter> for instructions.
> error: command 'gcc' failed with exit status 1
>
> I'm using Apple's GCC 4.0.1 that gets installed by the Xcode Developer
> tools, so I really am not sure exactly of what's going on here. I know
> this has (obviously) been built for OS X 10.5 before, and I'm
> wondering if anyone else has run into this and knows how to get around
> it.
>
> Thanks,
> Josh
>
>
Josh: I've been able to work around this by installing the gcc 4.2 beta
from Apple. You then have to manually symlink gcc to gcc-4.2 in
/usr/bin, and edit the Makefile buried within the python installation to
remove the -Wno-long-double compiler flag (since it doesn't work with
gcc-4.2). I believe the Makefile is located in
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config.
-Jeff
|
|
From: Olivier De W. <od...@gm...> - 2008-04-08 15:58:02
|
Hi, I would like to add a Text that has three colors, "bbbbbbb, gggggggg, rrrrrrrr" where bbbb is in blue, gggg is in green and rrrr in red. I am able to create three texts but how can I have them position 'side by side'? Thanks, Olivier |
|
From: Darren D. <dar...@co...> - 2008-04-08 15:16:05
|
On Tuesday 08 April 2008 10:46:32 am Bryan Fodness wrote: > I am starting with a zero array, populate it according to some > condition, save the graph, and then reset the array to zero. Can > someone tell me if there is a better (faster) way to do this? You might ask at the numpy mailing list, but I suspect that a *= 0 might be faster. > Or am I > just doing that much, and that is how long it will take? I have a > couple hundred graphs that I am creating, that will ultimately be > combined for animation. > > ay=4000 > ax=60 > #create empty array > a = zeros((ay,ax), int) > > while something: > pcolormesh(X, Y, a) > figname = 'Frame%03d' %int(field) > print figname > savefig(figname) > # reset values > a = zeros((ay,ax), int) > if something: > if something: > a[y,x] = a[y,x]+1 |
|
From: Bryan F. <bry...@gm...> - 2008-04-08 14:46:40
|
I am starting with a zero array, populate it according to some
condition, save the graph, and then reset the array to zero. Can
someone tell me if there is a better (faster) way to do this? Or am I
just doing that much, and that is how long it will take? I have a
couple hundred graphs that I am creating, that will ultimately be
combined for animation.
ay=4000
ax=60
#create empty array
a = zeros((ay,ax), int)
while something:
pcolormesh(X, Y, a)
figname = 'Frame%03d' %int(field)
print figname
savefig(figname)
# reset values
a = zeros((ay,ax), int)
if something:
if something:
a[y,x] = a[y,x]+1
|
|
From: Joshua L. <dis...@gm...> - 2008-04-08 12:31:11
|
Hello all,
I'v been trying to get the same python module setup in 10.5 qorking
that I had going in 10.4, and so far I've been unable to install
matplotlib from svn on my own. I've managed to use an installer
(easy_install I think...) in the mean time, but I'd really like to be
able to keep more up-to-date. When I run python setup.py build, I get
the following output:
BUILDING MATPLOTLIB
matplotlib: 0.98pre
python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC
4.0.1 (Apple Computer, Inc. build 5363)]
platform: darwin
REQUIRED DEPENDENCIES
numpy: 1.0.5.dev4951
freetype2: 9.16.3
OPTIONAL BACKEND DEPENDENCIES
libpng: 1.2.22
Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
wxPython: 2.8.7.1
* WxAgg extension not required for wxPython >= 2.8
Gtk+: no
* Building for Gtk+ requires pygtk; you must be able
* to "import gtk" in your build/install environment
Qt: no
Qt4: no
Cairo: no
OPTIONAL DATE/TIMEZONE DEPENDENCIES
datetime: present, version unknown
dateutil: 1.4
pytz: 2008a
OPTIONAL USETEX DEPENDENCIES
dvipng: 1.9
ghostscript: 8.57
latex: 3.141592
EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
configobj: matplotlib will provide
enthought.traits: matplotlib will provide
[Edit setup.cfg to suppress the above messages]
============================================================================
running build
running build_py
copying lib/matplotlib/cbook.py -> build/lib.macosx-10.4-fat-2.5/matplotlib
copying lib/matplotlib/collections.py ->
build/lib.macosx-10.4-fat-2.5/matplotlib
copying lib/matplotlib/lines.py -> build/lib.macosx-10.4-fat-2.5/matplotlib
copying lib/matplotlib/rcsetup.py -> build/lib.macosx-10.4-fat-2.5/matplotlib
copying lib/matplotlib/backends/backend_qt4agg.py ->
build/lib.macosx-10.4-fat-2.5/matplotlib/backends
copying lib/matplotlib/backends/backend_qtagg.py ->
build/lib.macosx-10.4-fat-2.5/matplotlib/backends
copying lib/matplotlib/mpl-data/matplotlibrc ->
build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data
copying lib/matplotlib/mpl-data/matplotlib.conf ->
build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data
running build_ext
building 'matplotlib.backends._backend_agg' extension
gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
-fno-common -dynamic -DNDEBUG -g -O3
-I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
-I/opt/gtk/include/libpng12 -I/usr/local/include -I/usr/include
-I/usr/X11R6/include -I.
-I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
-Isrc -Iagg24/include -I. -I/opt/gtk/include/freetype2
-I/opt/gtk/include -I/usr/local/include -I/usr/include
-I/usr/X11R6/include -I.
-I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
-c src/_image.cpp -o build/temp.macosx-10.4-fat-2.5/src/_image.o
src/_image.cpp: In member function 'Py::Object
_image_module::from_images(const Py::Tuple&)':
src/_image.cpp:842: error: insn does not satisfy its constraints:
(insn 2573 1070 2574 126 agg24/include/agg_color_rgba.h:268 (set
(mem:QI (plus:SI (reg/f:SI 6 bp)
(const_int -280 [0xfffffffffffffee8])) [0 SR.2969+0 S1 A8])
(reg:QI 5 di)) 56 {*movqi_1} (nil)
(nil))
src/_image.cpp:842: internal compiler error: in
reload_cse_simplify_operands, at postreload.c:391
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
error: command 'gcc' failed with exit status 1
I'm using Apple's GCC 4.0.1 that gets installed by the Xcode Developer
tools, so I really am not sure exactly of what's going on here. I know
this has (obviously) been built for OS X 10.5 before, and I'm
wondering if anyone else has run into this and knows how to get around
it.
Thanks,
Josh
|