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





Showing 11 results of 11

From: Andrew S. <str...@as...> - 2005年02月13日 22:10:41
On Feb 13, 2005, at 1:00 PM, John Hunter wrote:
>>>>>> "Andrew" == Andrew Straw <str...@as...> writes:
> Andrew> Any other comments/questions?
>
> Hey Andrew, just did a quick read through the diff and have a few
> meandering comments meant solely to confuse and perplex :-)
No, I like your suggestions...
> Rather than all this cruft in rc
> <snip>
> How about
>
> xaxis.spine1 = 0
> xaxis.spine2 = 0
> yaxis.spine1 = 0
> yaxis.spine2 = 0
>
> Or xaxis spine1 is left and spine2 is right; for yaxis bottom and top.
> Use None to turn the spine off. Otherwise use a floating point value
> to represent the pad.
Yes, I like your suggestion.
> You would need a new rc method none_or_float, which will eventually
> become a trait. Some care would have to be taken with this approach
> though. If the text locations and tick line locations are using
> *delegation*, None could cause some trouble. But if we use observer,
> then we could simply toggle the visibility to off upon setting None.
> This would work pretty well.
I think we might want a spine position variable separate from a spine 
visibility variable. It's conceivable, although seemingly unlikely, 
that people would want to move the spine but have it invisible such 
that the tick origins are offset...
> In the midst of this refactor, it would be nice to support three tick
> position (inside, outside, center) rather than use the tick1inward
> boolean you suggest. As you know we already have TICKUP, TICKDOWN
> TICKLEFT and TICKRIGHT line styles. It would be trivial to add
> TICK_HORIZONTAL_CENTER and TICK_VERTICAL_CENTER to support these three
> tick placement schemes. We then do away with inward and outward and
> simply use the tick line-style to indicate it's position. The trick
> for doing label placement would be to query the tick line for top,
> left, bottom and right. Then the only other param we need is the pad
> in points that separates the label from the tick, right?
Yes, and then another step where I think we'd need the bounding boxes 
for the ticklabels to get the pad for the axis label (axis title).
> Hmm, the project is growing. I think there is something to be said
> for doing this axis refactor once, generally, and right, though.
Agreed. I was fantasizing this morning about how, if we push the 
transforms into the backend, generalizing the whole thing to 3D and, 
for example, making an OpenGL backend wouldn't be the daunting task it 
once might've seemed. MPL's (2D) transforms now seem to be an example 
of parallel evolution to OpenGL's (3D) transforms. Furthermore, we 
could maybe support 3D in the frontend while allowing backends to 
implement at their own pace, throwing a NotImplementedError when the z 
transform becomes non-identity and if z values are non-zero... Maybe 
we could write a middle-layer (wrapper) backend which handles the 
3D->2D transforms for the pure 2D backends. This would handle the 
projective transformation but preserve zorder. Anyhow, just a fantasy 
for the moment, but tantalizing.
> You also have to be a little careful here
>
> self._tick1PadPixels = 
> self.figure.dpi*Value(tick1Pad)*Value(1/72.0)
>
> because changes to tick11pad will not be reflected in
> self._tick1PadPixels. Compare with
>
> self.tick1Pad = Value(tick1Pad)
> self._tick1PadPixels = 
> self.figure.dpi*self.tick1Pad*Value(1/72.0)
>
> Then if later on you do self.tick1Pad.set(7) the tick1padPixels attr
> is automagically updated
Yeah, I was running out of steam last night at 3 in the morning and got 
lazy, just wanting to get the thing to work. I knew about this...
> A lot of things I tried to solve with lazy values are addressed by
> delegation and observers in traits though, so we may want to go for a
> more traity impl.
Agreed.
> On a related note, it would be really nice to develop a layout object
> that was easy to use that was trait and mpl transform aware, so you
> could rather easily say
>
> val = to_the_right_of(x, 5*points)
>
> Lazy values take you part of the way -- we'd also need all objects to
> report their extent (pretty easy, but can be expensive for some artist
> styles). With get_extent implemented for all artists, you could build
> something like this will lazy values, but the syntax of constructing
> these things is a bit awkward, and matplotlib doesn't allow you to use
> lazy values and float interchangeably, which would be nice for example
> when creating text instances. So a bit of redesign to support this
> kind of layout would make your job a lot easier.
This would really cool. It's beyond my brain capacity right now to 
think about implementation...
> Anyway, more sketchy thoughts that concrete ideas.... Thanks for the
> preliminary attempt!
I think moving to traits would be a wise first step, so I'll hold off 
for now until we get traits implemented. What needs to happen first to 
implement traits? Change rcParams to be traits aware? I've been 
ignoring the threads about re-vamping the rcParams format and reader, 
so I'm clueless about what's going on in that department. Anyhow, I'm 
in no great hurry to get detachable axis spines working (as you know!), 
so I can happily return to this later.
Cheers!
Andrew
From: Stephen W. <ste...@cs...> - 2005年02月13日 21:31:26
John Hunter wrote:
>On Friday, I found and fixed the last remaining known bug in the new
>log handling. I've upload the 0.72 release candidate to 
>
> http://jdh.uchicago.edu/share/matplotlib-0.72rc1.tar.gz
>
>so you can test it out.
> 
>
So far it passes my simple tests. Whether I have time to do anything 
serious with it depends on how much I get done on this grant proposal 
I'm writing.
Thanks, John!
From: John H. <jdh...@ac...> - 2005年02月13日 21:18:15
>>>>> "Andrew" == Andrew Straw <str...@as...> writes:
 Andrew> The online documentation for traits seems pretty sparse.
 Andrew> Here's the best I could track down, Dave Morrill's scipy
 Andrew> '04 lightning talk:
 Andrew> http://www.scipy.org/wikis/scipy04/presentations2004/
 Andrew> scipy_conference_2004.pdf
