Base Mark for Label and Scatter
| 500 | |
| 501 | |
| 502 | class _ScatterBase(Mark): |
| 503 | """ |
| 504 | Base Mark for Label and Scatter |
| 505 | """ |
| 506 | # Scaled attributes |
| 507 | x = Array([], allow_none=True).tag(sync=True, scaled=True, |
| 508 | rtype='Number', |
| 509 | atype='bqplot.Axis', |
| 510 | **array_serialization)\ |
| 511 | .valid(array_dimension_bounds(1, 1)) |
| 512 | y = Array([], allow_none=True).tag(sync=True, scaled=True, |
| 513 | rtype='Number', |
| 514 | atype='bqplot.Axis', |
| 515 | **array_serialization)\ |
| 516 | .valid(array_dimension_bounds(1, 1)) |
| 517 | color = Array(None, allow_none=True).tag(sync=True, |
| 518 | scaled=True, |
| 519 | rtype='Color', |
| 520 | atype='bqplot.ColorAxis', |
| 521 | **array_serialization)\ |
| 522 | .valid(array_squeeze, array_dimension_bounds(1, 1)) |
| 523 | opacity = Array(None, allow_none=True).tag(sync=True, |
| 524 | scaled=True, |
| 525 | rtype='Number', |
| 526 | **array_serialization)\ |
| 527 | .valid(array_squeeze, array_dimension_bounds(1, 1)) |
| 528 | size = Array(None, allow_none=True).tag(sync=True, scaled=True, |
| 529 | rtype='Number', |
| 530 | **array_serialization)\ |
| 531 | .valid(array_squeeze, array_dimension_bounds(1, 1)) |
| 532 | rotation = Array(None, allow_none=True).tag(sync=True, scaled=True, |
| 533 | rtype='Number', |
| 534 | **array_serialization)\ |
| 535 | .valid(array_squeeze, array_dimension_bounds(1, 1)) |
| 536 | |
| 537 | # Other attributes |
| 538 | scales_metadata = Dict({ |
| 539 | 'x': {'orientation': 'horizontal', 'dimension': 'x'}, |
| 540 | 'y': {'orientation': 'vertical', 'dimension': 'y'}, |
| 541 | 'color': {'dimension': 'color'}, |
| 542 | 'size': {'dimension': 'size'}, |
| 543 | 'opacity': {'dimension': 'opacity'}, |
| 544 | 'rotation': {'dimension': 'rotation'} |
| 545 | }).tag(sync=True) |
| 546 | opacities = Array([1.0])\ |
| 547 | .tag(sync=True, display_name='Opacities', **array_serialization)\ |
| 548 | .valid(array_squeeze, array_dimension_bounds(1, 1)) |
| 549 | hovered_style = Dict().tag(sync=True) |
| 550 | unhovered_style = Dict().tag(sync=True) |
| 551 | hovered_point = Int(None, allow_none=True).tag(sync=True) |
| 552 | |
| 553 | enable_move = Bool().tag(sync=True) |
| 554 | enable_delete = Bool().tag(sync=True) |
| 555 | restrict_x = Bool().tag(sync=True) |
| 556 | restrict_y = Bool().tag(sync=True) |
| 557 | update_on_move = Bool().tag(sync=True) |
| 558 | |
| 559 | def __init__(self, **kwargs): |
nothing calls this directly
no test coverage detected
searching dependent graphs…