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



Showing 8 results of 8

From: Michael D. <md...@st...> - 2008年04月25日 19:13:00
I'm stumped. It looks like the code (and even the inputs to 
draw_text_image) are virtually identical, modulo the differences between 
Agg 2.3 and 2.4. Maybe the change is in Agg, and 2.4 is theoretically 
more correct? We can always experiment with different kernels and 
parameters until finding one that looks right.
Cheers,
Mike
John Hunter wrote:
> On Fri, Apr 25, 2008 at 1:08 PM, Michael Droettboom <md...@st...> wrote:
> 
>> They don't look non-antialiased to me (in your attachment or a file I
>> generated locally). Remember, the rotation happens in raster (not vector)
>> space, because that was the path of least resistance, but is a bit of a
>> hack.
>>
>> The difference is that the trunk appears slightly darker than 0.91.x. (And
>> 0.90.x, if I recall correctly, didn't support non-90 degree rotations of
>> text at all). 0.91.x is using spline36 interpolation, trunk is using
>> spline16. I *think* I changed it because I thought spline16 looked slightly
>> cleaner (though technically less accurate), and of course is faster, but I'm
>> not sure anymore -- SVN blame isn't helping me remember. It could have just
>> been the example I was using at the time looked better.
>>
>> In any case, you should be able to change this line in
>> _backend_agg.cpp:2197
>>
>> filter.calculate(agg::image_filter_spline16());
>>
>> to any of the interpolation kernels that Agg offers, and experiment until
>> you find something suitable.
>> 
>
> Hmm, I tried setting the interpolation back to what it is on the
> branch, but this doesn't explain it. If you run
>
> t = text(0.5, 0.5, 'hi mom', fontsize=20)
> t.set_rotation(30); draw()
>
> and save the results from the trunk and the branch (using
> agg::image_filter_spline36) on both, it appears (as you say) that the
> font weight is darker for rotated text, but not for non-rotated text.
>
> JDH
> 
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: John H. <jd...@gm...> - 2008年04月25日 18:20:59
On Fri, Apr 25, 2008 at 1:08 PM, Michael Droettboom <md...@st...> wrote:
> They don't look non-antialiased to me (in your attachment or a file I
> generated locally). Remember, the rotation happens in raster (not vector)
> space, because that was the path of least resistance, but is a bit of a
> hack.
>
> The difference is that the trunk appears slightly darker than 0.91.x. (And
> 0.90.x, if I recall correctly, didn't support non-90 degree rotations of
> text at all). 0.91.x is using spline36 interpolation, trunk is using
> spline16. I *think* I changed it because I thought spline16 looked slightly
> cleaner (though technically less accurate), and of course is faster, but I'm
> not sure anymore -- SVN blame isn't helping me remember. It could have just
> been the example I was using at the time looked better.
>
> In any case, you should be able to change this line in
> _backend_agg.cpp:2197
>
> filter.calculate(agg::image_filter_spline16());
>
> to any of the interpolation kernels that Agg offers, and experiment until
> you find something suitable.
Hmm, I tried setting the interpolation back to what it is on the
branch, but this doesn't explain it. If you run
t = text(0.5, 0.5, 'hi mom', fontsize=20)
t.set_rotation(30); draw()
and save the results from the trunk and the branch (using
agg::image_filter_spline36) on both, it appears (as you say) that the
font weight is darker for rotated text, but not for non-rotated text.
JDH
From: Michael D. <md...@st...> - 2008年04月25日 18:08:39
They don't look non-antialiased to me (in your attachment or a file I 
generated locally). Remember, the rotation happens in raster (not 
vector) space, because that was the path of least resistance, but is a 
bit of a hack.
The difference is that the trunk appears slightly darker than 0.91.x. 
(And 0.90.x, if I recall correctly, didn't support non-90 degree 
rotations of text at all). 0.91.x is using spline36 interpolation, 
trunk is using spline16. I *think* I changed it because I thought 
spline16 looked slightly cleaner (though technically less accurate), and 
of course is faster, but I'm not sure anymore -- SVN blame isn't helping 
me remember. It could have just been the example I was using at the 
time looked better.
In any case, you should be able to change this line in _backend_agg.cpp:2197
 filter.calculate(agg::image_filter_spline16());