No, the documentation is great -- it's just hard to find. You have to
get the PDF from the enthought subversion tree, in the
branches/converge/traits/doc directory. I put a copy of the latest
subversion pdf from that directory on my server,
http://jdh.uchicago.edu/share/Traits2_UM.pdf
but there appears to be an OSX font problem with it...
JDH
From: John H. <jdh...@ac...> - 2005年02月13日 21:11:15
>>>>> "Andrew" == Andrew Straw <str...@as...> writes:
 Andrew> Any other comments/questions?
Hey Andrew, just did a quick read through the diff and have a few
meandering comments meant solely to confuse and perplex :-)
Rather than all this cruft in rc
 axes.spineLeftOn : True
 axes.spineRightOn : True
 axes.spineBottomOn : True
 axes.spineTopOn : True
 axes.spineLeftPad : 0
 axes.spineRightPad : 0
 axes.spineBottomPad : 0
 axes.spineTopPad : 0
How about 
 xaxis.spine1 = 0
 xaxis.spine2 = 0
 yaxis.spine1 = 0
 yaxis.spine2 = 0
Or xaxis spine1 is left and spine2 is right; for yaxis bottom and top.
Use None to turn the spine off. Otherwise use a floating point value
to represent the pad.
You would need a new rc method none_or_float, which will eventually
become a trait. Some care would have to be taken with this approach
though. If the text locations and tick line locations are using
*delegation*, None could cause some trouble. But if we use observer,
then we could simply toggle the visibility to off upon setting None.
This would work pretty well.
In the midst of this refactor, it would be nice to support three tick
position (inside, outside, center) rather than use the tick1inward
boolean you suggest. As you know we already have TICKUP, TICKDOWN
TICKLEFT and TICKRIGHT line styles. It would be trivial to add
TICK_HORIZONTAL_CENTER and TICK_VERTICAL_CENTER to support these three
tick placement schemes. We then do away with inward and outward and
simply use the tick line-style to indicate it's position. The trick
for doing label placement would be to query the tick line for top,
left, bottom and right. Then the only other param we need is the pad
in points that separates the label from the tick, right?
 xaxis.tick.alignment = 'inside' # inside | outside | center
 xaxis.tick.labelpad = 5 # distance from tickline in points
Hmm, the project is growing. I think there is something to be said
for doing this axis refactor once, generally, and right, though.
You also have to be a little careful here
 self._tick1PadPixels = self.figure.dpi*Value(tick1Pad)*Value(1/72.0)
