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





Showing results of 346

<< < 1 .. 3 4 5 6 7 .. 14 > >> (Page 5 of 14)
From: David C. <da...@ar...> - 2009年11月24日 06:36:55
Dr. David Kirkby wrote:
> Well, on SPARC, the Sun compilers are better than gcc, so there really is an 
> advantage to getting this sorted out.
> 
numscons should support the Sun Studio compiler.
> I do not know SCons myself, but I do know that in the Sage project, SCons has 
> caused many issues. Whether it is a fault of SCons, or the way people write the 
> code for SCons, I do not know.
> 
That's because scons is a terrible tool for a full packaging solution:
at the moment, it is really just a (quite good) make replacement. But
numscons does not have this problem, as it reuses distutils for all the
packaging, and handles compilers in its own way.
I am pretty sure it will be easier to fix whatever numscons issues crop
up while trying to build matplotlib than building it from scratch or
worse, trying to fix distutils.
cheers,
David
From: Dr. D. K. <dav...@on...> - 2009年11月24日 04:58:33
Michael Droettboom wrote:
> This is a years-old known bug in distutils (which it looks like you've 
> already commented on...). I've looked at it many times over those 
> years, and it's really very difficult to fix from outside without 
> terrible monkey-patching hacks that are certain to break on as many 
> systems as they fix. We just may be forced to deal with it at this 
> point, though. (FWIW, we run Solaris here, too, but we build matplotlib 
> on gcc). I'll comment on that bug as well and see if we can get some 
> movement on it.
> 
> In the meantime, I'll investigate whether the scons work by David 
> Cournapeau resolves this problem. See here:
> 
> http://github.com/cournape/matplotlib/tree/scons_build
> 
> Mike
Well, on SPARC, the Sun compilers are better than gcc, so there really is an 
advantage to getting this sorted out.
I do not know SCons myself, but I do know that in the Sage project, SCons has 
caused many issues. Whether it is a fault of SCons, or the way people write the 
code for SCons, I do not know.
I know recently someone changed a package that was using SCons, and stripped it 
all out. There is some code I need to fix, and I will take the same course of 
action. It seems more trouble than it is worth to me.
Dave
> Dr. David Kirkby wrote:
>> I was trying to build matplotlib 0.99.0 as part of Sage
>>
>> http://www.sagemath.org/
>>
>> on a Sun Blade 2000 workstation running Solaris 10 update 7, using the 
>> Sun Studio compiler version 12.1 (not gcc).
>>
>> CC and CXX were defined properly as C and C++ compilers, but it would 
>> appear that the C compiler is being called to compile the file 
>> src/ft2font.cpp, which is of course a C++ file.
>>
>> You might get away with this with gcc, but the Sun C compiler will not 
>> compile C++ code.
>>
>> Here's the error I get:
>>
>>
>> /opt/xxxsunstudio12.1/bin/cc -DNDEBUG -O -xcode=pic32 
>> -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API 
>> -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/lib/python2.6/site-packages/numpy/core/include 
>> -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/local/include 
>> -I. 
>> -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/include/ 
>> -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/include/python2.6 
>> -c src/ft2font.cpp -o build/temp.solaris-2.10-sun4u-2.6/src/ft2font.o
>> cc: No valid input files specified, no output generated
>> error: command '/opt/xxxsunstudio12.1/bin/cc' failed with exit status 1
>>
>> This is recorded in the Sage trac as:
>>
>> http://trac.sagemath.org/sage_trac/ticket/7028
>>
>>
>> ------------------------------------------------------------------------------ 
>>
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 
>> 30-Day trial. Simplify your report design, integration and deployment 
>> - and focus on what you do best, core application coding. Discover 
>> what's new with
>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>> 
> 
From: Christoph G. <cg...@uc...> - 2009年11月24日 04:44:00
Should have asked this before: Does your computer's CPU have SSE2 
extensions? You can use CPU-Z <http://www.cpuid.com/>.
It is OK that Dependency Walker does not find MSVCR90.DLL and 
MSVCP90.DLL for a PYD extension. The extension will use whatever 
VC90.CRT python26.dll uses at runtime.
I am not able to reproduce your problem using a fresh Windows XP SP3, 
Python 2.6.4, numpy 1.3.0, matplotlib 0.99.1 installation in VirtualPC.
If you don't mind, would you try installing 
<matplotlib-0.99.1.1.win32-py2.6.exe> from 
<http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib>. This build has 
SSE2 disabled and a manifest for VC90.CRT embedded, which explicitly 
specifies the VC90.CRT to use.
Christoph
From: Dilip W. <di...@ya...> - 2009年11月24日 02:54:02
OK, I did the check that you mentioned (deleted the entire directory C:\Python26 before reinstalling Python). That didn't help.
I ran Dependency Walker on _path.pyd and got the following:
First, it lists the four DLLs that it did not find: MSVCR90.DLL, MSVCP90.DLL, DWMAPI.DLL, EFSADU.DLL.
Further down, I see the following entry:
c:\windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_6f74963e\MSVCR90.DLL
and I did verify that the file is present at that location.
The location is somewhat different from what you have shown below. Does that matter?
I don't know why the same file MSVCR90.DLL shows up first in the "not found" category and then later with the proper location.
For a different data point, in a Windows Vista installation, Python 2.6 + numpy 1.3.0 + matplotlib 0.99.1 works fine and I do not have this problem. The problem seems to be restricted to Windows XP.
Dilip.
----- Original Message ----
From: Christoph Gohlke <cg...@uc...>
To: matplotlib-users <mat...@li...>
Sent: Mon, November 23, 2009 2:55:51 PM
Subject: Re: [Matplotlib-users] Unable to import matplotlib.pylab in Windows
Please check if there are python26.dll or "Microsoft.VC90.CRT.manifest" 
files left in your Python directory. If yes, remove those files.
If that does not help, run Dependency Walker on python26.dll (should be 
in your system folder), enable "Full Paths" view and report the 
MSVCR90.DLL path. It should be 
<c:\windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4926_none_508ed732bcbc0e5a\MSVCR90.DLL>
I assume the missing DWMAPI.DLL and EFSADU.DLL dependencies come from 
IE7/8 and can be ignored.
Christoph
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Mat...@li...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
From: Dilip W. <di...@ya...> - 2009年11月24日 02:34:02
Yes.
import numpy, matplotlib
works fine.
import matplotlib.pylab
does not work.
Thanks,
Dilip.
----- Original Message ----
From: Alan G Isaac <ala...@gm...>
To: mat...@li...
Sent: Mon, November 23, 2009 2:56:55 PM
Subject: Re: [Matplotlib-users] Unable to import matplotlib.pylab in Windows
Just to be clear:
import numpy, matplotlib
works fine?
Alan Isaac
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Mat...@li...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
From: Alan G I. <ala...@gm...> - 2009年11月24日 02:08:51
On 11/23/2009 4:33 PM, John Hunter wrote:
> Take a look at the table demo:
>
> http://matplotlib.sourceforge.net/examples/pylab_examples/table_demo.html
> 
All posted versions (PNG, hi res PNG, PDF) are improperly clipped.
fwiw,
Alan Isaac
From: Jeff W. <js...@fa...> - 2009年11月23日 23:45:34
Phillip M. Feldman wrote:
> Jeff Whitaker wrote:
>> Dr. Phillip M. Feldman wrote:
>>> The basemap demo `cubed_sphere.py` contains the following line of code:
>>>
>>> fig.subplots_adjust(bottom=0, left=0, right=1, top=0, wspace=0, 
>>> hspace=0)
>>>
>>> >From the documentation, it would appear that `wspace=0` should 
>>> remove all
>>> horizontal space between the subplots. But, this isn't what 
>>> happens. (I
>>> tried to insert an image, but this feature of Nabble appears to be 
>>> broken).
>>> 
>> Phillip: Do you see any white space between the unfolded faces of 
>> the cube on the cubed_sphere plot? If not, then that command is 
>> working as expected.
>>
>> -Jeff
> Jeff:
>
> (I posted this same message via Nabble, but it doesn't seem to be 
> getting through).
>
> I have some further information: I just tried it again, and realized 
> that if I use the original figure size and don't maximize the figure 
> window, there are no white spaces. I don't see the white spaces unless 
> I maximize the figure window. Maximizing the figure window should 
> change the overall size of the image, but everything should scale 
> together, so this is definitely a bug.
>
> Phillip
Philip: It's not really a bug - but a "feature" of this particular 
example. For the white space to disappear, the figure must have exactly 
the same aspect ratio as the map projection. It's set that way in the 
example, but if you change but maximizing the window Basemap tries to 
maintain the aspect ratio of the map and leaves some whitespace. To get 
rid of the whitespace, at the expensive of messing up the aspect ratio 
of the map when you resize, set fix_aspect=True when initializing the 
basemap instance (for basemap >= 0.99.4).
-Jeff
-- 
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : Jef...@no...
325 Broadway Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
From: Christopher B. <Chr...@no...> - 2009年11月23日 22:30:08
Dr. Phillip M. Feldman wrote:
> Running C:\Program Files\Python25\python.exe C:\Program
> Files\Python25\Examples\basemap-0.99.4\barb_
> demo.py
> C:\Program: can't open file 'Files\Python25\python.exe': [Errno 2] No such
> file or directory
> TEST FAILURE (status=2)
This looks like an issue with white space in the file path -- Windows 
can be weird about that.
That's why Python is usually installed directly into:
C:\python25
Rather than in "Program Files", though you're right, that's where it 
should be put.
what does that "Running" message come from -- it doesn't look like it's 
written to accommodate white space.
-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: Phillip M. F. <pfe...@ve...> - 2009年11月23日 22:12:13
Jeff Whitaker wrote:
> Dr. Phillip M. Feldman wrote:
>> The basemap demo `cubed_sphere.py` contains the following line of code:
>>
>> fig.subplots_adjust(bottom=0, left=0, right=1, top=0, wspace=0, 
>> hspace=0)
>>
>> >From the documentation, it would appear that `wspace=0` should 
>> remove all
>> horizontal space between the subplots. But, this isn't what 
>> happens. (I
>> tried to insert an image, but this feature of Nabble appears to be 
>> broken).
>> 
> Phillip: Do you see any white space between the unfolded faces of the 
> cube on the cubed_sphere plot? If not, then that command is working 
> as expected.
>
> -Jeff
Jeff:
(I posted this same message via Nabble, but it doesn't seem to be 
getting through).
I have some further information: I just tried it again, and realized 
that if I use the original figure size and don't maximize the figure 
window, there are no white spaces. I don't see the white spaces unless I 
maximize the figure window. Maximizing the figure window should change 
the overall size of the image, but everything should scale together, so 
this is definitely a bug.
Phillip
From: Dr. P. M. F. <pfe...@ve...> - 2009年11月23日 22:07:30
Dr. Phillip M. Feldman wrote:
> The basemap demo `cubed_sphere.py` contains the following line of code:
>
> fig.subplots_adjust(bottom=0, left=0, right=1, top=0, wspace=0,
> hspace=0)
>
> >From the documentation, it would appear that `wspace=0` should remove all
> horizontal space between the subplots. But, this isn't what happens. (I
> tried to insert an image, but this feature of Nabble appears to be
> broken).
> 
Phillip: Do you see any white space between the unfolded faces of the 
cube on the cubed_sphere plot? If not, then that command is working as 
expected.
-Jeff
I have some further information: I just tried it again, and realized that if
I use the original figure size and don't maximize the figure window, there
are no white spaces. I don't see the white spaces unless I maximizing the
figure window. Maximizing the figure window should change the overall size
of the image, but everything should scale together, so this is definitely a
bug.
-- 
View this message in context: http://old.nabble.com/%60fig.subplots_adjust%60-does-not-behave-as-advertized-tp26471386p26486602.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Dr. P. M. F. <pfe...@ve...> - 2009年11月23日 21:46:47
Dr. Phillip M. Feldman wrote:
> The basemap demo `cubed_sphere.py` contains the following line of code:
>
> fig.subplots_adjust(bottom=0, left=0, right=1, top=0, wspace=0,
> hspace=0)
>
> >From the documentation, it would appear that `wspace=0` should remove all
> horizontal space between the subplots. But, this isn't what happens. (I
> tried to insert an image, but this feature of Nabble appears to be
> broken).
> 
Phillip: Do you see any white space between the unfolded faces of the 
cube on the cubed_sphere plot? If not, then that command is working as 
expected.
-Jeff
Jeff: I am seeing fairly large horizontal white spaces between the unfolded
faces of the cube (see attached image). Curiously, there are no vertical
white spaces.
http://old.nabble.com/file/p26486476/cubed_sphere.jpeg 
-- 
View this message in context: http://old.nabble.com/%60fig.subplots_adjust%60-does-not-behave-as-advertized-tp26471386p26486476.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Dr. P. M. F. <pfe...@ve...> - 2009年11月23日 21:43:22
Dr. Phillip M. Feldman wrote:
> The script run_all.py in the basemap examples does not work when Python
> has
> been installed to "C:\Program Files\Python25". It appears that this
> problem
> involves the space in the path.
> 
Phillip: I don't have a windows machine to test on - so could you 
please send the actual error message?
-Jeff
Jeff: Here's the actual error message:
[C:Examples/basemap-0.99.4]|12> run run_all
['barb_demo.py', 'ccsm_popgrid.py', 'contour_demo.py', 'cubed_sphere.py',
'customticks.py', 'fillsta
tes.py', 'garp.py', 'geos_demo.py', 'geos_demo_3.py', 'hires.py',
'hurrtracks.py', 'maskoceans.py',
'NetCDFFile_tst.py', 'nytolondon.py', 'ortho_demo.py', 'plotcities.py',
'plotmap.py', 'plotmap_maske
d.py', 'plotmap_oo.py', 'plotmap_shaded.py', 'plotprecip.py',
'plot_tissot.py', 'polarmaps.py', 'qui
ver_demo.py', 'randompoints.py', 'save_background.py', 'setwh.py',
'show_colormaps.py', 'simpletest.
py', 'simpletest_oo.py', 'test.py', 'warpimage.py', 'wiki_example.py']
**********************************************
Running C:\Program Files\Python25\python.exe C:\Program
Files\Python25\Examples\basemap-0.99.4\barb_
demo.py
C:\Program: can't open file 'Files\Python25\python.exe': [Errno 2] No such
file or directory
TEST FAILURE (status=2)
<snip>
-- 
View this message in context: http://old.nabble.com/bug-in-run_all.py-tp26470905p26486349.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Mike A. <mik...@ng...> - 2009年11月23日 21:42:45
This may be a dumb question, however i have been scratching my head trying
to figure out how to plot a 3 dimensional plot with with a colour map
different from the elevation(Z) parameter. 
 
An example of this done in Matlab would be 
 
[X,Y,Z] = peaks(30);
C=Z'% could be anything other than Z as long as it has the same dimensions
surf(X,Y,Z,C)
 
axis([-3 3 -3 3 -10 5])
 
 
Is this possible with matplotlib '0.99.1'
 
If so how do i go about doing this is there some sample code?
 
Mike Alger, M.A.Sc
ma...@ry...
 
From: John H. <jd...@gm...> - 2009年11月23日 21:33:44
On Mon, Nov 23, 2009 at 9:20 AM, Sahar <sa...@cm...> wrote:
> Hi,
>
> I'm trying to add some notes in a table to a plot, and I don't know how to
> use the "'matplotlib.pyplot.table" command.
> I really don't want to use ax.text(...) with different x,y values...
>
> Any suggestions? Example to table command, insert LaTex tables, Etc.
Take a look at the table demo:
http://matplotlib.sourceforge.net/examples/pylab_examples/table_demo.html
From: Olof W. <olo...@gm...> - 2009年11月23日 21:10:16
Hello!
I am forced to use py version 2.3.3 (included in other software). I would
like to use matplotlib but can not find the version for py 2.3 on
sourceforge. I think it should be version 0.90.1?
Do you know how I can get hold of a copy of that version?
Thanks!
Best Ŕegards,
Olof Werneman
From: Xavier G. <xav...@gm...> - 2009年11月23日 21:00:55
Hi,
Well when you plot, imshow or whatever is matplotlib related, the axes 
do scale *automatically*.
Why should it be different with quiver?
I do reproduce your error with axis('tight')
Xavier
> Hi Xavier (cc list),
>
> It may be a bug, however I do not know what the default behaviour 'should' be. You could do:
>
> lims = [-4, 4, -4, 4]
> axis(lims)
>
> after calling quiver to see the whole arrow. I did notice that calling
>
> axis('tight')
>
> threw the following error
>
> /Users/Damon/python/lib/matplotlib/axes.py:2038: UserWarning: Attempting to set identical xmin==xmax results in singular transformations; automatically expanding. xmin=1.0, xmax=1.0
> warnings.warn('Attempting to set identical xmin==xmax results in singular transformations; automatically expanding. xmin=%s, xmax=%s'%(xmin, xmax))
> /Users/Damon/python/lib/matplotlib/axes.py:2212: UserWarning: Attempting to set identical ymin==ymax results in singular transformations; automatically expanding. ymin=1.0, ymax=1.0
> warnings.warn('Attempting to set identical ymin==ymax results in singular transformations; automatically expanding. ymin=%s, ymax=%s'%(ymin, ymax))
>
> is this correct, or is it a bug? I'm using "ipython -pylab" with the MacOSX backend. I was expecting axis('tight') would scale the axes so I could see the whole arrow.
>
>
> Regards,
> -- Damon
>
> --------------------------
> Damon McDougall
> Mathematics Institute
> University of Warwick
> Coventry
> CV4 7AL
> d.m...@wa...
>
> On 22 Nov 2009, at 21:34, Xavier Gnata wrote:
>
> 
>> Hi,
>>
>> RTFM...indeed it works.
>> However, the axis do not scale accordingly:
>>
>> quiver([1],[1],[2],[2], angles='xy', scale_units='xy', scale=1) on a TkAgg backend produce a plot with:
>> In [11]: axis()
>> Out[11]:
>> (0.94000000000000006,
>> 1.0600000000000001,
>> 0.94000000000000006,
>> 1.0600000000000001)
>>
>> The display area scales the same way as it does using quiver([1],[1],[2],[2]) (without any other args).
>> It looks like a bug.
>>
>> Xavier
>>
>>
>> 
>>> Hi Xavier,
>>>
>>> You can pass some handy keyword arguments to fix that. Use the following:
>>>
>>> quiver([1],[1],[1.2],[1.2], angles='xy', scale_units='xy', scale=1)
>>>
>>> Hope that helps :)
>>>
>>>
>>> Regards,
>>> -- Damon
>>>
>>> --------------------------
>>> Damon McDougall
>>> Mathematics Institute
>>> University of Warwick
>>> Coventry
>>> CV4 7AL
>>> d.m...@wa...
>>>
>>> On 22 Nov 2009, at 16:37, Xavier Gnata wrote:
>>>
>>>
>>> 
>>>> Hi,
>>>>
>>>> I woud like to draw a vector field using pylab.
>>>> quivert looks nice but it sould not scale the arrows to fit my use-case.
>>>> quiver([1],[1],[1.2],[1.2]) does plot a nice arrow but the head of the
>>>> arrow is not at (1.2,1.2).
>>>> Is there a way to plot a list of arrows *without* any scaling?
>>>>
>>>> Xavier
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>>>> trial. Simplify your report design, integration and deployment - and focus on
>>>> what you do best, core application coding. Discover what's new with
>>>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>>>> _______________________________________________
>>>> Matplotlib-users mailing list
>>>> Mat...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>
>>>> 
>>>
>>> 
>> 
> 
From: Alan G I. <ala...@gm...> - 2009年11月23日 19:57:39
Just to be clear:
import numpy, matplotlib
works fine?
Alan Isaac
From: Christoph G. <cg...@uc...> - 2009年11月23日 19:56:09
Please check if there are python26.dll or "Microsoft.VC90.CRT.manifest" 
files left in your Python directory. If yes, remove those files.
If that does not help, run Dependency Walker on python26.dll (should be 
in your system folder), enable "Full Paths" view and report the 
MSVCR90.DLL path. It should be 
<c:\windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4926_none_508ed732bcbc0e5a\MSVCR90.DLL>
I assume the missing DWMAPI.DLL and EFSADU.DLL dependencies come from 
IE7/8 and can be ignored.
Christoph
From: W. G. W. <wg...@cl...> - 2009年11月23日 19:24:20
Attachments: 6f27_appcompat.txt
Windows XP
Windows NT 5.1 Build 2600
matplotlib version 0.99.1
python version 2.6.4
Code that will crash python on my machine:
>>> from matplotlib import pyplot as plt
Error signature
 AppName: python.exe AppVer 0.0.0.0 aModName: _path.pyd
 ModVer: 0.0.0.0 Offset 0000a09b
