<jupyter_start><jupyter_text><jupyter_code>import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
fig, ax = plt.subplots(figsize=(6, 6))

names = ['A', 'B', 'C', 'D', 'E']
values = [-1, -0.5, 0, 0.5, 1]
n = len(names)
gradient = np.linspace(0, 1, 100).reshape(1, -1)
plt.imshow(gradient , extent=[-1, 1, -1, 1], aspect='auto', cmap='RdYlGn_r')        # extent=[xmin,xmax,ymin,ymax]
plt.plot([0.2],[0.7],'.',markersize=12)
ax.annotate('your voice', (0.2, 0.7))

ax.annotate('spring', (1,1.02),annotation_clip=False)
ax.annotate('summer', (1,-1.05),annotation_clip=False)
ax.annotate('autumn', (-1.1,-1.05),annotation_clip=False)
ax.annotate('winter', (-1.1,1.02),annotation_clip=False)
plt.axis('off')

# sns.stripplot(x=values, y=names, color='b', size=12, edgecolor='b')
# plt.hlines(np.arange(0, n), -1, 1, linestyles='--', linewidth=1)
# plt.grid(False)
# plt.xlim(-1, 1)
# plt.xticks([0, 1, 2, 3])<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.24236037934668073, 'fraction_numerical': 0.06322444678609063, 'mean_word_length': 5.73758865248227, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '387372', 'license': 'MIT', 'n_tokens_mistral': 456, 'n_tokens_neox': 433, 'n_words': 75, 'path': 'gradation_plot.ipynb', 'repo_name': 'hihunjin/Code-snippet-for-everything', 'size': '949'}