<jupyter_start><jupyter_text>Import the data<jupyter_code>data = pd.read_csv('PHASEdata.csv',header=None, skiprows=1)
data.head()
z = data[0]
#print(z)
z_approach = z[:500]
z_retract = z[500:]
#print(z_approach)
#print(z_retract)
z_approach_as_numpy = z_approach.as_matrix(columns=None)
#phase shift
for k in range(len(z)):
    pslist = []
    phaseshift = data.iloc[k,1:]  #[from zero row to the end row, from second column to the last column]
    #print(phaseshift)
    ps = np.array(phaseshift)
    ps_reshape = np.reshape(ps,(48,48))
    #print(ps)
    pslist.append(ps_reshape)
    #print(pslist)
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
a = np.linspace(0, 48, 20)
b = np.linspace(0, 48, 20)
c = z_approach_as_numpy
x, y, z = np.meshgrid(a, b, c)
l = np.linspace(0, 48, 200000)
fig = plt.figure(figsize=(15,15))
ax = fig.add_subplot(111, projection='3d')
ax.scatter(x, y, z, c=l)
plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16596194503171247, 'fraction_numerical': 0.046511627906976744, 'mean_word_length': 5.189542483660131, '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': '489013', 'license': 'MIT', 'n_tokens_mistral': 442, 'n_tokens_neox': 415, 'n_words': 83, 'path': 'doc/Notebooks/AFM_3dplot.ipynb', 'repo_name': 'EdwardZheng0312/3d-data-dive', 'size': '946'}