enthought / enthought/chaco

Free rotation of Chaco plots

Open
#130 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
305
Forks
97
PR merge metrics
No merged PRs in 30d

Description

Using the following snippet crashes python with a fatal error
"Fatal Python error: This thread state must be current when releasing"

```
class RotatingContainer(OverlayPlotContainer):
rotation = Float(45)
use_backbuffer = False
def draw(self, gc, *args, **kw):
with gc:
w2 = self.width / 2
h2 = self.height / 2
gc.translate_ctm(w2, h2)
gc.rotate_ctm(math.radians(self.rotation))
gc.translate_ctm(-w2, -h2 - 100)
OverlayPlotContainer.draw(self, gc, *args, **kw)
```

setting use_backbuffer=True works for some cases. see "Free rotation of Chaco plots" thread in enthought mailing list

Canopy 1.0 Mac OSX 10.7.5

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.