SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

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
(7)
2
(5)
3
(18)
4
(9)
5
(13)
6
(14)
7
(8)
8
(7)
9
(6)
10
(6)
11
(24)
12
(14)
13
(9)
14
(21)
15
(6)
16
(1)
17
(20)
18
(42)
19
(16)
20
(21)
21
(41)
22
(13)
23
(11)
24
(15)
25
(32)
26
(27)
27
(29)
28
(10)
29
(3)
30
(1)
31
(5)





Showing results of 450

<< < 1 .. 6 7 8 9 10 .. 18 > >> (Page 8 of 18)
From: Eric F. <ef...@ha...> - 2008年03月21日 07:00:36
Chris Withers wrote:
> Michael Droettboom wrote:
>>> That's cool'n'all, but when is svn going to make it into a Windows 
>>> binary release? ;-)
>>> 
>> I suspect your question is somewhat rhetorical, but... it will 
>> probably be a while ;) 
> 
> Why is that? Who cranks out the binary releases on Windows and what 
> compiler do they use?
> 
>> I know a lot of people (myself included) have had success with MinGW. 
> 
> What's the "official" compiler used, though?
> 
>> It's a good learning experience, and there's lots on this list willing 
>> to help. If we can get more SVN Windows users on board, more crazy 
>> Windows-only bugs will get found and squashed sooner... ;)
> 
> Well, tell me how to get the svn trunk and how to compile and I'll give 
> it a go :-)
Assuming you have svn installed on your machine, start here:
http://sourceforge.net/svn/?group_id=80706
You will probably want to modify the checkout command slightly, 
something like this:
svn co 
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib 
mpl_svn
(That should be all one line, but the mailer may have broken it.)
There are some Windows-related compilation hints in the INSTALL.txt file 
and in setupext.py. I think the basic idea is that once you have all 
prerequisites in place, complete with header files, then the standard 
"python setup.py install" will do the right thing. The hard part is 
probably getting all the prerequisites installed. I've never tried on 
Win, so I don't know.
Charlie Moad does the Windows releases. I don't know what compiler he uses.
It would be nice if some people who have successfully built on Windows 
could collectively assemble a step-by-step account of how to go from a 
bare Win box to a working mpl (preferably compiled with mingw); but 
maybe this would take more effort than it is worth. I am on shaky 
ground suggesting it, because it is not something I can help with at 
all, and I don't even have a clear picture of what it would require. I 
gather a similar account would be useful for OS X.
Eric
> 
> cheers,
> 
> Chris
> 
From: Eric F. <ef...@ha...> - 2008年03月21日 06:40:48
> 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. If you 
change any rcParams dictionary entries, typically using the rc function, 
then you can restore the dictionary to its default condition with the 
rcdefaults() function.
Eric
From: Simson G. <si...@ac...> - 2008年03月21日 05:51:43
Hi. I'm making scientific graphs again, so i just got back on this 
mailing list after a two year hiatus.
I am using:
matplotlib-0.90.0-py2.5-macosx-10.4-fat.egg
Here is a simple program:
#!/usr/bin/python
#
# Do our plots with matplotlib
import matplotlib
matplotlib.use('Agg')
from pylab import *
fig = figure(num=1,figsize=(6.5,4))
ax = fig.add_axes([.15,.3,.8,.65])
ax.set_title("Why is the Y axes upside down?")
ax.set_yscale('log')
ax.set_ylabel('Queries per second')
ax.bar(1,1000,.5,color='r')
ax.bar(2,5000,.5,color='b')
ax.bar(3,55000,.5,color='g')
fig.savefig("broken_log_demo.png")
Here is the plot with a PNG:
From: Chris.Barker <Chr...@no...> - 2008年03月21日 05:45:10
Charlie Moad wrote:
> I agree you are not using a universal build of python to compile 
> matplotlib. You cannot pass in the "-arch i386 -arch ppc" flags. 
> Only pass the architecture of your computer.
Actually, I think the OP IS using a universal python, thus both flags -- 
he isn't manually passing in any flags at all. The problem is that it's 
trying to link in a jpeg lib that isn't Universal.
Is there a Universal Binary egg that will work with MacPython 2.5?
Note to OP -- maybe you'd have better luck with Apple's Python 2.5 -- it 
seems that that's what more people are using with Leopard.
-Chris
-- 
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no... 
From: C M <cmp...@gm...> - 2008年03月21日 03:39:56
Pierre,
I was interested in learning more about TimeSeries, and had a few
questions...
Your data is indexed in time, right ? Your x-axis is a date object ?
Just to be clear on the language: "indexed in time" means data for which
the x-axis is a series of dates, correct? But I am not sure what is meant
by the "x-axis being a date object"--wouldn't it be a axis object with the
values comprising it being date objects? I'm not trying to split hairs, I'm
just unclear about the way this is typically described and it would be
useful for me to be clear about it.
Then use
> scikits.timeseries
> http://scipy.org/scipy/scikits/wiki/TimeSeries
> That package was designed to take missing dates/data into account. That
> way,
> you can plot your data with the gaps already taken into account: we have
> written a specific matplotlib interface, you'll find the details following
> the link above.
I've looked at the link. Could you explain what TimeSeries does that the
mpl modules dates and dateutil don't do, or when one would use one versus
the other?
For my part, I need to simply plot values with dates (and yes with some
dates missing no doubt) as the x-axis and am looking for various ways to do
it well.
Thank you.
From: Charlie M. <cw...@gm...> - 2008年03月21日 01:33:31
I agree you are not using a universal build of python to compile matplotlib.
 You cannot pass in the "-arch i386 -arch ppc" flags. Only pass the
