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




Showing 5 results of 5

From: Michael D. <md...@st...> - 2008年09月03日 19:59:45
Yes. The FontProperties objects have a list of options that they try in 
order.
(The fname parameter is sort of an implementation detail rather than a 
public API.)
Cheers,
Mike
Jae-Joon Lee wrote:
> Hello,
>
> When I need to use unicode string in matplotlib, I often set the font
> name directly as below.
>
> import matplotlib.font_manager as fm
> fp1=fm.FontProperties(fname="/users/research/lee/.fonts/malgun.ttf")
>
> This used to work. But not anymore. And I guess this is related with a
> recent change in font_manager.py (r5356 by Michael),
>
> http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/lib/matplotlib/font_manager.py?r1=5195&r2=5356
>
> Note that "return fname" bacame "return fname[0]".
> So, its seems that now we need to provide a list of filenames for
> fname parameters. And a code like below works.
>
> fp1=fm.FontProperties(fname=["/users/research/lee/.fonts/malgun.ttf"])
>
> Is this change intended? I just want to make sure before I start
> changing my codes.
> Regards,
>
> -JJ
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> 
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Jae-Joon L. <lee...@gm...> - 2008年09月03日 19:01:10
Hello,
When I need to use unicode string in matplotlib, I often set the font
name directly as below.
 import matplotlib.font_manager as fm
 fp1=fm.FontProperties(fname="/users/research/lee/.fonts/malgun.ttf")
This used to work. But not anymore. And I guess this is related with a
recent change in font_manager.py (r5356 by Michael),
http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/lib/matplotlib/font_manager.py?r1=5195&r2=5356
Note that "return fname" bacame "return fname[0]".
So, its seems that now we need to provide a list of filenames for
fname parameters. And a code like below works.
 fp1=fm.FontProperties(fname=["/users/research/lee/.fonts/malgun.ttf"])
