<jupyter_start><jupyter_text>Label positioned in data coordinates<jupyter_code>fig = plt.figure(title='Basic Label Example')
test_line = plt.plot(np.arange(10), y_data[:10])
test_label = plt.label(['Test', 'Label', 'for', 'the', 'Data'], 
                       x=np.arange(5), y=y_data[:5], 
                       default_size=26, font_weight='bolder',
                       colors=['orange', 'red'], update_on_move=True)
fig<jupyter_output><empty_output><jupyter_text>Setting the label attribute `enable_move` to `True` makes the label draggable<jupyter_code># now the labels can be moved by dragging them!
test_label.enable_move = True<jupyter_output><empty_output><jupyter_text>Label positioned in terms of Figure coordinates<jupyter_code>fig = plt.figure()

test_line = plt.plot(np.arange(10), y_data)
test_label = plt.label(['Test Label'], default_size=26, font_weight='bolder', colors=['orange'])
test_label.x = [0.5]
test_label.y = [0.2]
fig
# Rotating the label
test_label.rotate_angle = 30<jupyter_output><empty_output><jupyter_text>Label positioned at a Date value<jupyter_code>fig = plt.figure()
lines = plt.plot(price_data.index, price_data['Security 1'])
label = plt.label(['Pi-Day'], x=[np.datetime64('2007-03-14')], colors=['orange'])
label.y = [.5]
fig
# Setting an offset in pixels
label.x_offset = 100<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14792899408284024, 'fraction_numerical': 0.02440828402366864, 'mean_word_length': 5.412322274881516, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '286960', 'license': 'Apache-2.0', 'n_tokens_mistral': 493, 'n_tokens_neox': 475, 'n_words': 96, 'path': 'examples/Marks/Pyplot/Label.ipynb', 'repo_name': 'meeseeksmachine/bqplot', 'size': '1352'}