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

Showing results of 76

1 2 3 4 > >> (Page 1 of 4)
From: Gael V. <gae...@no...> - 2006年09月28日 18:59:40
 Hi all,
I just realised that the fonts in eps files produced with the "usetex"
switch where not T1 fonts. The fix is quite easy, during the LaTeX
compiling we should include a package that provides T1 fonts. Not I am
not sure which one to use. I like the lmodern, but it is not available
everywhere (on Ubuntu it is not installed by default with LaTeX). The
package "times" is more universal, but has less international glyphs.
Yet this is a low hanging fruit that will improve the look of the pdf
files created by matplotlib.
Ga=EBl
From: John H. <jdh...@ac...> - 2006年09月28日 16:03:20
The developer list had grown a bit large and did not reflect people
who were actively working on the project, so I decided to prune it
down to people who have made commits in 2006 or people who I know are
planning to make commits soon. If you would like to be added back at
any point, just email me and I'll reinstate you.
Thanks,
JDH
From: Norbert N. <Nor...@gm...> - 2006年09月28日 15:14:13
Hi there,
would it be possible to get SVN write access for matplotlib (username 
"nnemec")?
Currently, I have four open patches waiting for inclusion (see 
sourceforge "Patches", submitted by "nnemec") and nobody seems to have 
the time to put them into the SVN repo. This is particularly annoying 
since a number of changes were done to the same files in SVN, so I had 
to update the patches manually several times.
I don't find the time to contribute code very often, but when I do so, I 
do invest some time and effort to produce high-quality code.
Thanks,
Norbert Nemec
From: Boyd W. <bw...@nr...> - 2006年09月27日 02:14:30
icpc -bundle -undefined dynamic_lookup build/temp.macosx-10.3- 
i386-2.5/src/_nc_transforms.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/opt/local/lib -L/usr/lib -lstdc++ -lm 
-o build/lib.macosx-10.3-i386-2.5/matplotlib/_nc_transforms.so
ld: warning -prebind has no effect with -bundle
ld: multiple definitions of symbol 
__ZNSbItSt11char_traitsItESaItEE4_Rep20_S_empty_rep_storageE
build/temp.macosx-10.3-i386-2.5/src/_nc_transforms.o definition of 
__ZNSbItSt11char_traitsItESaItEE4_Rep20_S_empty_rep_storageE in 
section (__DATA,__bss)
build/temp.macosx-10.3-i386-2.5/CXX/cxx_extensions.o definition of 
__ZNSbItSt11char_traitsItESaItEE4_Rep20_S_empty_rep_storageE in 
section (__DATA,__bss)
build/temp.macosx-10.3-i386-2.5/CXX/cxxsupport.o definition of 
__ZNSbItSt11char_traitsItESaItEE4_Rep20_S_empty_rep_storageE in 
section (__DATA,__bss)
error: command 'icpc' failed with exit status 1
Warning: the following items did not execute (for py-matplotlib): 
com.apple.build
Error: Status 1 encountered during processing.
# echo __ZNSbItSt11char_traitsItESaItEE4_Rep20_S_empty_rep_storageE|c+ 
+filt
std::basic_string<unsigned short, std::char_traits<unsigned short>, 
std::allocator<unsigned short> >::_Rep::_S_empty_rep_storage
is defined in
src/_nc_transforms.o
CXX/cxx_extensions.o
CXX/cxxsupport.o
What am I doing wrong?
From: John H. <jdh...@ac...> - 2006年09月26日 12:33:57
>>>>> "Steven" == Steven Chaplin <ste...@ya...> writes:
 Steven> Does mpl only work with specific versions of numpy?
 Steven> Should mpl check for a required version and report an
 Steven> error if its not there?
