SourceForge logo
SourceForge logo
Menu

matplotlib-devel — matplotlib developers

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(1)
Nov
(33)
Dec
(20)
2004 Jan
(7)
Feb
(44)
Mar
(51)
Apr
(43)
May
(43)
Jun
(36)
Jul
(61)
Aug
(44)
Sep
(25)
Oct
(82)
Nov
(97)
Dec
(47)
2005 Jan
(77)
Feb
(143)
Mar
(42)
Apr
(31)
May
(93)
Jun
(93)
Jul
(35)
Aug
(78)
Sep
(56)
Oct
(44)
Nov
(72)
Dec
(75)
2006 Jan
(116)
Feb
(99)
Mar
(181)
Apr
(171)
May
(112)
Jun
(86)
Jul
(91)
Aug
(111)
Sep
(77)
Oct
(72)
Nov
(57)
Dec
(51)
2007 Jan
(64)
Feb
(116)
Mar
(70)
Apr
(74)
May
(53)
Jun
(40)
Jul
(519)
Aug
(151)
Sep
(132)
Oct
(74)
Nov
(282)
Dec
(190)
2008 Jan
(141)
Feb
(67)
Mar
(69)
Apr
(96)
May
(227)
Jun
(404)
Jul
(399)
Aug
(96)
Sep
(120)
Oct
(205)
Nov
(126)
Dec
(261)
2009 Jan
(136)
Feb
(136)
Mar
(119)
Apr
(124)
May
(155)
Jun
(98)
Jul
(136)
Aug
(292)
Sep
(174)
Oct
(126)
Nov
(126)
Dec
(79)
2010 Jan
(109)
Feb
(83)
Mar
(139)
Apr
(91)
May
(79)
Jun
(164)
Jul
(184)
Aug
(146)
Sep
(163)
Oct
(128)
Nov
(70)
Dec
(73)
2011 Jan
(235)
Feb
(165)
Mar
(147)
Apr
(86)
May
(74)
Jun
(118)
Jul
(65)
Aug
(75)
Sep
(162)
Oct
(94)
Nov
(48)
Dec
(44)
2012 Jan
(49)
Feb
(40)
Mar
(88)
Apr
(35)
May
(52)
Jun
(69)
Jul
(90)
Aug
(123)
Sep
(112)
Oct
(120)
Nov
(105)
Dec
(116)
2013 Jan
(76)
Feb
(26)
Mar
(78)
Apr
(43)
May
(61)
Jun
(53)
Jul
(147)
Aug
(85)
Sep
(83)
Oct
(122)
Nov
(18)
Dec
(27)
2014 Jan
(58)
Feb
(25)
Mar
(49)
Apr
(17)
May
(29)
Jun
(39)
Jul
(53)
Aug
(52)
Sep
(35)
Oct
(47)
Nov
(110)
Dec
(27)
2015 Jan
(50)
Feb
(93)
Mar
(96)
Apr
(30)
May
(55)
Jun
(83)
Jul
(44)
Aug
(8)
Sep
(5)
Oct
Nov
(1)
Dec
(1)
2016 Jan
Feb
Mar
(1)
Apr
May
Jun
(2)
Jul
Aug
(3)
Sep
(1)
Oct
(3)
Nov
Dec
2017 Jan
Feb
(5)
Mar
Apr
May
Jun
Jul
(3)
Aug
Sep
(7)
Oct
Nov
Dec
2018 Jan
Feb
Mar
Apr
May
Jun
Jul
(2)
Aug
Sep
Oct
Nov
Dec
S M T W T F S


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


Showing 4 results of 4

From: Brendan S. <bre...@ya...> - 2005年03月12日 22:58:13
I've been tooling around with matplotlib, as graciously packaged by 
Chris Barker, and hosted on Bob Ippolito's pythonmac.org/packages site. 
 Everything seems to be working smoothly, but I've run into a couple 
of warnings I can't decrypt.
1) Executing the following code,
#! /usr/bin/pythonw
import pylab
pylab.plot([1, 2, 3], [4, 5, 6])
pylab.show()
displays a chart as expected (the toolbar icons are a little mucked, 
but that's minor). However, dismissing the chart window brings up this 
warning:
2005年03月12日 17:26:52.075 Python[569] *** _NSAutoreleaseNoPool(): Object 
0x66402d0 of class NSCFString autoreleased with no pool in place - just 
leaking
*** malloc[569]: Deallocation of a pointer not malloced: 0x66c73d0; 
This could be a double free(), or free() called with the middle of an 
allocated block; Try setting environment variable MallocHelp to see 
tools to help debug
Is this a bug with matplotlib, with my installation of matplotlib, or 
with my script? Can I ignore it, and if not, what can I do to address 
it?
2) a smaller issue: I tried to change matplotlib's array class by 
opening
/system/library/frameworks/python.framework/version/2.3/share/ 
.matplotlibrc
and changing "numerix : numeric" to "numerix: numarray" but I got the 
following error:
The import of the numarray version of the _contour module,
_na_contour, failed. This is is either because numarray was
unavailable when matplotlib was compiled, because a dependency of
_na_contour could not be satisfied, or because the build flag for
this module was turned off in setup.py. If it appears that
_na_contour was not built, make sure you have a working copy of
numarray and then re-install matplotlib. Otherwise, the following
traceback gives more details:
 File "/platlib/matplotlib/_contour.py", line 5, in ?
