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
|
|
|
|
|
|
On Fri, Feb 25, 2005 at 02:04:57PM -0500, Abraham Schneider wrote: > Hmm.. you make good points. Generally I think it is better to keep > everything within python when possible (plus I am not a big fan of > XML..). I suspect in the end this ends up being a preference issue, but > here is the advantage I see with XML. Suppose I have code that reads > data from a file, and can display that data in several different views > (e.g. different variables, different outlays, etc. depending on what is > being examined). In the past I have written a seperate python program > per view that I need or allowed command line parameters to be passed. > > The difficulty with having separate python programs: > * Will have to either: > + run a different program per view I want > + pass a python program as a parameter to run (I don't want to have > to edit the main program for each new view have another import .. I > suppose one could put them all in the same directory, but this could be > a hassle for quick hacks). This isn't a big deal, since I've essentially > already advocated this for the config files. Somehow the semantics of > doing so under these circumstances seems different to me, and perhaps > more userfriendly to provide a layout language. > + continually reedit the same file with different parameters > > On the other hand, if everything is passed on the command line, I have > found it is difficult to get enough specifity to plot exactly I want, > without requiring several lines worth of parameters. > > So I see XML as a means of separating the layout of the data and > managing the different views, without having to touch the code at all. > In the end it doesn't really provide anything new, except for a > different method of doing the same thing. > Python imports don't have to be static, you can access modules dynamically just like you would XML files. For our web application we keep per-client information in .py files that gets __import__'d to modify the look & feel, setup default email addresses, etc. The modules just have to have some agreed on names. If they have a particular function it gets called with an object they can tweak. ex/ def apply_custom(client_id): try: custom = __import__('client_%d' % (client_id)) except ImportError: # nothing custom return def NOP(*args): return # do nothing function getattr(custom, 'alter_skin', NOP)(skin_object) getattr(custom, 'add_reports', NOP)(report_list) # etc The upshot is that you can use python modules just like you would use XML. They both contain markup, just different kinds. -Jack
Hmm.. you make good points. Generally I think it is better to keep everything within python when possible (plus I am not a big fan of XML..). I suspect in the end this ends up being a preference issue, but here is the advantage I see with XML. Suppose I have code that reads data from a file, and can display that data in several different views (e.g. different variables, different outlays, etc. depending on what is being examined). In the past I have written a seperate python program per view that I need or allowed command line parameters to be passed. The difficulty with having separate python programs: * Will have to either: + run a different program per view I want + pass a python program as a parameter to run (I don't want to have to edit the main program for each new view have another import .. I suppose one could put them all in the same directory, but this could be a hassle for quick hacks). This isn't a big deal, since I've essentially already advocated this for the config files. Somehow the semantics of doing so under these circumstances seems different to me, and perhaps more userfriendly to provide a layout language. + continually reedit the same file with different parameters On the other hand, if everything is passed on the command line, I have found it is difficult to get enough specifity to plot exactly I want, without requiring several lines worth of parameters. So I see XML as a means of separating the layout of the data and managing the different views, without having to touch the code at all. In the end it doesn't really provide anything new, except for a different method of doing the same thing. Abe John Hunter wrote: >My initial response to something like this, which I've seen before in >the context of mpl, is: what is the advantage of using a XML over >python? Except for the plot command, which specifies a read data and >filename, everything is pretty much a literal translation of python. >My suggestion would be to create custom python classes that build your >figures, and use python > >class PlotItem: > def __init__(self, fn, fname, var, color, lw): > ... do something with it > >class SubplotItem: > def __init__(self, title, pos) > ....contains one or more plot items > >class FigureItem: > def __init__(self, title) > ... contains one or more axes items > > >fig = FigureItem(title="Hodgkin and Huxley cell") >sub = SubplotItem(title="voltage" pos="1,1") >fig.add_subplot(sub) >plot = PlotItem(fn="readData" file="sim.dat", var="voltage") >sub.add_plot(fig) > >and so on. Then you have the full power of python to specify your >configuration layer. What does an XML layer buy you? I could see >it's usefulness if you were trying to develop a GUI tool to edit and >configure your figures.... > >There has been some interest in having a way to save a figure state to >an external file and open it where you left off. An XML >representation might be useful there, in that it would ease the >development of figure editors in a way that a pickled version would >not. > > > Abraham> p.s. I've had the traits-based config library almost done > Abraham> for a bit .. I just haven't had time to put the last > Abraham> finishing touches on it. I'll email it soon. > >Great. > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Matplotlib-devel mailing list >Mat...@li... >https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > >
>>>>> "Abraham" == Abraham Schneider <ab...@cn...> writes: Abraham> Hi. I've found myself in the position of (a) often having Abraham> to plot data with specific views for either debugging or Abraham> publication purposes. While this is often easy enough to Abraham> write as a python script, I've found myself either Abraham> rewritting the same code over again, or having to create Abraham> a large number of command line parameters to specify Abraham> exactly what type of plot is required. It occured to me Abraham> that it might be nice to have a seperation of data and Abraham> plotting (i.e. MVC) and that XML would work well for Abraham> these purposes (e.g. libglade and renaissance) . For Abraham> example, something like: My initial response to something like this, which I've seen before in the context of mpl, is: what is the advantage of using a XML over python? Except for the plot command, which specifies a read data and filename, everything is pretty much a literal translation of python. My suggestion would be to create custom python classes that build your figures, and use python class PlotItem: def __init__(self, fn, fname, var, color, lw): ... do something with it class SubplotItem: def __init__(self, title, pos) ....contains one or more plot items class FigureItem: def __init__(self, title) ... contains one or more axes items fig = FigureItem(title="Hodgkin and Huxley cell") sub = SubplotItem(title="voltage" pos="1,1") fig.add_subplot(sub) plot = PlotItem(fn="readData" file="sim.dat", var="voltage") sub.add_plot(fig) and so on. Then you have the full power of python to specify your configuration layer. What does an XML layer buy you? I could see it's usefulness if you were trying to develop a GUI tool to edit and configure your figures.... There has been some interest in having a way to save a figure state to an external file and open it where you left off. An XML representation might be useful there, in that it would ease the development of figure editors in a way that a pickled version would not. Abraham> p.s. I've had the traits-based config library almost done Abraham> for a bit .. I just haven't had time to put the last Abraham> finishing touches on it. I'll email it soon. Great.