@@ -78,18 +78,27 @@ def __init__(self):
7878
7979 self ._x = None
8080 self ._y = None
81+ self ._symbol_size = 10.0
8182 self ._bgColor : colors .RGBAColorType | None = None
8283 self ._constraint = self ._defaultConstraint
8384 self .__isBeingDragged = False
8485
85- def _addRendererCall (self , backend , symbol = None , linestyle = "-" , linewidth = 1 ):
86+ def _addRendererCall (
87+ self ,
88+ backend ,
89+ symbol = None ,
90+ symbolsize = 10. ,
91+ linestyle = "-" ,
92+ linewidth = 1 ,
93+ ):
8694 """Perform the update of the backend renderer"""
8795 return backend .addMarker (
8896 x = self .getXPosition (),
8997 y = self .getYPosition (),
9098 text = self .getText (),
9199 color = self .getColor (),
92100 symbol = symbol ,
101+ symbolsize = symbolsize ,
93102 linestyle = linestyle ,
94103 linewidth = linewidth ,
95104 constraint = self .getConstraint (),
@@ -246,6 +255,9 @@ class Marker(MarkerBase, SymbolMixIn):
246255 _DEFAULT_SYMBOL = "+"
247256 """Default symbol of the marker"""
248257
258+ _DEFAULT_SYMBOL_SIZE = 10.0
259+ """Default size of marker's symbol"""
260+
249261 def __init__ (self ):
250262 MarkerBase .__init__ (self )
251263 SymbolMixIn .__init__ (self )
@@ -254,7 +266,11 @@ def __init__(self):
254266 self ._y = 0.0
255267
256268 def _addBackendRenderer (self , backend ):
257- return self ._addRendererCall (backend , symbol = self .getSymbol ())
269+ return self ._addRendererCall (
270+ backend ,
271+ symbol = self .getSymbol (),
272+ symbolsize = self .getSymbolSize (),
273+ )
258274
259275 def _setConstraint (self , constraint ):
260276 """Set the constraint function of the marker drag.
0 commit comments