Re: [Matplotlib-users] ugly code

2007-04-22 Thread Martin Spacek
You might consider using the object oriented part of matplotlib instead of the matlab style of doing things. I tend to make my plots a plot() method of whatever kind of analysis class I've created: from pylab import figure class Analysis(object): def init(self): self.x = range(10)

Re: [Matplotlib-users] ugly code

2007-04-21 Thread Alan G Isaac
On Sun, 22 Apr 2007, Hans Strotzer apparently wrote: > One thing that really annoys me is that generally python > code is quite visually appealing Tastes must vary! What is your point of comparison?? Controlling may graph properties is never going to be beautiful. But why not define a class t

[Matplotlib-users] ugly code

2007-04-21 Thread Hans Strotzer
Hi I'm using matplotlib for producing a bar-chart displaying my electricity consumption. One thing that really annoys me is that generally python code is quite visually appealing, the same goes for the code in the matplotlib-examples. The code I have produced here is frankly quite ugly when it com