Error report attached.
Thank you, Gary Williams
-- 
Gary Williams
Clearwater Instrumentation, Inc.
304 Pleasant St., Watertown, MA 02472 USA
+1 617 9242708 tel. +1 617 9242724 fax
http://www.clearwater-inst.com
From: Michael D. <md...@st...> - 2009年11月23日 18:12:57
I've attached patches against Python 2.5 and 2.6 to that bug. Neither 
is significantly different from the original patch.
http://bugs.python.org/issue1222585
Once doing that, you'll also need to make the following change to 
matplotlib so that the correct C++ runtime libraries are used. Once I 
figure out how to correctly detect the compiler being used, I'll make 
this change in the matplotlib SVN repository. (This is non-trivial, 
since distutils doesn't have a Sun compiler specialization -- it uses 
the "generic" Unix compiler support for both gcc and Sun Studio.)
Mike
Index: setupext.py
===================================================================
--- setupext.py (revision 7979)
+++ setupext.py (working copy)
@@ -221,7 +221,7 @@
 if sys.platform == 'win32' and win32_compiler == 'msvc':
 std_libs = []
 else:
- std_libs = ['stdc++', 'm']
+ std_libs = ['m', 'Crun', 'Cstd']
 def has_pkgconfig():
 if has_pkgconfig.cache is not None:
