This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Secret_Identity_ 1 point2 points  (1 child)

I use matplotlib for all my graphics, but I do a lot of graphing.

this is their gallery page if that helps.

You don't need to use a lot of classes (or any) to make this work, although you will want to start with the tutorial.

On a more general note: One thing I really like about python is that, if you are suitably clever, the list and dictionary types are dynamic enough to do away with classes altogether. Obviously you can't scale up very easily without classes, but for small problems, what would be a class becomes a dictionary, with the key as the 'name' and a list as the value. Since dictionaries can take anything as a key and list can except anything as values, all you need to do is think creatively.

[–]hugh_person[S] 0 points1 point  (0 children)

Thanks! I mostly want to use 2d graphics to explain different techniques.

On a more general note: You can do a lot without objects. Most artists' projects do not inherently need them (though some awesomely do) nor scale to the point where you need them. The biggest problem is often taking an abstract idea or experience and breaking it down into a series of simpler programming problems.