numpy has been a bit of a moving target of late, and typically the
latest release of mpl works with the latest release of numpy, and mpl
svn works with numpy svn, but you can't mix and match. Hopefully this
will stabilize soon.
JDH
From: Steven C. <ste...@ya...> - 2006年09月26日 05:43:09
When using the latest matplotlib from svn and numpy version 0.9.6 I get:
$ ./simple_plot.py
Traceback (most recent call last):
 File "./simple_plot.py", line 6, in ?
 from pylab import *
 File "/usr/lib/python2.4/site-packages/pylab.py", line 1, in ?
 from matplotlib.pylab import *
 File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line 197, in ?
 import cm
 File "/usr/lib/python2.4/site-packages/matplotlib/cm.py", line 5, in ?
 import colors
 File "/usr/lib/python2.4/site-packages/matplotlib/colors.py", line 33, in ?
 from numerix import array, arange, take, put, Float, Int, where, \
 File "/usr/lib/python2.4/site-packages/matplotlib/numerix/__init__.py", line 145, in ?
 __import__('fft', g, l)
 File "/usr/lib/python2.4/site-packages/matplotlib/numerix/fft/__init__.py", line 11, in ?
 from numpy.dft.old import *
ImportError: No module named old
Does mpl only work with specific versions of numpy?
Should mpl check for a required version and report an error if its not there?
Steve
Send instant messages to your online friends http://au.messenger.yahoo.com 
From: Charlie M. <cw...@gm...> - 2006年09月25日 22:50:44
On 9/25/06, Cedric Gustin <ced...@gm...> wrote:
> John Hunter wrote:
> >>>>>> "Cedric" == Cedric Gustin <ced...@gm...> writes:
> >
> > Cedric> Or, if you want, I can give you early access to pygtk
> > Cedric> binaries for python 2.5 for testing purpose with
> > Cedric> matplotlib ? Just tell me if you need pygtk-2.10 or 2.8 ?
> >
> > Most likely 2.8, but Steve (who is the gtk maintainer) may feel
> > otherwise, so I CCd him in case he has any input here.
>
> I uploaded binaries here
>
> http://www.gustin.be/win32/pygtk/2.8/
>
> Please note that this is a temporary storage location as I am in the
> process of moving my binaries to the gnome servers.
Thanks for the builds. I was able to build against them no problem.
I would like to push a minor bump for python2.5 and to fix a few of
the small issues Andrew Straw mentioned about the last release. Does
Wednesday sound doable for this?
- Charlie
From: Cedric G. <ced...@gm...> - 2006年09月25日 19:26:23
John Hunter wrote:
>>>>>> "Cedric" == Cedric Gustin <ced...@gm...> writes:
> 
> Cedric> Or, if you want, I can give you early access to pygtk
> Cedric> binaries for python 2.5 for testing purpose with
> Cedric> matplotlib ? Just tell me if you need pygtk-2.10 or 2.8 ?
> 
> Most likely 2.8, but Steve (who is the gtk maintainer) may feel
> otherwise, so I CCd him in case he has any input here.
I uploaded binaries here
http://www.gustin.be/win32/pygtk/2.8/
Please note that this is a temporary storage location as I am in the
process of moving my binaries to the gnome servers.
Cedric
From: John H. <jdh...@ac...> - 2006年09月25日 17:23:48
>>>>> "Cedric" == Cedric Gustin <ced...@gm...> writes:
 Cedric> Or, if you want, I can give you early access to pygtk
 Cedric> binaries for python 2.5 for testing purpose with
 Cedric> matplotlib ? Just tell me if you need pygtk-2.10 or 2.8 ?