Is this change intended? I just want to make sure before I start
changing my codes.
Regards,
-JJ
From: David M. K. <Dav...@ir...> - 2008年09月03日 10:47:50
Hi,
Back from vacation. The problem with not being able to end point
selection is easy to fix - allow keyboard clicks to also select points
and enter to also exit (this is the solution matlab uses). This is easy
to add and I will try to work on it sometime over the next couple of
weeks.
I will try your example sometime soon and see what happens. It sounds
like the problem has something to do with what happens when the label
covers the entire contour - currently the contour gets deleted entirely,
but this seems to be doing something strange in your case.
Cheers,
David
On Thu, 2008年08月21日 at 16:02 +0200, Mark Bakker wrote:
> David -
> 
> Enjoy your vacation.
> 
> I tried the contour_label_demo and it works fine, but my problem
> remains.
> 
> I suggest you try the example I provided below, and notice the
> difference between labeling with inline=True and inline=False. When
> inline=True the contours in the middle part (which don't get labeled,
> presumably because there isn't enough room) get erased.
> 
> I figured out the manual input problem. The trick is that you require
> to press the middle button to end (I'll do a post to the user's list).
> Many laptops don't have a middle button. Although suggestions are
> found on the web that pushing both buttons simultaneously works, I
> have never seen it work. What you have to do is configure your
> touchpad such that a corner acts as the middle button. Once I figured
> that out, I could end manually selecting the labels. Very nice. If I
> may, I strongly recommend you change the code such that pushing the
> right button ends the manual input. Is there any reason not to use the
> right button for that?
> 
> I hope you can fix the inline problem. Thanks for all the other new
> cool features,
> 
> Mark
> 
> On Tue, Aug 19, 2008 at 4:06 PM, <ka...@mp...> wrote:
> Hi,
> 
> I am currently on vacation, so I can ́t be of much help - back
> beginning of next month. It would be useful if
> you could try the clabel and ginput demo scripts and send
> images of the resulting figures so that we can determine
> exactly what things work and don ́t work.
> 
> Thanks,
> David
> 
> 
> 
> Mark Bakker <ma...@gm...> ha escrito:
> 
> 
> 
> Hello David and the developers list-
> 
> I have had little luck on the mailing list, so sorry
> for writing you
> directly (David may be on vacation).
> 
> I have two problems labeling contour lines in 0.98.3.
> 
> First, when I call clabel, it removes all contours
> that are not labeled
> (because the label doesn't fit on the section of
> contour, I presume).
> This seems like a bug to me (or a really odd feature).
> It doesn't do this
> when inline = False, but I don't think it should do it
> either when inline =
> True
> Easy example:
> 
> x,y =
> meshgrid( linspace(-10,10,50),
> linspace(-10,10,50) )
> z = log(x**2 + y**2)
> cobj = contour(x,y,z) # Note
> that there are 8 contours
> levels (11
> contour sections in all)
> cobj.clabel()
> <a list of 8 text.Text objects>
> draw() # Now only 5 contours
> are drawn; the ones in the
> middle are
> removed.
> 
> Second, when using the new manual labeling of contour
> labels (which is
> pretty neat!), how do I end this feature?
> The doc string says: right click, or potentially click
> both mouse buttons
> together (which already worries me).
> Neither works for me on win32, mpl 0.98.3, TkAgg
> backend, interactive mode.
> Does anybody have a solution?
> 
> Thanks, Mark
> 
> 
> 
> 
> 
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging
> Program.
> 
> 
> 
-- 
**********************************
David M. Kaplan
Charge de Recherche 1
Institut de Recherche pour le Developpement
Centre de Recherche Halieutique Mediterraneenne et Tropicale
av. Jean Monnet
B.P. 171
34203 Sete cedex
France
Phone: +33 (0)4 99 57 32 27
Fax: +33 (0)4 99 57 32 95
http://www.ur097.ird.fr/team/dkaplan/index.html
**********************************
From: Grégory L. <gre...@ff...> - 2008年09月03日 10:32:17
> Greg,
> 
> Thank you for your very clear and complete explanation.
> 
> I have committed your patch with only a few modifications:
> 
> 0) I fixed a bug with non-agg backends by setting im.is_grayscale.
> 
> 1) I changed the handling of the interpolation kwarg. The default is 
> still 'nearest'.
> 
> 2) I took Mike's suggestion to allocate acols and arows only if needed.
> 
> 3) I renamed pcolor_nonuniform to image_nonuniform, modified it to show 
> both types of interpolation, and added it to the set run by 
> backend_driver.py. This is the most minimal test; one could write a 
> whole test suite to exercise various inputs and options.
Thanks for this!
> 
> Among the questions that occur to me:
> 
> 1) Should the functionality be exposed as an Axes method, and from there 
> as a pyplot function? This could be done by integrating it into imshow, 
> either via the argument signature or via kwargs for X and Y, or it could 
> be a separate method.
it would be nice, at first I tried to find kwargs in imshow to do
exactly that (specify X and Y grid positions), and 
I did find NonUniformImage after quite a lot of documentation digging
and exploring the example directory...
> 
> 2) If X and Y are in fact uniform, should the displayed image be the 
> same as the present imshow? The big difference now is the boundary: 
> NonUniformImage extends boundary values indefinitely while Image uses 
> the background color for anything outside the image. I find the 
> NonUniformImage behavior disconcerting.
You are right, it should be the same. The extrapolation present in
NonUniformImage was disconcerting to me at first too,
but I now enjoy it: it is the same as what we do in our code for
user-provided parameter dependent data: linear interpolation between
points, and flat extrapolation outside the min/max: this avoid nasty
surprises (linear extrapolation) and sidestep
the problem of providing a "default" value outside min/max bounds.
But here it is not a strong argument, as background color/full
transparency is a good default value in the matplotlib case.
I think the best approach would be to give a special kwarg
extrapolation= None/flat (and eventually add other options if needed).
> 
> 3) Should caching be added to NonUniformImage? Every other class in the 
> image.py module uses it.
Hum, there I can not help: I do not know what caching is...Is it an
optimisation to avoid unneeded re-render, when
image size is kept unchanged? If it is, I guess optimisation can never
hurt ;-)
> 
> 4) Can we do anything with the internal function naming, at least, to 
> make the distinction between point data functions and cell data 
> functions? My thought was to use "image" for point data and "pcolor" 
> for cell data, but this may reflect my ignorance and particular usage 
> patterns from matlab days. What I would do is rename the _image.cpp 
> pcolor function to nonuniform_image, or something like that, to 
> distinguish it more clearly from pcolor2, which works with cell data.
Some rationalization would ne nice indeed. I do not have strong
prefences on this, image and pcolor
would work fine for me, as any other names used consistently. It could
be the opportunity to prepare
the addition of other point/cell data function (like delaunay
triangulation of arbitrary point data in matlab, 
or non-uniform cell data with color interpolation on the cell.
For the "phong" mapping (mapping data to color after interpolating the
data for each pixel ), I am affraid the work would be even greater, as I
do not see how to use
the imshow filters in this case....except maybe using a fake "greyscale"
image working on the data directly, and they mapping the
greyscale image to color image using the color mapper pixel per pixel...
Performance would suffer, though...
Regards,
Greg.
From: Manuel M. <mm...@as...> - 2008年09月03日 08:51:34
Hi,
 I think there is bug in get_xticklabels(). According to the doc it 
should return a list of Text instances, instead it returns a list of 
TextWithDash instances. This also makes the following impossible (which 
should work of course):
xtl = ax.get_xticklabels()
ax.set_xticklabels(xtl)
Manuel

Showing 5 results of 5

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