ALT Linux Bugzilla
– Attachment 9480 Details for
Bug 40379
Заголовок легенды, написанный по-русски, не отображается в Mayavi
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
boy.py
boy.py (text/x-python), 775 bytes, created by
Vera Blagoveschenskaya
on 2021-07-06 13:11:06 MSK
(
hide
)
Description:
boy.py
Filename:
MIME Type:
Creator:
Vera Blagoveschenskaya
Created:
2021-07-06 13:11:06 MSK
Size:
775 bytes
patch
obsolete
># Author: Gael Varoquaux <gael.varoquaux@normalesup.org> ># Copyright (c) 2007, Enthought, Inc. ># License: BSD Style. > > >from numpy import sin, cos, mgrid, pi, sqrt >from mayavi import mlab > >mlab.figure(fgcolor=(0, 0, 0), bgcolor=(1, 1, 1)) >u, v = mgrid[- 0.035:pi:0.01, - 0.035:pi:0.01] > >X = 2 / 3. * (cos(u) * cos(2 * v) > + sqrt(2) * sin(u) * cos(v)) * cos(u) / (sqrt(2) - > sin(2 * u) * sin(3 * v)) >Y = 2 / 3. * (cos(u) * sin(2 * v) - > sqrt(2) * sin(u) * sin(v)) * cos(u) / (sqrt(2) > - sin(2 * u) * sin(3 * v)) >Z = -sqrt(2) * cos(u) * cos(u) / (sqrt(2) - sin(2 * u) * sin(3 * v)) >S = sin(u) > >mlab.mesh(X, Y, Z, scalars=S, colormap='YlGnBu', ) > ># Nice view from the front >mlab.view(.0, - 5.0, 4) >mlab.show()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 40379
:
9477
|
9478
|
9479
| 9480