Most likely 2.8, but Steve (who is the gtk maintainer) may feel
otherwise, so I CCd him in case he has any input here.
Thanks,
JDH
From: Cedric G. <ced...@gm...> - 2006年09月24日 16:04:55
Hi John and the matplotlib people,
John Hunter wrote:
>>>>>> "Charlie" == Charlie Moad <cw...@gm...> writes:
> 
> Charlie> At what point should we push another minor release
> Charlie> for py2.5? or should we at all? I am able to compile and
> Charlie> run the latest in svn on all 3 major platforms. The only
> Charlie> missing component is pygtk for windows. 0.87.5 is not
> Charlie> py2.5 compatible in many ways. Just thought I would
> Charlie> throw it out there.
> 
> I've CCd Cedric Gustin, who maintains pygtk for win32. Cedric, do you
> plan to push out a python2.5 version in the near future? If so, we
> can hold up the mpl release which uses some pygtk extension code in
> building. If not, we can go ahead with the release w/o gtk support,
> since this is not a common backend on windows.
Yes, pygtk binaries for python 2.5 will be available this week. I just
need a few more days as I'm also working on binaries for
pygtk-2.10/pygobject-2.12/pycairo-1.2.
Or, if you want, I can give you early access to pygtk binaries for
python 2.5 for testing purpose with matplotlib ? Just tell me if you
need pygtk-2.10 or 2.8 ?
Cedric
From: Daniel K. <kor...@re...> - 2006年09月24日 06:55:34
* Short Story :
I want to create my custom navigation bar with my custom zoom behavior:
My first step is zooming by pressing +/- keys to zoom in and zoom out 
while pointing the mouse to the "zoom's center".
I the long run I want a zooming and panning behavior interact smoothly 
with images (similar to photoshop's):
- Zooming with the left button to zoom in the right button to zoom out.
- Zooming with the mouse wheel.
- Other interactions ...
But I am stuck :-(
* Question :
My question is how do you "magnify" the image after change the axes ?
(with
self.axes.set_xlim((x1, x2))
self.axes.set_ylim((y1, y2))
)
* Long story:
First, I wanted to understand how the zoom worked. So I traced the zoom 
functionality from the NavigationToolbar2Wx to the following method:
- backend._bases.NavigationToolbar2.drag_pan
 From what I understand, this is where the magic bar happens?
Now I wrote a dirty method ( see OnKeyPress below ) where I drive the 
zoom by changing the xmin,xmax,ymin,ymax when I press any key instead of 
the default mouse dragging behavior.
When I zoom out:
xmin,xmax = Xmin + 50, Xmax - 50
ymin,ymax = Ymin + 50, Ymax – 50
it works find. The image becomes smaller.
But, when I zoom in as below
xmin,xmax = Xmin - 50, Xmax + 50
ymin,ymax = Ymin - 50, Ymax + 50
the image just get cropped but not magnified. I other words
self.axes.set_xlim and self.axes.set_ylim do not make the "data pixels 
bigger" (as happends in the correct zoom funcionality), they just stay 
the same size. The image becomes smaller and smaller instead of keeping 
the same size with les "data pixels into it"...
def OnKeyPress(self, event):
if not event.inaxes: return
x, y = self.axes.transData.inverse_xy_tup( (event.x, event.y))
Xmin,Xmax=self.axes.get_xlim()
Ymin,Ymax=self.axes.get_ylim()
# Dirty hack to understand how zoom works
xmin,xmax = Xmin - 50, Xmax + 50
ymin,ymax = Ymin - 50, Ymax + 50
if self.axes.get_xscale()=='log':
alpha=log(Xmax/Xmin)/log(xmax/xmin)
x1=pow(Xmin/xmin,alpha)*Xmin
x2=pow(Xmax/xmin,alpha)*Xmin
else:
alpha=(Xmax-Xmin)/(xmax-xmin)
x1=alpha*(Xmin-xmin)+Xmin
x2=alpha*(Xmax-xmin)+Xmin
if self.axes.get_yscale()=='log':
alpha=log(Ymax/Ymin)/log(ymax/ymin)
y1=pow(Ymin/ymin,alpha)*Ymin
y2=pow(Ymax/ymin,alpha)*Ymin
else:
alpha=(Ymax-Ymin)/(ymax-ymin)
y1=alpha*(Ymin-ymin)+Ymin
y2=alpha*(Ymax-ymin)+Ymin
self.axes.set_xlim((x1, x2))
self.axes.set_ylim((y1, y2))
self.canvas.draw()
Any help would be welcomed!
Daniel.
From: John H. <jdh...@ac...> - 2006年09月22日 15:50:42
>>>>> "Nicholas" == Nicholas Young <mat...@su...> writes:
 Nicholas> Hi, I sent this message to the list this time yesterday
 Nicholas> and it doesn't seem to have either arrived or bounced -
 Nicholas> so I'm trying again.
I Nicholas -- I just applied this to svn. Thanks!
JDH
From: Manuel M. <mm...@as...> - 2006年09月22日 13:53:10
John Hunter wrote:
>>>>>> "Manuel" == Manuel Metz <mm...@as...> writes:
> Manuel> would be nice. Or, if I write something like this myself,
> Manuel> is there any chance to add this to matplotlib ?
> 
> certainly.
I personally find it a little bit confusing to have the option to define
a marker-symbol via two different keywords: marker and verts. Isn't it
possible and more natural to use the same keyword (maker) for multiple
options?
Hm , how about the following ideas:
- remove keyword verts again
- check type of argument of marker
 -> string: behave as before
 -> a list or a tuple that may be
 (numsides, style, [optional angle])
 or
 (verts, style, [optional angle])
- then it would be possible to define a custom symbol giving the number
of sides it should have + a style (i.e, filled or starred)
 AND
- to define a custom symbol using a list of (x,y) points
I have fiddled a little bit around with matplotlib/axes.py and attach a
file that contains a modified version of the function scatter() in
axes.py, as well as a little script and it's output.
What is missing - and I haven't tried that - is to add a class similar
to RegularPolyCollection for Lines allowing for none-filled symbols.
This should/could produce star-like symbols. Adding the option style for
verts would also allow e.g. S-shaped line-symbols (-> Create a
LineCollection instead of a PolyCollection).
As you can see in the modified scatter function, I also added a
rescaling for 'verts'. This rescaling assumes that the vertices are
centred on the coordinate origin (or if not, one has the option to
systematically displace symbols !), and rescales them such that the
largest distance from the origin is 1.
I hope this is somehow helpful ...!?
Manuel
From: Charlie M. <cw...@gm...> - 2006年09月21日 21:27:57
On 9/21/06, Boyd Waters <bw...@nr...> wrote:
>
> On Sep 21, 2006, at 1:52 PM, Charlie Moad wrote:
>
> > At what point should we push another minor release for py2.5? or
> > should we at all?
>
> FWIW, I have matplotlib built against Python 2.5 on my Mac with the
> patches I posted in August.
> http://www.mail-archive.com/mat...@li.../
> msg00293.html
The problems addressed by those patches have been fixed. Win32, linux
and osx all compile fine now.
Thanks,
From: Boyd W. <bw...@nr...> - 2006年09月21日 20:09:50
On Sep 21, 2006, at 1:52 PM, Charlie Moad wrote:
> At what point should we push another minor release for py2.5? or
> should we at all?
FWIW, I have matplotlib built against Python 2.5 on my Mac with the 
patches I posted in August.
http://www.mail-archive.com/mat...@li.../ 
msg00293.html
Not sure if that helps...
- boyd
Boyd Waters
Scientific Programmer
National Radio Astronomy Observatory
http://www.aoc.nrao.edu
From: John H. <jdh...@ac...> - 2006年09月21日 19:58:27
>>>>> "Charlie" == Charlie Moad <cw...@gm...> writes:
 Charlie> At what point should we push another minor release
 Charlie> for py2.5? or should we at all? I am able to compile and
 Charlie> run the latest in svn on all 3 major platforms. The only
 Charlie> missing component is pygtk for windows. 0.87.5 is not
 Charlie> py2.5 compatible in many ways. Just thought I would
 Charlie> throw it out there.
I've CCd Cedric Gustin, who maintains pygtk for win32. Cedric, do you
plan to push out a python2.5 version in the near future? If so, we
can hold up the mpl release which uses some pygtk extension code in
building. If not, we can go ahead with the release w/o gtk support,
since this is not a common backend on windows.
JDH
From: Charlie M. <cw...@gm...> - 2006年09月21日 19:52:22
 At what point should we push another minor release for py2.5? or
should we at all? I am able to compile and run the latest in svn on
all 3 major platforms. The only missing component is pygtk for
windows. 0.87.5 is not py2.5 compatible in many ways. Just thought I
would throw it out there.
Charlie
From: Darren D. <dd...@co...> - 2006年09月21日 01:12:54
Hi Nicholas,
Thank you for the submission. I won't have time to look at this for a while (I 
will be out of town and out of email contact for a couple of weeks.) Maybe 
one of the other developers will have some time to consider your patch, 
otherwise, I'll have a look when I get back. Would you post it to the bug 
tracker at the sourceforge site?
Darren
On Wednesday 20 September 2006 12:34, Nicholas Young wrote:
> Hi,
>
> I sent this message to the list this time yesterday and it doesn't seem
> to have either arrived or bounced - so I'm trying again.
>
> I've written a patch (attached) to allow the PS backend to respect the
> dpi that's given to the FigureCanvasPS on initialisation when saving
> images. The solution I came with to do this isn't the nicest, but I
> couldn't see any significantly different way to do it without changing
> the rendering process for images.
>
> What I've done is add a get_image_magnification method to the default
> backend with a default return value of 1.0. This magnification factor
> is then taken by the draw method of the figure, axes or image and passed
> as a keyword argument to the make_image method of the image where it
> used to scale the widthDisplay and heightDisplay returned from the
> bounding box. (I also changed the self.make_image(False) call in
> Image.write_png to self.make_image() as I'm pretty sure that's what was
> meant to be - and if I hadn't the introduction of my new keyword
> argument would have resulted in a zero size image.)
>
> By returning a magnification of dpi/72.0, the PS backend is able to
> instruct the image instances to create larger images which it then
> scales by an appropriate value on output to give the requested dpi.
>
> This patch, or something like it, is vital for me at the moment because
> the low 72 dpi output used by matplotlib at the moment gives rise to
> some fairly significant distortion to my results. I imagine others will
> come across the same problem.
>
> I hope this patch is useful,
> Nicholas Young
From: Darren D. <dd...@co...> - 2006年09月20日 17:58:54
Hi Nicholas,
Thank you for the submission. I won't have time to look at this for a while=
 (I=20
will be out of town and out of email contact for a couple of weeks.) Maybe=
=20
one of the other developers will have some time to consider your patch,=20
otherwise, I'll have a look when I get back. Would you post it to the bug=20
tracker at the sourceforge site?
Darren
On Wednesday 20 September 2006 12:34, Nicholas Young wrote:
> Hi,
>
> I sent this message to the list this time yesterday and it doesn't seem
> to have either arrived or bounced - so I'm trying again.
>
> I've written a patch (attached) to allow the PS backend to respect the
> dpi that's given to the FigureCanvasPS on initialisation when saving
> images. =A0The solution I came with to do this isn't the nicest, but I
> couldn't see any significantly different way to do it without changing
> the rendering process for images.
>
> What I've done is add a get_image_magnification method to the default
> backend with a default return value of 1.0. =A0This magnification factor
> is then taken by the draw method of the figure, axes or image and passed
> as a keyword argument to the make_image method of the image where it
> used to scale the widthDisplay and heightDisplay returned from the
> bounding box. =A0(I also changed the self.make_image(False) call in
> Image.write_png to self.make_image() as I'm pretty sure that's what was
> meant to be - and if I hadn't the introduction of my new keyword
> argument would have resulted in a zero size image.)
>
> By returning a magnification of dpi/72.0, the PS backend is able to
> instruct the image instances to create larger images which it then
> scales by an appropriate value on output to give the requested dpi.
>
> This patch, or something like it, is vital for me at the moment because
> the low 72 dpi output used by matplotlib at the moment gives rise to
> some fairly significant distortion to my results. =A0I imagine others will
> come across the same problem.
>
> I hope this patch is useful,
> Nicholas Young
From: John H. <jdh...@ac...> - 2006年09月20日 17:15:10
>>>>> "Manuel" == Manuel Metz <mm...@as...> writes:
 Manuel> would be nice. Or, if I write something like this myself,
 Manuel> is there any chance to add this to matplotlib ?
certainly.
From: Marco P. <zu...@de...> - 2006年09月20日 16:55:08
Hi,
when I try to plot a line that contains circles, I obtain this error:
/usr/lib/python2.4/site-packages/matplotlib/lines.py in
_draw_circle(self, renderer, gc, xt, yt, point)
 616 for (x,y) in zip(xt, yt):
 617 renderer.draw_arc(gc, rgbFace,
--> 618 x, y, w, w, 0.0, 360.0, 0.0)
TypeError: draw_arc() takes exactly 9 arguments (10 given)
I guess there is an extra '0.0' argument.
I found this error in matplotlib-0.87.5 (using gtk backend).
Regards
Marco 
-- 
"I videogiochi non influenzano i bambini. Voglio dire, se Pac-Man avesse
influenzato la nostra generazione, staremmo tutti saltando in sale
scure, masticando pillole magiche e ascoltando musica elettronica
ripetitiva."
"Videogames do not influence kids. I mean, if Pac-Man influenced our
generation, we were all jumping in dark rooms, chomping pills and
listening to electronic repeating music."
Kristian Wilson, Nintendo Inc. 1989
From: Manuel M. <mm...@as...> - 2006年09月20日 16:48:40
Hi,
first of all "scatter_custom_symbol.py" is great ! I really like this.
But...
May I express some idea/suggestions concerning custom symbols:
I came from supermongo to matplotlib. And I liked the way you could
define symbols in supermongo:
 PTYPE n s
where "s" gives the style of the symbol:
 s = 0 open
 s = 1 skeletal; all vectices are connected to the centre
 s = 2 starred
 s = 3 solid
and "n" is a the number of sides the polygon has. For example:
 PTYPE 4 0
creates open squares whereas
 PTYPE 4 1
creatse X-like symbol. Btw. I like those unfilled symbols because you
can plot lots of them without overcrowding your figure.
It is also possible to use
 PTYPE 0 0
which draws the smalles possible dots on a device, i.e. a single pixel
on a screen; this can also be very helpful if you want to plot lots of
datapoints.
One can also use an angle argument, e.g. transform a 'X' symbol to an
'+' symbol by rotation it about 45 degrees.
Is it possible to integrate a similar way to create custom symbols in
matplotlib? Probably something like
 verts = PolyMarker(n=4,s='open',angle=0)
would be nice. Or, if I write something like this myself, is there any
chance to add this to matplotlib ?
Manuel
From: Charlie M. <cw...@gm...> - 2006年09月20日 16:44:27
It builds now. We still have to wait on a useable numpy for python2.5
and pygtk for windows/py2.5. All the other components are there or we
can build.
On 9/20/06, John Hunter <jdh...@ac...> wrote:
> >>>>> "Charlie" == Charlie Moad <cw...@gm...> writes:
>
> Charlie> This came up on the dev list yesterday and we tried with
> Charlie> swig-1.3.29, which is the latest listed release on SF.
> Charlie> The link you provided shows this was indeed fixed after
> Charlie> the 1.3.29 release. Jon, can we give bleeding edge swig
> Charlie> a try?
>
> OK, bleeding edge SWIG versions of the agg wrappers are in svn.
>
> Good luck!
>
> JDH
>
From: Nicholas Y. <mat...@su...> - 2006年09月20日 16:34:58
Attachments: mpl.patch
Hi,
I sent this message to the list this time yesterday and it doesn't seem 
to have either arrived or bounced - so I'm trying again.
I've written a patch (attached) to allow the PS backend to respect the
dpi that's given to the FigureCanvasPS on initialisation when saving
images. The solution I came with to do this isn't the nicest, but I
couldn't see any significantly different way to do it without changing
the rendering process for images.
What I've done is add a get_image_magnification method to the default
backend with a default return value of 1.0. This magnification factor
is then taken by the draw method of the figure, axes or image and passed
as a keyword argument to the make_image method of the image where it
used to scale the widthDisplay and heightDisplay returned from the
bounding box. (I also changed the self.make_image(False) call in
Image.write_png to self.make_image() as I'm pretty sure that's what was
meant to be - and if I hadn't the introduction of my new keyword
argument would have resulted in a zero size image.)
By returning a magnification of dpi/72.0, the PS backend is able to
instruct the image instances to create larger images which it then
scales by an appropriate value on output to give the requested dpi.
This patch, or something like it, is vital for me at the moment because
the low 72 dpi output used by matplotlib at the moment gives rise to
some fairly significant distortion to my results. I imagine others will
come across the same problem.
I hope this patch is useful,
Nicholas Young
From: Charlie M. <cw...@gm...> - 2006年09月19日 23:21:19
On 9/19/06, John Hunter <jdh...@ac...> wrote:
> >>>>> "Charlie" == Charlie Moad <cw...@gm...> writes:
>
> Charlie> Could someone please regenerated the swig wrappings with
> Charlie> swig-1.3.29 instead of swig-1.3.27 and commit?
>
> I just did this -- give it a test drive.
It still appears. Googling the error leads me to this post:
http://permalink.gmane.org/gmane.comp.programming.swig/8498
I don't have a linux machine handy at the moment to try this stuff. I
don't want to mess with swig on windows either. There probably isn't
a rush on this since numpy doesn't compile under 2.5 yet anyway.
1 message has been excluded from this view by a project administrator.

Showing results of 76

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