Документация Engee

LScene

Страница в процессе перевода.

Если требуется обычная сцена Makie в макете, например для трехмерных графиков, следует использовать LScene напрямую. Это просто оболочка вокруг обычного блока Scene, которая делает его блочным. Доступ к базовому блоку Scene можно получить с помощью поля scene. Однако вы можете построить график в LScene напрямую.

Передать именованные аргументы базовому объекту Scene можно с помощью ключевого слова scenekw. В настоящее время может потребоваться передать несколько атрибутов явным образом, чтобы гарантировать, что они не наследуются от основной сцены. Сведения о применимых параметрах см. в документации по scene.

using GLMakie

fig = Figure()
pl = PointLight(Point3f(0), RGBf(20, 20, 20))
al = AmbientLight(RGBf(0.2, 0.2, 0.2))
lscene = LScene(fig[1, 1], show_axis=false, scenekw = (lights = [pl, al], backgroundcolor=:black, clear=true))
# теперь можно строить графики в lscene как обычно
p = meshscatter!(lscene, randn(300, 3), color=:gray)
fig
dbd519e

Атрибуты

MarkdownAST.Heading(3)

Defaults to Inside()

The alignment of the scene in its suggested bounding box.

MarkdownAST.Heading(3)

Defaults to nothing

Global state for the x dimension conversion.

MarkdownAST.Heading(3)

Defaults to nothing

Global state for the y dimension conversion.

MarkdownAST.Heading(3)

Defaults to nothing

Global state for the z dimension conversion.

MarkdownAST.Heading(3)

Defaults to :center

The horizontal alignment of the scene in its suggested bounding box.

MarkdownAST.Heading(3)

Defaults to nothing

The height setting of the scene.

MarkdownAST.Heading(3)

Defaults to true

Controls the visibility of the 3D axis plot object.

MarkdownAST.Heading(3)

Defaults to true

Controls if the parent layout can adjust to this element’s height

MarkdownAST.Heading(3)

Defaults to true

Controls if the parent layout can adjust to this element’s width

MarkdownAST.Heading(3)

Defaults to :center

The vertical alignment of the scene in its suggested bounding box.

MarkdownAST.Heading(3)

Defaults to nothing

The width setting of the scene.