architecture of your computer.
- Charlie
On Thu, Mar 20, 2008 at 7:13 PM, Christopher Barker <Chr...@no...>
wrote:
> Andrew Charles wrote:
> > Compiling Matplotlib from source, or easy_installing the egg
>
> >>From the egg:
> > ld: in /sw/lib/libJPEG.dylib, file is not of required architecture for
>
> hmm -- odd, I wouldn't think the egg should be linked against what looks
> like a macports libJPEG -- are you sure it isn't trying to build the
> egg when you easy_install?
>
> > And from source:
>
> > ld: in /sw/lib/libJPEG.dylib, file is not of required architecture for
> > architecture ppc
>
> It's trying to link against a macports libJPEG. However, macports
> doesn't build universal binaries, and the MacPython tries to build them,
> and hence the problem.
>
> I'd try to find another libJPEG -- The UnixImageIO Frameworks form
> KyngChaos are a good choice, though I don't know off the top of my head
> how to get MPL to find them.
>
> http://www.kyngchaos.com/wiki/software:frameworks
>
>
> -Chris
>
>
>
> --
> Christopher Barker, Ph.D.
> Oceanographer
>
> Emergency Response Division
> NOAA/NOS/OR&R (206) 526-6959 voice
> 7600 Sand Point Way NE (206) 526-6329 fax
> Seattle, WA 98115 (206) 526-6317 main reception
>
> Chr...@no...
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Pierre GM <pgm...@gm...> - 2008年03月21日 00:46:29
Chris,
My 2c:
Your data is indexed in time, right ? Your x-axis is a date object ? Then use 
scikits.timeseries
http://scipy.org/scipy/scikits/wiki/TimeSeries
That package was designed to take missing dates/data into account. That way, 
you can plot your data with the gaps already taken into account: we have 
written a specific matplotlib interface, you'll find the details following 
the link above. I must admit we didn't implement poly_between for timeseries. 
Most likely, we'd have to implement it for regular masked arrays first, as 
mentioned by Eric.
What you could do is to fill your array with some kind of baseline, such as 0, 
or your minimum data, or wtvr. That's just a quick trick and no fix.
From: Christopher B. <c-...@as...> - 2008年03月21日 00:40:24
Hi Brook,
FG> Can you give me a simple example to show how to set the figure's
FG> interactive property to on? I appreciate!
 >>> import pylab
 >>> pylab.ion()
