@@ -45,7 +45,7 @@ def add_image(
45
45
----------
46
46
data: array-like
47
47
array-like, usually numpy.ndarray, must support ``memoryview()``
48
- | shape must be ``[x_dim, y_dim ]``
48
+ | shape must be ``[n_rows, n_cols ]``, ``[n_rows, n_cols, 3]`` for RGB or ``[n_rows, n_cols, 4]`` for RGBA
49
49
50
50
vmin: int, optional
51
51
minimum value for color scaling, calculated from data if not provided
@@ -185,6 +185,7 @@ def add_line(
185
185
cmap : str = None ,
186
186
cmap_transform : Union [numpy .ndarray , Iterable ] = None ,
187
187
isolated_buffer : bool = True ,
188
+ size_space : str = "screen" ,
188
189
** kwargs
189
190
) -> LineGraphic :
190
191
"""
@@ -217,6 +218,9 @@ def add_line(
217
218
cmap_transform: 1D array-like of numerical values, optional
218
219
if provided, these values are used to map the colors from the cmap
219
220
221
+ size_space: str, default "screen"
222
+ coordinate space in which the size is expressed ("screen", "world", "model")
223
+
220
224
**kwargs
221
225
passed to Graphic
222
226
@@ -232,6 +236,7 @@ def add_line(
232
236
cmap ,
233
237
cmap_transform ,
234
238
isolated_buffer ,
239
+ size_space ,
235
240
** kwargs
236
241
)
237
242
@@ -346,6 +351,7 @@ def add_scatter(
346
351
isolated_buffer : bool = True ,
347
352
sizes : Union [float , numpy .ndarray , Iterable [float ]] = 1 ,
348
353
uniform_size : bool = False ,
354
+ size_space : str = "screen" ,
349
355
** kwargs
350
356
) -> ScatterGraphic :
351
357
"""
@@ -386,6 +392,9 @@ def add_scatter(
386
392
if True, uses a uniform buffer for the scatter point sizes,
387
393
basically saves GPU VRAM when all scatter points are the same size
388
394
395
+ size_space: str, default "screen"
396
+ coordinate space in which the size is expressed ("screen", "world", "model")
397
+
389
398
kwargs
390
399
passed to Graphic
391
400
@@ -402,6 +411,7 @@ def add_scatter(
402
411
isolated_buffer ,
403
412
sizes ,
404
413
uniform_size ,
414
+ size_space ,
405
415
** kwargs
406
416
)
407
417
0 commit comments