Label mark. Data Attributes --------------- Attributes ---------- x: numpy.ndarray (default: []) horizontal position of the labels, in data coordinates or in figure coordinates y: numpy.ndarray (default: []) vertical position of the labels, in data c
| 754 | |
| 755 | @register_mark('bqplot.Label') |
| 756 | class Label(_ScatterBase): |
| 757 | |
| 758 | """Label mark. |
| 759 | |
| 760 | Data Attributes |
| 761 | --------------- |
| 762 | |
| 763 | Attributes |
| 764 | ---------- |
| 765 | x: numpy.ndarray (default: []) |
| 766 | horizontal position of the labels, in data coordinates or in |
| 767 | figure coordinates |
| 768 | y: numpy.ndarray (default: []) |
| 769 | vertical position of the labels, in data coordinates or in |
| 770 | figure coordinates |
| 771 | color: numpy.ndarray or None (default: None) |
| 772 | label colors |
| 773 | size: numpy.ndarray or None (default: None) |
| 774 | label sizes |
| 775 | rotation: numpy.ndarray or None (default: None) |
| 776 | label rotations |
| 777 | opacity: numpy.ndarray or None (default: None) |
| 778 | label opacities |
| 779 | |
| 780 | Style Attributes |
| 781 | ---------------- |
| 782 | |
| 783 | Attributes |
| 784 | ---------- |
| 785 | x_offset: int (default: 0) |
| 786 | horizontal offset in pixels from the stated x location |
| 787 | y_offset: int (default: 0) |
| 788 | vertical offset in pixels from the stated y location |
| 789 | text: string (default: '') |
| 790 | text to be displayed |
| 791 | default_size: string (default: '14px') |
| 792 | font size in px, em or ex |
| 793 | font_weight: {'bold', 'normal', 'bolder'} |
| 794 | font weight of the caption |
| 795 | drag_size: nonnegative float (default: 1.) |
| 796 | Ratio of the size of the dragged label font size to the default |
| 797 | label font size. |
| 798 | align: {'start', 'middle', 'end'} |
| 799 | alignment of the text with respect to the provided location |
| 800 | enable_move: Bool (default: False) |
| 801 | Enable the label to be moved by dragging. Refer to restrict_x, |
| 802 | restrict_y for more options. |
| 803 | restrict_x: bool (default: False) |
| 804 | Restricts movement of the label to only along the x axis. This is valid |
| 805 | only when enable_move is set to True. If both restrict_x and restrict_y |
| 806 | are set to True, the label cannot be moved. |
| 807 | restrict_y: bool (default: False) |
| 808 | Restricts movement of the label to only along the y axis. This is valid |
| 809 | only when enable_move is set to True. If both restrict_x and restrict_y |
| 810 | are set to True, the label cannot be moved. |
| 811 | """ |
| 812 | # Mark decoration |
| 813 | icon = 'fa-font' |
no outgoing calls
no test coverage detected
searching dependent graphs…