Michael Droettboom wrote:
> This is a years-old known bug in distutils (which it looks like you've 
> already commented on...). I've looked at it many times over those 
> years, and it's really very difficult to fix from outside without 
> terrible monkey-patching hacks that are certain to break on as many 
> systems as they fix. We just may be forced to deal with it at this 
> point, though. (FWIW, we run Solaris here, too, but we build matplotlib 
> on gcc). I'll comment on that bug as well and see if we can get some 
> movement on it.
>
> In the meantime, I'll investigate whether the scons work by David 
> Cournapeau resolves this problem. See here:
>
> http://github.com/cournape/matplotlib/tree/scons_build
>
> Mike
>
> Dr. David Kirkby wrote:
> 
>> I was trying to build matplotlib 0.99.0 as part of Sage
>>
>> http://www.sagemath.org/
>>
>> on a Sun Blade 2000 workstation running Solaris 10 update 7, using the Sun 
>> Studio compiler version 12.1 (not gcc).
>>
>> CC and CXX were defined properly as C and C++ compilers, but it would appear 
>> that the C compiler is being called to compile the file src/ft2font.cpp, which 
>> is of course a C++ file.
>>
>> You might get away with this with gcc, but the Sun C compiler will not compile 
>> C++ code.
>>
>> Here's the error I get:
>>
>>
>> /opt/xxxsunstudio12.1/bin/cc -DNDEBUG -O -xcode=pic32 
>> -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API 
>> -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/lib/python2.6/site-packages/numpy/core/include 
>> -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/local/include -I. 
>> -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/include/ 
>> -I/export/home/drkirkby/sage/gcc32/sage-4.1.2.alpha2/local/include/python2.6 -c 
>> src/ft2font.cpp -o build/temp.solaris-2.10-sun4u-2.6/src/ft2font.o
>> cc: No valid input files specified, no output generated
>> error: command '/opt/xxxsunstudio12.1/bin/cc' failed with exit status 1
>>
>> This is recorded in the Sage trac as:
>>
>> http://trac.sagemath.org/sage_trac/ticket/7028
>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
>> trial. Simplify your report design, integration and deployment - and focus on 
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> 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: Dilip W. <di...@ya...> - 2009年11月23日 17:17:33
Christoph, I couldn't get it to work after this download either. Same problem as before. 
After that, I tried the following:
1. Upgraded to XP Service Pack 3.
2. Uninstalled Python 2.6 and all related packages.
3. Reinstalled Python 2.6.4 with "Install for all users" set.
4. Reinstalled Numpy 1.3.0.
5. Reinstalled Matplotlib 0.99.1.
(all installations from binaries from sourceforge)
That didn't help either. 
Is there any better debug information I can provide (trace or something)? The output of "python -v" seems rather insufficient.
Thanks,
Dilip.
----- Original Message ----
From: Christoph Gohlke <cg...@uc...>
To: matplotlib-users <mat...@li...>
Sent: Sun, November 22, 2009 10:08:21 PM
Subject: Re: [Matplotlib-users] Unable to import matplotlib.pylab in Windows
Try installing the Microsoft Visual C++ 2008 Redistributable Package (x86)
<http://www.microsoft.com/downloadS/details.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=en>.
This is usually installed during the installation of Python in the 
"Install For All Users" mode.
Christoph
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Mat...@li...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
From: <PH...@Ge...> - 2009年11月23日 17:03:42
From: Sahar [mailto:sa...@cm...] 
Sent: Monday, November 23, 2009 7:20 AM
To: mat...@li...
Subject: [Matplotlib-users] add table to axes
> Hi,
> 
> I'm trying to add some notes in a table to a plot, and I don't
> know how to use the "'matplotlib.pyplot.table" command.
> I really don't want to use ax.text(...) with different x,y 
> values...
 
