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

Showing 6 results of 6

From: Jeff W. <js...@fa...> - 2006年06月10日 20:46:07
Eric Firing wrote:
> Thanks. There were in fact several points of incompatibility with 
> Numeric and numarray. (Normally I would have checked this, but I 
> slipped up.) I have changed quiver.py and numerix to solve the 
> immediate problem, and to slightly reduce the incidence of such 
> problems in the future. The real solution, of course, will be a 
> complete transition to numpy.
>
> Regarding griddata: I downloaded it a few minutes ago, built it, and 
> tested it with numpy, and it worked fine, at least with the test.py 
> that comes with the package. Looking very quickly at the code, I 
> don't see anything specific to any numeric package; it is using the 
> buffer interface at the C level and matplotlib.numerix at the python 
> level. Perhaps the author, Jeff Whitaker, can shed more light on this 
> question.
>
> Eric
Eric is correct - griddata should work with either Numeric/numarray/numpy. 
-Jeff
-- 
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449
325 Broadway Boulder, CO, USA 80305-3328
From: John H. <jdh...@ac...> - 2006年06月10日 18:45:47
>>>>> "humufr" == humufr <hu...@ya...> writes:
 humufr> "should" but sometimes perhaps it's too hard to do
 humufr> this. One solution, if the function won't work with
 humufr> anything else than numpy, is to print a warning/error
 humufr> message for this specific function. That will push people
 humufr> towards numpy?
The matplotlib.numerix layer is fairly robust, and there is no reason
to drop support for Numeric of numarray in the near term or develop
bits of matplotlib that are numpy only. While I heartily encourage
people transition to numpy ASAP, I would like to continue full support
for both Numeric and numarray until people who have a large commitment
to one package or another have had time to convert; large institutions
with large code bases, limited man-power and higher priorities will
take their time converting. Note that the Space Telescope Science
Institute, who developed numarray and is still in the process of
porting to numpy, makes heavy use of matplotlib and developed
significant components of it, including the tkagg backend, the font
manager, contouring and the numerix layer itself. 
Usually, if something doesn't work with all three packages, it's
because a developer forgot to test and can be fixed in a few minutes
of work.
JDH
>>>>> "Tom" == Tom Denniston <tom...@al...> writes:
 Tom> FigureCanvasAgg seems to make fonts appear much larger that
 Tom> FigureCanvasWxAgg. I am trying to get plots generated
 Tom> interactively in a wx window to appear the same as those that
 Tom> I generate in a no display batch script that outputs .png
 Tom> files. I use FigureCanvasWxAgg for the former and
 Tom> FigureCanvasAgg for the latter. Is there a reason why the
 Tom> same font size would appear much larger in FigureCanvasAgg
 Tom> than FigureCanvasWxAgg. Is there another, better, way to
 Tom> achieve uniformity accross png outputs and wx on screen
 Tom> display?
 Tom> It doesn't look like one can use the FigureCanvasAgg for wx
 Tom> embedding or the FigureCanvasWxAgg for png generation because
 Tom> the former will not accept a parent window and the latter
 Tom> requires one.
 Tom> If anyone has any ideas I would greatly appreciate
 Tom> suggestions.
backend_agg and backend_wxagg both use the same underlying pixel
buffer, so you should be able to get uniformity between them. Note,
matplotlib has a different default dpi setting for figures for display
and saving, and you might want to try forcing them to be the same with
dpi = 72
fig = figure(dpi=dpi)
plot something
fig.savefig(somefile, dpi=dpi)
If that doesn't help, the only other possibility is that the
PIXELS_PER_INCH defaults are getting you screwed up. This was
included for display devices which have a different number of pixels
per inch; see
http://groups.google.com/groups?q=screen+dpi+x11&hl=en&lr=&ie=UTF-8&oe=UTF-8&safe=off&selm=7077.26e81ad5%40swift.cs.tcd.ie&rnum=5
for some info about screen dpi. I vaguely recall that there was some
good reason for including the pixels_per_inch constant *and* dpi,, but
now I suspect the system may be overdetermined and we should drop this
and just use the dpi setting. In any case, each backend defines their
own (see src/_backend_wxagg.cpp and backends/backend_wx.py) and the
defaults are different in backend_agg and backend_wx). 
If the dpi suggestion above doesn't work, try setting PIXELS_PER_INCH
in backend_wx.py to 72.
JDH
From: <hu...@ya...> - 2006年06月10日 10:57:58
Le vendredi 9 juin 2006 18:30, Christopher Barker a =E9crit=A0:
> hu...@ya... wrote:
>
> well, anyone using Numeric (or numarray), can just keep on using it for
> a god while. So something that works now should work for a while into
> the future.
"should" but sometimes perhaps it's too hard to do this. One solution, if t=
he=20
function won't work with anything else than numpy, is to print a=20
warning/error message for this specific function. That will push people=20
towards numpy?
N.
From: <edi...@gm...> - 2006年06月10日 07:47:35
On 6/9/06, John Hunter <jdh...@ac...> wrote:
> the other is that mathtext doesn't recognize \sin, \cos, \exp etc.
> (Edin are you out there? If so, this would be something useful to
> work on).
Yes, I'm alive and well, thank you :).
It's on my radar now.
From: Eric F. <ef...@ha...> - 2006年06月10日 07:01:46
Thanks. There were in fact several points of incompatibility with 
Numeric and numarray. (Normally I would have checked this, but I slipped 
up.) I have changed quiver.py and numerix to solve the immediate 
problem, and to slightly reduce the incidence of such problems in the 
future. The real solution, of course, will be a complete transition to 
numpy.
Regarding griddata: I downloaded it a few minutes ago, built it, and 
tested it with numpy, and it worked fine, at least with the test.py that 
comes with the package. Looking very quickly at the code, I don't see 
anything specific to any numeric package; it is using the buffer 
interface at the C level and matplotlib.numerix at the python level. 
Perhaps the author, Jeff Whitaker, can shed more light on this question.
Eric
hu...@ya... wrote:
> 		Hi,
> 
> just to tell that the new quiver2 sample are not working with numarray. 
> 
> /usr/lib/python2.4/site-packages/matplotlib/quiver.py", line 237, in 
> _make_verts
> scale = nx.amax(a) * math.sqrt(len(a)) # crude auto-scaling
> AttributeError: 'module' object has no attribute 'amax'
> 
> 
> I think that we will have soon a big problem with the scientific soft in 
> python. Some of them will use numpy, Numeric or numarray and they will be 
> totally incompatible. Theorically numpy was to do the reunification but a 
> transition period must exist. The module Numerix was doing it for matplotlib 
> but it's beginning to have more and more incompatibility. 
> The quiver problem is not the only one. I used a lot the griddata module to 
> interpolate some irregulary spaced data, it was working very fine but it's 
> not working with numpy and I don't have the skill to change it unfortunatly.
> 
> I want to thank you for all the work done for matplotlib, the critics are only 
> to avoid people to be distressed because one day all their softs won't work 
> due to numpy/numarray/Numeric incompatibility and stop to use python.
> 
> Regards,
> 
> N.
> 
> 
> 
> 
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Showing 6 results of 6

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 によって変換されたページ (->オリジナル) /