Dear all, I am sorry for being so reiterative with the subject, but I am still confused :) As I said in my previous post, I want to use a customized version of the painter for the axes. There is a solution for this problem (see the first post in the thread), but I wonder if this is what you André were really suggesting. My feeling is that my code is a little redundant, and I would like to know the opinion of the experts on that.
Besides, since I sometimes need to modify some of the attributes of my original defaults, I think it would be natural to have some callable object that changes, via a keyword, the attribute to modify. E.g.: myaxes = myaxis() # my defaults myaxes_b = myaxis(titledist=0.1) # my defaults except titledist, which is now 0.1 As far as I understand, with the class 'myaxis' you posted, you define a new class with different defaults for the attributes, but any slight variation of the values requires rewriting the whole thing. Am I right? Some time ago [see post https://sourceforge.net/mailarchive/message.php?msg_id=20051001211930.GA18839%40upf.edu] you André said that it would be a good idea to implement a sort of "costumizable instances" for that, so that it would be possible to use __call__ to modify some of the attributes of the class. This would certainly reduce the code shown above, and goes along the lines of what I was saying. I would like to hear about your current opinion on this matter. I apologize if this is really something trivial. Thanks for your attention Mico ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ PyX-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyx-user
