May-26-2022, 01:09 PM
I have an issue with data visualization in 3D scatter plot. I have regionally stratified some data, say data_A, data_B, data_C. I need to display them in 3D scatter plot with different markers, or colours, per data. I have been trying with many things, but I cannot get what I need. Here is one of the examples I have coded up;
data_all = np.vstack((data_A, data_B, data_C)) fig, ax = plt.subplots(figsize=(12, 6)) ax = plt.axes(projection="3d") case_count = 0 marker_list = ["o", "x", "s"] ax = fig.add_subplot(1, 1, 1, projection='3d') for data_count, region in enumerate(zip(data_all)): EC_sd = data_all[0] DG_sd = data_all[1] CA3_sd = data_all[2] ax.scatter3D(EC_sd, DG_sd, CA3_sd, marker=marker_list[data_count]) fig.tight_layout() plt.show()Result is attached. There is something annoying here.