ray-the-ripper/test/label_episodes/plot.py

20 lines
26 KiB
Python
Raw Permalink Normal View History

2025-08-31 13:49:25 +02:00
import matplotlib.pyplot as plt
# Your data array
y_values = [0.7737694522761901, 0.793510789653552, 0.9164862584903243, 0.8841702101755735, 0.9335664719409914, 0.9310395218363308, 0.9250685089068307, 0.9145719498910675, 0.9103645061728395, 0.9113547282384268, 0.87585236945904, 0.8753278301080781, 0.8352603952183633, 0.8482902081820383, 0.8563352869978783, 0.7577991819385707, 0.7874578943995899, 0.7703764018824668, 0.7704319410625543, 0.7536491691229869, 0.7780599712361342, 0.7905058229028721, 0.8436150967576573, 0.8527936566420322, 0.7911910710980108, 0.7814459691429222, 0.8869472870121179, 0.8945223874008572, 0.9050857042163271, 0.8990692721460407, 0.9013019693280362, 0.8929220139689863, 0.88187466964273, 0.8648132595013314, 0.8495160130718954, 0.8435250046278497, 0.8444995963091119, 0.8568111420821052, 0.8528883994047873, 0.8509417449841229, 0.8447888639696983, 0.866879248366013, 0.8802912782832814, 0.8849879120566164, 0.8840208463269112, 0.8734911198684266, 0.882112814871773, 0.876590255172512, 0.882316220257166, 0.8844065202842212, 0.8843927492275051, 0.916344879462315, 0.9166330841414271, 0.8936242833952753, 0.8966584465376565, 0.8871442593304569, 0.8511000007119769, 0.8512583682202002, 0.851273388084355, 0.8610930592934342, 0.9096839310379199, 0.8997278699787831, 0.9015339837242087, 0.8625830723938086, 0.8613073899639739, 0.8635911721987269, 0.829626542853888, 0.8303063056231934, 0.8314627696612414, 0.8360586070884417, 0.841479881313455, 0.8796314579862446, 0.913201794181725, 0.8900439991029091, 0.9097852738263061, 0.9252775179062184, 0.8877330706138664, 0.8778441596536944, 0.879501075797058, 0.926478471243254, 0.8912360043145798, 0.8950053743574409, 0.8726010879006649, 0.8923466024463526, 0.8895439457046435, 0.8941183184530166, 0.8941794726387287, 0.8231282761615903, 0.8140372641576601, 0.8032613218562661, 0.8351396222250701, 0.8324326694148974, 0.8347964191123072, 0.8975889387272702, 0.8892609292010195, 0.9006195743802241, 0.9072987433608156, 0.8933697783615988, 0.8418704280404973, 0.847771446523417, 0.8385479053640338, 0.827580319179233, 0.8371501997095134, 0.8371949015335982, 0.8370970748430091, 0.8477685623050963, 0.8451187128882054, 0.849128414285104, 0.8536100363820183, 0.8436925997123613, 0.8448087060532274, 0.8410219125122815, 0.8364418539165848, 0.8985195647685363, 0.8927928560240364, 0.8133023758668319, 0.8206774039899184, 0.8150268967063949, 0.7838689934070942, 0.7881542205989149, 0.7889539276204309, 0.7640970193088128, 0.796977918749199, 0.7912205198855141, 0.8293327662437524, 0.8318530910476027, 0.7434674989676335, 0.7589173213294033, 0.798907785467128, 0.7778975045210531, 0.8422358654790892, 0.8380836875418286, 0.8657912398365302, 0.8850729843934669, 0.8523125735116124, 0.8542880259729164, 0.8529750291910518, 0.8527711603087131, 0.634904257265724, 0.6475168731399604, 0.6253691482620645, 0.6253963219274637, 0.7742521288108563, 0.774245871246102, 0.7741101923049539, 0.9091462898885044, 0.9102575761459268, 0.9087687726942629, 0.9099407503524286, 0.9058284260327225, 0.9057991883463625, 0.9054433793270394, 0.9052473094393894, 0.9028475144887294, 0.9015246596750538, 0.9031494176029162, 0.9033321375681718, 0.9034880580118758, 0.9055463080439148, 0.9066363460634799, 0.9005813928403605, 0.9057293412789953, 0.9076546182379996, 0.9076534612755778, 0.9076534612755778, 0.9178116981360446, 0.9114263132413459, 0.8941686826291881, 0.9058698121805004, 0.9013574180870605, 0.9015082628476228, 0.899920235806741, 0.893413523644752, 0.8817171960214732, 0.8825357921454711, 0.8995983119028294, 0.8956587469918977, 0.895521898984721, 0.9248110648326142, 0.9248046919276062, 0.9038899315790223, 0.9073886254574451, 0.9081232609964829, 0.8629939788115683, 0.8615028571631993, 0.8604246589630768, 0.9281415979608982, 0.924395756617825, 0.8831972834522335, 0.9011203785581045, 0.9002918161818104, 0.9216184426929813, 0.9178188050892107, 0.9238072899312231, 0.897235986515158, 0.898792385407322, 0.8918010686772894, 0.8983759423013941, 0.9062757806826435, 0.8520458466828997, 0.8290274424366697, 0.890668156834266, 0.8447670529141214, 0.8260494546257138, 0.8150143997322967, 0.81503216747
# x-axis is just the index
x_values = list(range(len(y_values)))
# Create the plot
plt.figure(figsize=(60, 20))
plt.plot(x_values, y_values, marker='o', linestyle='-', color='blue', label='Series A')
plt.title('Simple Plot')
plt.xlabel('Index')
plt.ylabel('Value')
plt.grid(True)
plt.legend()
# Show the plot
plt.savefig("plot.png")