enthought / enthought/mayavi

Feature Request: honor size argument from mlab.figure in notebooks

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

Description

Presently, the size of the figures in a notebook environment is determined by the initial call `mlab.init_notebook(width=800, height=600)`.

It would be convenient to set the figure size for any given figure like so:
```
fig = mlab.figure(size=(100, 100))
t = np.linspace(0, 4 * np.pi, 20)
x = np.sin(2 * t)
y = np.cos(t)
z = np.cos(2 * t)
p = mlab.points3d(x, y, z, figure=fig)
fig
```

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.