> Any suggestions? Example to table command, insert LaTex tables...
I think the LaTeX root might be a good one. Set your usetex to True in rcParams and make a separate file (table.tex). 
Then use:
>>> figure.figtext(fig_x, fig_y, r'\input{table.tex}')
I haven't tested this, but it seems like it should work. I'd be curious to hear how it goes.
-paul h
From: Damon M. <D.M...@wa...> - 2009年11月23日 16:23:18
Hi Xavier (cc list),
It may be a bug, however I do not know what the default behaviour 'should' be. You could do:
lims = [-4, 4, -4, 4]
axis(lims)
after calling quiver to see the whole arrow. I did notice that calling
axis('tight')
threw the following error
/Users/Damon/python/lib/matplotlib/axes.py:2038: UserWarning: Attempting to set identical xmin==xmax results in singular transformations; automatically expanding. xmin=1.0, xmax=1.0
 warnings.warn('Attempting to set identical xmin==xmax results in singular transformations; automatically expanding. xmin=%s, xmax=%s'%(xmin, xmax))
/Users/Damon/python/lib/matplotlib/axes.py:2212: UserWarning: Attempting to set identical ymin==ymax results in singular transformations; automatically expanding. ymin=1.0, ymax=1.0
 warnings.warn('Attempting to set identical ymin==ymax results in singular transformations; automatically expanding. ymin=%s, ymax=%s'%(ymin, ymax))