-- 
Chris
From: carlwenrich <car...@ya...> - 2008年03月21日 00:32:12
I've searched the user manual (and this forum) but I don't see anything that
helps.
-- 
View this message in context: http://www.nabble.com/How-do-I-change-the-font-size-for-the-default-coordinates--tp16191876p16191876.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Fans G. <gnu...@ya...> - 2008年03月21日 00:24:59
<table cellspacing='0' cellpadding='0' border='0' ><tr><td style='font: inherit;'>Can you give me a simple example to show how to set the figure's interactive property to on? I appreciate!<br><br>--Brook<br><br><br>--- On <b>Fri, 3/21/08, Christopher Brown <i>&lt;c-...@as...&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: Christopher Brown &lt;c-...@as...&gt;<br>Subject: Re: [Matplotlib-users] How to close the figure after show it?<br>To: gnu...@ya...<br>Cc: mat...@li...<br>Date: Friday, March 21, 2008, 12:19 AM<br><br><pre>Hi,<br><br>&gt; Hi Mike,thanks for your reply. I tried f=figure() and pylab.close(f),<br>&gt; but the figure can not be closed automatically. Seems that<br> &gt; time.sleep(3) doesn't be called until I close the figure manually.<br><br>Maybe try setting the figure's interactive property to on?<br><br>--
 <br>Chris</pre></blockquote></td></tr></table><br>
 <hr size=1>Looking for last minute shopping deals? <a href="http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping"> 
Find them fast with Yahoo! Search.</a>
From: Christopher B. <c-...@as...> - 2008年03月21日 00:19:36
Hi,
> Hi Mike,thanks for your reply. I tried f=figure() and pylab.close(f),
> but the figure can not be closed automatically. Seems that
 > time.sleep(3) doesn't be called until I close the figure manually.
Maybe try setting the figure's interactive property to on?
-- 
Chris
From: Fans G. <gnu...@ya...> - 2008年03月20日 23:57:49
<table cellspacing='0' cellpadding='0' border='0' ><tr><td style='font: inherit;'>Hi Mike,thanks for your reply. I tried f=figure() and pylab.close(f), but the figure can not be closed automatically. Seems that <span style="font-weight: bold;">time.sleep(3) </span>doesn't be called until I close the figure manually. The test code is attached below.<br><br>Thanks,<br>Brook<br>&nbsp;<br>==================================<br>from pylab import *<br>from matplotlib import *<br>from pylab import figure, close, show, nx<br>from matplotlib.figure import Figure<br>import time<br><br>x=arange(10)<br>y=[2, 4, 6, 8, 10, 12, 14, 16, 18, 20]<br>x2=arange(20)<br>y2=arange(20)<br><br>f=figure()&nbsp;&nbsp;&nbsp; <br>hold(True)<br>plot(x,y)<br>plot(x2,y2)<br>grid()<br>pylab.show()<br>time.sleep(3)<br>pylab.close(f)<br></td></tr></table><br>
 <hr size=1>Looking for last minute shopping deals? <a href="http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping"> 
Find them fast with Yahoo! Search.</a>
From: Christopher B. <Chr...@no...> - 2008年03月20日 23:10:37
Andrew Charles wrote:
> Compiling Matplotlib from source, or easy_installing the egg
>>From the egg:
> ld: in /sw/lib/libJPEG.dylib, file is not of required architecture for
hmm -- odd, I wouldn't think the egg should be linked against what looks 
like a macports libJPEG -- are you sure it isn't trying to build the 
egg when you easy_install?
> And from source:
> ld: in /sw/lib/libJPEG.dylib, file is not of required architecture for
> architecture ppc
It's trying to link against a macports libJPEG. However, macports 
doesn't build universal binaries, and the MacPython tries to build them, 
and hence the problem.
I'd try to find another libJPEG -- The UnixImageIO Frameworks form 
KyngChaos are a good choice, though I don't know off the top of my head 
how to get MPL to find them.
http://www.kyngchaos.com/wiki/software:frameworks
-Chris
-- 
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
From: Chris W. <ch...@si...> - 2008年03月20日 23:03:34
Michael Droettboom wrote:
>> That's cool'n'all, but when is svn going to make it into a Windows 
>> binary release? ;-)
>> 
> I suspect your question is somewhat rhetorical, but... it will probably 
> be a while ;) 
Why is that? Who cranks out the binary releases on Windows and what 
compiler do they use?
> I know a lot of people (myself included) have had success with MinGW. 
What's the "official" compiler used, though?
> It's a good learning experience, and there's lots on this list willing 
> to help. If we can get more SVN Windows users on board, more crazy 
> Windows-only bugs will get found and squashed sooner... ;)
Well, tell me how to get the svn trunk and how to compile and I'll give 
it a go :-)
cheers,
Chris
-- 
Simplistix - Content Management, Zope & Python Consulting
 - http://www.simplistix.co.uk
