enthought / enthought/mayavi

mlab.text() draws into wrong figure when using multiple figures

Open
#38 7 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
1.4k
Forks
316
Avg merge
7h 44m
Merged PRs (30d)
5

Description

When using multiple mlab figures, mlab.text() always draws into the last figure instead of the figure specified via the parameter or using mlab.figure(). For example, when using

```
f1 = mlab.figure()
mlab.test_contour_surf()

f2 = mlab.figure()
mlab.test_surface()

mlab.text(0.5, 0.5, 'test', figure=f1)
```

The text appears in f2 instead of f1. The same thing happens when the last line is replaced with

```
mlab.figure(f1)
mlab.text(0.5, 0.5, 'test')
```

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.