to any of the interpolation kernels that Agg offers, and experiment 
until you find something suitable.
Cheers,
Mike
John Hunter wrote:
> On the trunk, it appears that font anti-aliasing is turned off on
> rotated text, as in this example:
>
> n [26]: import datetime
>
> In [27]: dt = datetime.date.today()
>
> In [28]: dates = [dt-datetime.timedelta(days=i) for i in range(10)]
>
> In [29]: plot(dates, range(10))
> Out[29]: [<matplotlib.lines.Line2D object at 0x98f96ac>]
>
> # after rotation the fonts are pixelated
> In [34]: gcf().autofmt_xdate ()
>
> In [35]: draw()
> 
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save 100ドル. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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: John H. <jd...@gm...> - 2008年04月25日 16:27:26
Attachments: font.png
On the trunk, it appears that font anti-aliasing is turned off on
rotated text, as in this example:
n [26]: import datetime
In [27]: dt = datetime.date.today()
In [28]: dates = [dt-datetime.timedelta(days=i) for i in range(10)]
In [29]: plot(dates, range(10))
Out[29]: [<matplotlib.lines.Line2D object at 0x98f96ac>]
# after rotation the fonts are pixelated
In [34]: gcf().autofmt_xdate ()
In [35]: draw()
From: Darren D. <dar...@co...> - 2008年04月25日 03:40:36
On Thursday 24 April 2008 10:45:33 pm John Hunter wrote:
> On Thu, Apr 24, 2008 at 9:23 PM, Darren Dale <dar...@co...> 
wrote:
> > I have been developing a data acquisition and analysis program for my
> > lab, and we are actually in the process of using it it this week and next
> > to run experiments with our visiting scientists. I've been running
> > matplotlib from svn for as long as I can remember and hadn't anticipated
> > trouble. I guess I just wasn't reading the dev list closely enough since
> > I rely on the trunk for daily use.
>
> I can appreciate that you are in production mode and have very little
>
> of any time for distraction, but if you get a minute try:
> > svn co http://svn.scipy.org/svn/numpy/trunk numpy
> > cd numpy/
> > python setup.py build
> > sudo python setup.py install
>
> Make sure you "rm -rf build" your mpl build dir and get a clean mpl
> rebuild afterward. I would be very surprised if you encounter any
> troubles. The numpy folks have been doing a tremendous amount of
> work to get svn ready for a 1.1 release, and you owe it to yourself to
> be on the latest.
I think I'm up and running. I'm not sure that the gentoo's lapack and blas 
were recognized, but thats because gentoo does some non standard naming of 
the f77blas. Also, there were a few changes I had to make for my project to 
work with numpy-svn, related to the behavior of ndarray.flat. Hopefully none 
of the other tools I depend on will have much trouble with numpy-1.1.
From: John H. <jd...@gm...> - 2008年04月25日 02:45:36
On Thu, Apr 24, 2008 at 9:23 PM, Darren Dale <dar...@co...> wrote:
> I have been developing a data acquisition and analysis program for my lab, and
> we are actually in the process of using it it this week and next to run
> experiments with our visiting scientists. I've been running matplotlib from
> svn for as long as I can remember and hadn't anticipated trouble. I guess I
> just wasn't reading the dev list closely enough since I rely on the trunk for
> daily use.
I can appreciate that you are in production mode and have very little
of any time for distraction, but if you get a minute try:
 > svn co http://svn.scipy.org/svn/numpy/trunk numpy
 > cd numpy/
 > python setup.py build
 > sudo python setup.py install
Make sure you "rm -rf build" your mpl build dir and get a clean mpl
rebuild afterward. I would be very surprised if you encounter any
troubles. The numpy folks have been doing a tremendous amount of
work to get svn ready for a 1.1 release, and you owe it to yourself to
be on the latest.
JDH
From: Darren D. <dar...@co...> - 2008年04月25日 02:24:03
On Thursday 24 April 2008 09:48:18 pm John Hunter wrote:
> On Thu, Apr 24, 2008 at 5:03 PM, Eric Firing <ef...@ha...> wrote:
> > Darren,
> >
> > It is open for discussion. Here are some factors:
> >
> > 1) In my experience, numpy is easy to build from source--easier than
> > matplotlib.
>
> This is my view too -- if you rely on or can build svn mpl, I seen no
> reason why you can't also rely on/build svn numpy since it is a much
> easier build. If mpl builds, numpy svn is pretty much guaranteed to
> build on any platform.
>
> If I am missing something Darren, please let me know, but in my
> regular workflow, I pretty much assume I can bild svn ipython, numpy
> and mpl, and hopefully scipy.
I have been developing a data acquisition and analysis program for my lab, and 
we are actually in the process of using it it this week and next to run 
experiments with our visiting scientists. I've been running matplotlib from 
svn for as long as I can remember and hadn't anticipated trouble. I guess I 
just wasn't reading the dev list closely enough since I rely on the trunk for 
daily use.
Maybe we should consider cutting a transitional prelease at some point before 
additional big changes are made, so those of us who have already transitioned 
our code to the new codebase have a reference build we can install when we 
run into trouble on the trunk?
From: John H. <jd...@gm...> - 2008年04月25日 01:48:24
On Thu, Apr 24, 2008 at 5:03 PM, Eric Firing <ef...@ha...> wrote:
> Darren,
>
> It is open for discussion. Here are some factors:
>
> 1) In my experience, numpy is easy to build from source--easier than
> matplotlib.
This is my view too -- if you rely on or can build svn mpl, I seen no
reason why you can't also rely on/build svn numpy since it is a much
easier build. If mpl builds, numpy svn is pretty much guaranteed to
build on any platform.
If I am missing something Darren, please let me know, but in my
regular workflow, I pretty much assume I can bild svn ipython, numpy
and mpl, and hopefully scipy.
JDH

Showing 8 results of 8

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