because changes to tick11pad will not be reflected in
self._tick1PadPixels. Compare with
 self.tick1Pad = Value(tick1Pad)
 self._tick1PadPixels = self.figure.dpi*self.tick1Pad*Value(1/72.0)
Then if later on you do self.tick1Pad.set(7) the tick1padPixels attr
is automagically updated
A lot of things I tried to solve with lazy values are addressed by
delegation and observers in traits though, so we may want to go for a
more traity impl.
On a related note, it would be really nice to develop a layout object
that was easy to use that was trait and mpl transform aware, so you
could rather easily say
 val = to_the_right_of(x, 5*points)
 
Lazy values take you part of the way -- we'd also need all objects to
report their extent (pretty easy, but can be expensive for some artist
styles). With get_extent implemented for all artists, you could build
something like this will lazy values, but the syntax of constructing
these things is a bit awkward, and matplotlib doesn't allow you to use
lazy values and float interchangeably, which would be nice for example
when creating text instances. So a bit of redesign to support this
kind of layout would make your job a lot easier.
Anyway, more sketchy thoughts that concrete ideas.... Thanks for the
preliminary attempt!
JDh
From: Andrew S. <str...@as...> - 2005年02月13日 20:43:17
JDH wrote:
> I think now is a good time to introduce traits into matplotlib.
The online documentation for traits seems pretty sparse. Here's the 
best I could track down, Dave Morrill's scipy '04 lightning talk: 
http://www.scipy.org/wikis/scipy04/presentations2004/ 
scipy_conference_2004.pdf
The gist is encapsulated in the following basic usage example. Whee, 
what fun, strong types with notification in Python!
import traits2
class Person(traits2.HasTraits):
 weight = traits2.Float
 volume = traits2.Range(0.0, 11.0, default=5.0)
 stock = traits2.Trait(None, 0, 1, 2, 3, 'many') # enumerated list
 name = traits2.Str
 # method signatures not included in this example...
joe = Person()
joe.weight = 120.0
def joes_weight_changed( what, new ):
 print what, 'changed to', new
joe.on_trait_change( joes_weight_changed, 'weight' )
joe.weight = 200.0
From: John H. <jdh...@ac...> - 2005年02月13日 20:07:52
>>>>> "Stephen" == Stephen Walton <ste...@cs...> writes:
 Stephen> Any idea when anonymous CVS from Sourceforge for projects
 Stephen> beginning with m might be available again? I was hoping
 Stephen> you might have "inside information." At the moment, it
 Stephen> _looks_ like it's working, but in fact an apparently
 Stephen> successful CVS checkout gets 0.72 as of 9 February.
I have no idea when sourceforge will get itself sorted out....
On Friday, I found and fixed the last remaining known bug in the new
log handling. I've upload the 0.72 release candidate to 
 http://jdh.uchicago.edu/share/matplotlib-0.72rc1.tar.gz
so you can test it out.
Let me know if you see anything unexpected...
JDH
From: Stephen W. <ste...@cs...> - 2005年02月13日 19:43:45
John Hunter wrote:
>I'll probably
>roll out 0.72 tomorrow...
>
Any idea when anonymous CVS from Sourceforge for projects beginning with 
m might be available again? I was hoping you might have "inside 
information." At the moment, it _looks_ like it's working, but in fact 
an apparently successful CVS checkout gets 0.72 as of 9 February.
Steve
From: John H. <jdh...@ac...> - 2005年02月13日 18:54:58
A long winding road out of beta
 Once considered the final stage of software development, beta
 versions are taking on a life of their own, as companies tinker
 endlessly with their products in public.
 Underscoring the trend, Google co-founder Larry Page on Wednesday
 told investors that the beta, or test, stage for its products would
 last as long as its engineers expected to make major changes to
 them--a process that has already taken years, in some cases.
 "It's kind of an arbitrary thing," Page said. "We could take beta
 off all of our products tomorrow, and we wouldn't actually have
 accomplished anything...If it's on there for five years because we
 think we're going to make major changes for five years, that's
 fine. It's really a messaging and branding thing."