ImportError: No module named _na_contour
I know I had numarray installed before unpackaging matplotlib. Chris' 
notes say that he had numeric installed when he packaged matplotlib, 
but makes no mention of numarray. Perhaps the matplotlib.mpkg needs to 
be rebuilt on a machine that has numarray installed? It isn't a big 
deal, as the two types are -mostly- interchangeable, but it would be 
nice to have the choice.
-Brendan
______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca
From: John H. <jdh...@ac...> - 2005年03月12日 16:43:32
I should have also mentioned that the new signature is document in
backend_bases in the _draw_markers method
 def _draw_markers(self, gc, path, rgbFace, x, y, trans):
 """
 This method is currently underscore hidden because the
 draw_markers method is being used as a sentinel for newstyle
 backend drawing
 path - a matplotlib.agg.path_storage instance
 
 Draw the marker specified in path with graphics context gc at
 each of the locations in arrays x and y. trans is a
 matplotlib.transforms.Transformation instance used to
 transform x and y to display coords. It consists of an
 optional nonlinear component and an affine. You can access
 these two components as
 if transform.need_nonlinear():
 x,y = transform.nonlinear_only_numerix(x, y)
 # the a,b,c,d,tx,ty affine which transforms x and y
 vec6 = transform.as_vec6_val()
 ...backend dependent affine...
 """
 pass
From: John H. <jdh...@ac...> - 2005年03月12日 13:31:28
>>>>> "Steve" == Steve Chaplin <ste...@ya...> writes:
 Steve> John, I noticed ./examples/dash_control.py -dAgg from the
 Steve> latest cvs, is not working..
 Steve> I think the problem may be in lines.set_dashes() If I
 Steve> change self._dashSeq = seq[1] to self._dashSeq = seq it
 Steve> seems to work.
OK, great. Thanks.
 Steve> Also, what happened to matplotlib.path - it was being used
 Steve> by Cairo for draw_markers()
Hmm. I thought I posted this already. I rewrote the path handling to
use agg paths, which are a more complete implementation (eg supporting
move_rel, line_rel and friends. I found my post as an emacs backup
file, so will just paste it in here -- it provides a code snippent to
convert an agg path to a list path we were using previously.
To: Steve Chaplin <ste...@ya...>
Cc: mat...@li...
Subject: Re: [matplotlib-devel] refactoring the backend drawing methods
From: John Hunter <jdh...@ac...>
Gcc: nnml:outgoing-mail
References: <m3u...@pe...>
	<1110376248.3691.24.camel@f1>
X-Draft-From: ("nnml:mail-list.matplotlib-devel" 1256)
--text follows this line--
>>>>> "Steve" == Steve Chaplin <ste...@ya...> writes:
 Steve> I've implemented draw_markers() for Cairo, and tested it
 Steve> using line- styles.py - it seems to be working OK. I did
 Steve> find that it caused draw_lines() to stop working and had to
 Steve> modify it to get it working again.
Yes, sorry for failing to update you on this.
 Steve> I don't think 'fill' and 'fill_rgb' information should be
 Steve> encoded into the 'path', and would to prefer to have
 Steve> rendering separated into two independent steps: 1) call a
 Steve> function to parse 'path' and generate a path - the path is
 Steve> a general path (with no fill or colour info) that you can
 Steve> later use any way you wish. 2) set colour etc as desired
 Steve> and fill/stroke the path.
 Steve> The draw_markers() code I've written calls generate_path()
 Steve> before drawing each marker and it reads the fill value and
 Steve> the fill_rgb each time which it unnecessary since the
 Steve> values are the same for all the markers. Passing the
 Steve> fill_rgb as an extra argument to draw_markers() would be
 Steve> one way to 'fix' this.
Done. I also wrapped agg's path storage and am using this rather than
the list storage. You can get the old representation from the new
rather easily, as illustrated here
import matplotlib.agg as agg
path = agg.path_storage()
path.move_to(10,10)
path.line_to(20,30)
path.curve3_rel(100,200)
path.end_poly()
print [ path.vertex() for i in range(path.total_vertices())] 
 Steve> Cairo (and probably Agg, PS, SVG) supports rel_move_to()
 Steve> and rel_line_to () - so you can define a path using
 Steve> relative rather than absolute coords, which can sometimes
 Steve> be useful. For example, instead of translate(x,y)
 Steve> generate_absolute_path(path) stroke() you can use
 Steve> move_to(x,y) generate_relative_path(path) stroke() and the
 Steve> path is stroked relative to x,y with no need to translate
 Steve> the coordinates.
agg has move_rel and line_rel, etc, but I don't think it works the
same way, because it computes the actual move_to, line_to, etc under
the hood and stores these values, so I'm not sure it's possible to
actually store a relative moveto in agg. Could be missing something,
though. As far as I can see, everything gtes converted to one of the
6 primitive commands (STOP, MOVETO, LINETO, CURVE3, CURVE4, ENDPOLY)
under the hood.
JDH
From: Steve C. <ste...@ya...> - 2005年03月12日 08:55:01
John,
I noticed
./examples/dash_control.py -dAgg
from the latest cvs, is not working..
I think the problem may be in lines.set_dashes()
If I change
 self._dashSeq = seq[1]
to
 self._dashSeq = seq
it seems to work.
Also, what happened to matplotlib.path - it was being used by Cairo
for draw_markers()
Steve

Showing 4 results of 4

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