mikedewar / d3py

a plottling library for python, based on D3
1.42k stars 201 forks source link

Changes to the functionality of javascript.py #24

Closed mynameisfiber closed 12 years ago

mynameisfiber commented 12 years ago

Tried to increase ease of use of the javascript.py module while having things make sense. Code was refactored for continuity, proper operators added, more reliable actions from methods (when methods are called with different type parameters) and finally an object lookup was added to the JavaScript object.

Still on the table is whether object methods should work inplace or return new objects. I can see pros and cons either way.

Pros for in place:

Also, up for review is my choice for object operations (mainly how I implemented addition)... does anyone have ideas regarding other operators or more elegant ways of doing this?

mynameisfiber commented 12 years ago

ping @alaiacano