From: Chris W. <ch...@si...> - 2008年03月20日 23:01:55
[re-adding in the list]
Eric Firing wrote:
> It looks like you have hit a bug that has been fixed. I don't know when 
> it was fixed, but your example works with svn.
As I said elsewhere, with all the fixes, maybe it's time for a new 
release? ;-)
> Also, you can call bar repeatedly; I think it will just keep adding the 
> new bars, resizing the plot as needed. Everything has to be done before 
> the show() command, though. 
I don't think I was clear enough.. I want to do all the plotting at one 
time, but looking at the example, it appears that you have to do much 
more work as a user if you want bar charts where the bars are 
side-by-side than if you use a line plot.
Are bar charts a relatively new addition? They feel less slick to use 
than the other options :-S
cheers,
Chris
-- 
Simplistix - Content Management, Zope & Python Consulting
 - http://www.simplistix.co.uk
From: Chris W. <ch...@si...> - 2008年03月20日 22:59:27
Eric Firing wrote:
> If you are referring to scripts in the matplotlib/examples/ subdirectory 
> then you must have a version in which some of those scripts had not been 
> brought up to date with the rest of matplotlib. 
You should turn them into unit tests as well as examples.
I'm about to try and do this, time permiting, for xlwt (small plug - 
it's great for generating formatted excel files from raw data, just as 
xlrd is for extracting data and formatting from excel files, sadly, 
neither can do charting with excel, which is why I'm learning to love 
and hate numpy and matplotlib ;-) )
Out of interest, does MPL have unit tests? It should ;-)
cheers,
Chris
-- 
Simplistix - Content Management, Zope & Python Consulting
 - http://www.simplistix.co.uk
From: Chris W. <ch...@si...> - 2008年03月20日 22:56:23
Eric Firing wrote:
> In general, I don't think mpl is threadsafe at all; it uses global 
> variables, such as all the rc parameters, that could easily be modified 
> by one thread while being used by another. 
Yep, I guessed as much, BFL it is then ;-)
> I think that great care 
> would be needed if one wanted to have multiple threads making plots. 
> Having one plotting thread and any number of threads doing other things, 
> however, should be OK.
Out of interest, how does one tell MPL to "start a new figure and forget 
everything that's gone before"?
> At the very least, I think we would have to take all the global state 
> information and put it in a class instance, so there could be multiple 
> plotting machines. 
Yes.
cheers,
Chris
-- 
Simplistix - Content Management, Zope & Python Consulting
 - http://www.simplistix.co.uk
From: Chris W. <ch...@si...> - 2008年03月20日 22:55:01
Michael Droettboom wrote:
> At least the Agg backend *looks* to be reasonably threadsafe -- there 
> are no obvious gotchas like global variables etc. Note, though, that 
> multithreading may not gain much in the way of performance since the 
> global interpreter lock is never released around long-running C blocks.
It's not performance I'm looking for, it's making sure that MPL apps 
served from multi-threaded wsgi servers don't screw each others charts 
up ;-)
cheers,
Chris
-- 
Simplistix - Content Management, Zope & Python Consulting
 - http://www.simplistix.co.uk
From: Chris W. <ch...@si...> - 2008年03月20日 22:53:57
Giorgio F. Gilestro wrote:
> 
> import numpy as np
> a = ['','','',1.1,2.2]
> mask_a = [i == '' for i in a]
> b = np.ma.MaskedArray(a, mask=mask_a)
Not very efficient, though, is it?
cheers,
Chris
-- 
Simplistix - Content Management, Zope & Python Consulting
 - http://www.simplistix.co.uk