is this correct, or is it a bug? I'm using "ipython -pylab" with the MacOSX backend. I was expecting axis('tight') would scale the axes so I could see the whole arrow.
Regards,
-- Damon
--------------------------
Damon McDougall
Mathematics Institute
University of Warwick
Coventry
CV4 7AL
d.m...@wa...
On 22 Nov 2009, at 21:34, Xavier Gnata wrote:
> Hi,
> 
> RTFM...indeed it works.
> However, the axis do not scale accordingly:
> 
> quiver([1],[1],[2],[2], angles='xy', scale_units='xy', scale=1) on a TkAgg backend produce a plot with:
> In [11]: axis()
> Out[11]:
> (0.94000000000000006,
> 1.0600000000000001,
> 0.94000000000000006,
> 1.0600000000000001)
> 
> The display area scales the same way as it does using quiver([1],[1],[2],[2]) (without any other args).
> It looks like a bug.
> 
> Xavier
> 
> 
>> Hi Xavier,
>> 
>> You can pass some handy keyword arguments to fix that. Use the following:
>> 
>> quiver([1],[1],[1.2],[1.2], angles='xy', scale_units='xy', scale=1)
>> 
>> Hope that helps :)
>> 
>> 
>> Regards,
>> -- Damon
>> 
>> --------------------------
>> Damon McDougall
>> Mathematics Institute
>> University of Warwick
>> Coventry
>> CV4 7AL
>> d.m...@wa...
>> 
>> On 22 Nov 2009, at 16:37, Xavier Gnata wrote:
>> 
>> 
>>> Hi,
>>> 
>>> I woud like to draw a vector field using pylab.
>>> quivert looks nice but it sould not scale the arrows to fit my use-case.
>>> quiver([1],[1],[1.2],[1.2]) does plot a nice arrow but the head of the
>>> arrow is not at (1.2,1.2).
>>> Is there a way to plot a list of arrows *without* any scaling?
>>> 
>>> Xavier
>>> 
>>> ------------------------------------------------------------------------------
>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>>> trial. Simplify your report design, integration and deployment - and focus on
>>> what you do best, core application coding. Discover what's new with
>>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>>> _______________________________________________
>>> Matplotlib-users mailing list
>>> Mat...@li...
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>> 
>> 
> 
From: Sahar <sa...@cm...> - 2009年11月23日 15:45:01
Hi,
I'm trying to add some notes in a table to a plot, and I don't know how to
use the "'matplotlib.pyplot.table" command.
I really don't want to use ax.text(...) with different x,y values...
Any suggestions? Example to table command, insert LaTex tables, Etc.
Thanks,
Sahar
*******************************************************************************************************
This e-mail message may contain confidential,and privileged information or data that constitute proprietary information of CMT Medical Ltd. Any review or distribution by others is strictly prohibited. If you are not the intended recipient you are hereby notified that any use of this information or data by any other person is absolutely prohibited. If you are not the intended recipient, please delete all copies. Thank You. http://www.cmt.co.il
********************************************************************************************************
 
 
************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************
From: Zunbeltz I. <zun...@gm...> - 2009年11月23日 15:37:53
On Mon, 2009年11月23日 at 10:12 +0100, Matthias Michler wrote:
> Hi Zunbeltz,
> 
Dear Matthias
> you could include some fake-lines outside the visible regionm which get your 
> favorite label like
> 
> plot([0], [0], label='my favorite label for squares', marker='s', 
> color='black', mfc='white', mec='black')
> 
> and don't use labels for the original data.
> 
I did in a similar way
l1 = plot(datax, datay, label='my favorite label for squares',
marker='s', color='black', mfc='white', mec='black')
plot(datax, daty, label='my favorite label for squares', marker='s', 
color='black', mfc='red', mec='black')
I plot the data 2 times and them in the legend only add the firs line 
with white markers
legend([l1],[label])
But I think this functionality should not be difficult to implement
directly and maybe someone has done it.
Best regards
Zunbeltz Izaola
> Kind regards
> Matthias
> 
> On Saturday 21 November 2009 20:28:37 Zunbeltz Izaola wrote:
> > Hi,
> >
> > I would like to have a different marker facecolor in the legend that in
> > the plot. Is there any way to change this color?=20
> >
> > In more detail my problem is the following. I plotted 6 dataset. They
> > are divided in 2 groups; one with blue and the other with red color.
> > In each group I have used 3 different markers. I have annotated the
> > meaning of the color in the plot, so I don't need a legend with 6 lines.
> > I only need 3, but I would like that the markers in this plot will be
> > empty (markerfacecolor=3Dwhite). Is it possible?
> >
> > Best regards,
> >
> > Zunbeltz
> 
> 
> 
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
11 messages has been excluded from this view by a project administrator.

Showing results of 346

<< < 1 .. 3 4 5 6 7 .. 14 > >> (Page 5 of 14)
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 によって変換されたページ (->オリジナル) /