Rest of story at http://news.zdnet.com/2100-9588_22-5571590.html
From: John H. <jdh...@ac...> - 2005年02月13日 18:48:37
>>>>> "Steve" == Steve Chaplin <ste...@ya...> writes:
 Steve> However, it looks like onetrue() is never used and
 Steve> alltrue() is used in lines.py and backend_ps.py, but is
 Steve> imported from numerix not cbook - so can these cookbook
 Steve> functions be deleted?
Since we have no way of knowing if code outside matplotlib is using
these, it seems like the path of least resistance is simply to fix the
bug.
JDH
From: John H. <jdh...@ac...> - 2005年02月13日 17:44:09
>>>>> "Andrew" == Andrew Straw <str...@as...> writes:
 Andrew> So... any takers at performing open-heart surgery on
 Andrew> matplotlib and replacing several of the most critical
 Andrew> parts with (Trait-based) replacements? (C'mon, John, this
 Andrew> should be easy for neuro-surgery types! :) Or should I
 Andrew> press ahead with the dumb version? ("If you're gonna be
 Andrew> dumb, you gotta be tough")
 Andrew> Any other comments/questions?
I wonder if the current design of an Axis containing a list of ticks
is the best one. Eg, in the current design each xticklabel can have
it's own color, own y position and own rotation. In real life these
attributes should be shared, or should be a property of the xaxis.
But rather than refactor this containment relationship which is
documented and is used external code, your idea to use traits is
probably the right way. Eg, this is a natural place for delegation --
eg the tick line and label locations should delegate to an axis trait.
The rate-limiting step here has not been the application of traits to
matplotlib, it is getting the latest traits package out of the
envisage tree. I spent some time working on this this morning, and
succeeded in getting the core traits minus the UI component as a
standalone package using plain-ol distutils rather than
scipy_distutils. I put the tarball here
 http://jdh.uchicago.edu/share/traits2-1.0.2.tar.gz
if you want to play with it. Also, Abraham, you may want to see if
you can get your config file stuff working with this core. I think
now is a good time to introduce traits into matplotlib. I'll probably
roll out 0.72 tomorrow, and am pretty busy this week with real work,
but then we can look into porting all mpl properties to traits. A
good start would be for you and Abraham to break the ground in your
respective patches and test my traits port.
I posted my port to envisage-dev -- I had to make only a few minor
changes to the traits src to get this to work under python2.2 and to
work w/o the UI package. I suspect there will be a number of
iterations before we can get a package fully synchronized with
enthought traits, but my guess is that this will not be too long since
they seem receptive to making traits more accessible. Robert Kern had
the good idea of providing a null UI interface so that the existing
code which uses the UI component would not have to be altered.
Let me know how it goes...
JDH
From: Andrew S. <str...@as...> - 2005年02月13日 12:19:04
Hi mplibbies,
I've made a preliminary stab at implementing detachable axis spines, 
and I include a set of patches here. This is not in a state ready for 
prime-time yet, but is presented here only as a report of progress. The 
biggest question I see is whether now would be a good time to jump to a 
Traits-like mechanism. Things are getting pretty messy in the 
axis.draw() method, and I've really only implemented a fraction of 
what's really desired. For example, I've hand-coded propagation of the 
axis spine's location to the origin of the ticks, but I haven't 
continued down the chain to the tick labels or the axis label. 
Although I haven't played around with Traits, my feeling is that this 
sort of daisy-chained dependency could be much more easily handled with 
them.
To get this ready for prime time in its current form (without going to 
what I imagine Traits to be), I think it would be a simple but tedious 
and error-prone effort to propagate display coordinates down the 
spine->ticks->ticklabels->axislabel chain in the event of something 
like "gca().xaxis.spineBottomPad=10". I think I could bite this off in 
the next few days for inclusion into CVS, although I'd be the first to 
agree that it doesn't appear to be the ideal solution that something 
based on Traits does.
So... any takers at performing open-heart surgery on matplotlib and 
replacing several of the most critical parts with (Trait-based) 
replacements? (C'mon, John, this should be easy for neuro-surgery 
types! :) Or should I press ahead with the dumb version? ("If you're 
gonna be dumb, you gotta be tough")
Any other comments/questions?
Cheers!
Andrew

Showing 11 results of 11

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