From: Chris W. <ch...@si...> - 2008年03月20日 22:53:29
Eric Firing wrote:
> Both with respect to documentation and functionality, what you are 
> encountering is the historical aspect of masked arrays as a tacked-on 
> part of python numeric packages, and of matplotlib.
*sigh* I feel lucky ;-)
> Support and 
> integration are improving, but still far from perfect. 
I wish I could help, but my knowledge is lacking...
> Now with respect to your particular case here, trying to plot a filled 
> line with gaps: poly_between has no notion of masked arrays at present. 
> If it did, how should it behave? 
Well, what I actually settled on was juat doing using:
my_masked_array.filled(0)
...to plot with.
> At the very least, additional 
> arguments are needed to specify what should happen for fill-type 
> plotting with missing values. 
Indeed, what I personally would have liked was a complete gap where the 
data is missing, but I guess that would have to return multiple 
polygons, and I don't know how that would work?
> provide them in mpl. I would be happy to fix this gap in mpl's handling 
> of gappy data, 
...heh ;-)
> but I can't make it a priority use of my time right now.
No, I understand :-)
cheers,
Chris
-- 
Simplistix - Content Management, Zope & Python Consulting
 - http://www.simplistix.co.uk
From: Andrew C. <ac...@gm...> - 2008年03月20日 22:14:58
Hi Folks,
I'm having some trouble installing Matplotlib on a Macbook pro running Leopard.
I installed macpython 2.5.2, and I have numpy and scipy installed from
source for the 2.5.2 installation.
Compiling Matplotlib from source, or easy_installing the egg
(matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg) both fail with the same
error:
>From the egg:
-------------------------------------------------------------------
........
ld: in /sw/lib/libJPEG.dylib, file is not of required architecture for
architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccG9WQI9.out (No such file or directory)
error: Setup script exited with error: command 'g++' failed with exit status 1
Exception exceptions.OSError: (2, 'No such file or directory',
'src/image.cpp') in <bound method CleanUpFile.__del__ of
<setupext.CleanUpFile instance at 0x1b5f4b8>> ignored
Exception exceptions.OSError: (2, 'No such file or directory',
'src/transforms.cpp') in <bound method CleanUpFile.__del__ of
<setupext.CleanUpFile instance at 0x1b5ccd8>> ignored
Exception exceptions.OSError: (2, 'No such file or directory',
'src/backend_agg.cpp') in <bound method CleanUpFile.__del__ of
<setupext.CleanUpFile instance at 0x1b5f030>> ignored
--------------------------
And from source:
----------------------
...
building 'matplotlib.ft2font' extension
g++ -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g
-bundle -undefined dynamic_lookup
build/temp.macosx-10.3-i386-2.5/src/ft2font.o
build/temp.macosx-10.3-i386-2.5/src/mplutils.o
build/temp.macosx-10.3-i386-2.5/CXX/cxx_extensions.o
build/temp.macosx-10.3-i386-2.5/CXX/cxxsupport.o
build/temp.macosx-10.3-i386-2.5/CXX/IndirectPythonInterface.o
build/temp.macosx-10.3-i386-2.5/CXX/cxxextensions.o -L/usr/X11/lib
-L/usr/local/lib -L/usr/lib -L/sw/lib -L/usr/X11R6/lib -lfreetype -lz
-lstdc++ -lm -o build/lib.macosx-10.3-i386-2.5/matplotlib/ft2font.so
-Wl,-framework,CoreServices,-framework,ApplicationServices
ld: in /sw/lib/libJPEG.dylib, file is not of required architecture for
architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccMIVHPU.out (No such file or directory)
error: command 'g++' failed with exit status 1
------------------
Has anyone else hit up against this before. Do I need to update
libJPEG, or modify setup.py?
Cheers,
-------------------------
Andrew Charles
From: Michael H. <mh...@us...> - 2008年03月20日 22:02:49
I think f = figure();
...
pylab.close(f);
should work.
--Mike
On Mar 20, 2008, at 2:14 PM, Fans Gnu wrote:
> Hi All,
>
> I am using matplotlab to plot some figure. I would like to close 
> the figure after show it 5 sec. My code is pasted below. However, I 
> can not close the figure automatically. Can anyone help me to fix it?
>
> Thanks,
> Brook
>
> ==========================
> import time
> from pylab import *
> from matplotlib import *
> x=**
> y=**
> x2=**
> y2=***
> figure()
> hold(True)
> plot(x,y)
> plot(x2,y2,'g^')
> axis([0, 100, 0, 100])
> title('Pylab plot')
> xlabel('X')
> ylabel('Y')
> grid()
> pylab.show()
> time.sleep(5)
> pylab.close()
>
>
> Looking for last minute shopping deals? Find them fast with Yahoo! 
> Search.
> ---------------------------------------------------------------------- 
> ---
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ 
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
------------------------------------------------------
Michael Hearne
mh...@us...
(303) 273-8620
USGS National Earthquake Information Center
1711 Illinois St. Golden CO 80401
Senior Software Engineer
Synergetics, Inc.
------------------------------------------------------
From: Fans G. <gnu...@ya...> - 2008年03月20日 20:14:35
<table cellspacing='0' cellpadding='0' border='0' ><tr><td style='font: inherit;'>Hi All,<br><br>I am using matplotlab to plot some figure. I would like to close the figure after show it 5 sec. My code is pasted below. However, I can not close the figure automatically.&nbsp; Can anyone help me to fix it?<br><br>Thanks,<br>Brook<br><br>==========================<br>import time<br>from pylab import *<br>from matplotlib import *<br>x=**<br>y=**<br>x2=**<br>y2=***<br>figure()<br>hold(True)<br>plot(x,y)<br>plot(x2,y2,'g^')<br>axis([0, 100, 0, 100])<br>title('Pylab plot')<br>xlabel('X')<br>ylabel('Y')<br>grid()<br>pylab.show()<br>time.sleep(5)<br>pylab.close()<br><br></td></tr></table><br>
 <hr size=1>Looking for last minute shopping deals? <a href="http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping"> 
