Skip to content

BUG?: style_legend_false supresses only model3d output #875

@OrtnerMichael

Description

@OrtnerMichael

The following minimal example shows that with style_legend_show=False the legend is not really supressed, but only the part of the 3dmodel.
@Alexboiboi Is it supposed to be like this? I find it a bit odd.

import numpy as np
import magpylib as magpy

cube = magpy.magnet.Cuboid(
    dimension=(2, 2, 1),
    polarization=(0, 0, 1),
)

sensor = magpy.Sensor(np.linspace((-2, 0, 2), (2, 0, 2), 100))

magpy.show(
    {"objects": [sensor, cube], "col": 1, "row": 1},
    {"objects": [sensor, cube], "output": "Hz", "col": 2, "row": 1},
    backend="plotly",
    style_legend_show=False,
)
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions