mikedewar / d3py

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

Fixes issue mikedewar/d3py#23 #25

Closed mynameisfiber closed 12 years ago

mynameisfiber commented 12 years ago

This fixes the problem by allowing users to go into non-interactive mode (endabled by default). One problem this fix has made apparent is that del is not what we want to cleanup files: the reference count could be at zero even if we have stale files lying around!

One solution would be to use enter and exit and require the user to create a figure object with the with statement:

with Figure() as fig: ...do stuff with fig...

ideas?

mikedewar commented 12 years ago

Hey I'm going to raise an issue over the del thing and then come back and make this merge.