Find them fast with Yahoo! Search.</a>
From: Rich S. <rsh...@ap...> - 2008年03月20日 19:21:33
On 2008年3月20日, Eric Firing wrote:
> Sorry, but those options are not presently available at the rc level. Mpl 
> simply does not have easy support for that style of plot. It is on the wish 
> list.
Eric,
 I'm surprised because this is quite common ... at least in my needs over
the years.
> To get rid of the upper and right sides of the box I think you would have
> to do something like "box('off')" and then use hline and vline calls or
> methods to manually put in the lower and left boundaries.
 I use:
 p.p.box(on=False)
 p.axhline(linewidth=1, xmin=0, color='black')
 p.axvline(linewidth=1, ymin=0, color='black')
but the frameless display now has negative values (x = -10, y = -0.2) when
the scales should be x = [0, 50] and y = [0.0, 1.0].
 I want to learn how to get these correct before addressing the grid lines.
Actually, I can turn off the grid lines and use axhline for each one I want.
Thanks,
Rich
-- 
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
From: Eric F. <ef...@ha...> - 2008年03月20日 18:44:35
Rich Shepard wrote:
> I've read the users guide and API (both as pdf and on the web site), and
> do not see how to configure the axes for only left and bottom, and the grid
> for only horizontal lines.
> 
> The axes(rect, w) is used to specify the position of the left and bottom
> lines plus the width and height of the box. What do I put in
> ~/.matplotlib/matplotlibrc to specify no top or right axes, and no vertical
> grid lines?
> 
> Rich
> 
Sorry, but those options are not presently available at the rc level. 
Mpl simply does not have easy support for that style of plot. It is on 
the wish list.
Here is one way of turning off vertical grid lines:
xgl = ax.xaxis.get_gridlines()
for l in gl:
 l.set_visible(False)
To get rid of the upper and right sides of the box I think you would 
have to do something like "box('off')" and then use hline and vline 
calls or methods to manually put in the lower and left boundaries.
Eric
4 messages has been excluded from this view by a project administrator.

Showing results of 450

<< < 1 .. 6 7 8 9 10 .. 18 > >> (Page 8 of 18)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /