Repository: magpylib/magpylib

Issue:
Marker-legend is not suppressible
See title :)


```python
import magpylib as magpy

cube = magpy.magnet.Cuboid(
    polarization=(1,2,3),
    dimension=(1,2,3),
)
cube.show(markers=[(0,0,0)], style_legend_show=True)
```

![image](https://github.com/magpylib/magpylib/assets/47384012/e9bd0868-42eb-49e2-9574-eda49baa571c)

```python
cube.show(markers=[(0,0,0)], style_legend_show=False)
``` 

![image](https://github.com/magpylib/magpylib/assets/47384012/5279b0f4-0be4-4f91-8929-4a14f620e6b6)




Discussion:

Patch:
diff --git a/magpylib/_src/display/traces_generic.py b/magpylib/_src/display/traces_generic.py
index 9d82a48c..b1d37229 100644
--- a/magpylib/_src/display/traces_generic.py
+++ b/magpylib/_src/display/traces_generic.py
@@ -63,6 +63,7 @@ class MagpyMarkers:
             "y": y,
             "z": z,
             "mode": "markers",
+            "showlegend": style.legend.show,  # pylint: disable=no-member
             **marker_kwargs,
             **kwargs,
         }


Test patch:
diff --git a/tests/test_display_plotly.py b/tests/test_display_plotly.py
index b9f51abf..93dc908d 100644
--- a/tests/test_display_plotly.py
+++ b/tests/test_display_plotly.py
@@ -383,3 +383,13 @@ def test_legends():
     )
     assert [t.name for t in fig.data] == ["Plotly extra trace (1m|1m|1m)"] * 4
     assert [t.showlegend for t in fig.data] == [True, False, False, False]
+
+    fig = magpy.show(
+        markers=[(0, 0, 0)],
+        backend="plotly",
+        style_legend_show=False,
+        return_fig=True,
+    )
+
+    assert [t.name for t in fig.data] == ["Marker"]
+    assert [t.showlegend for t in fig.data] == [False]