<jupyter_start><jupyter_text>First of all, try your best to interpret your data into 2-D figures rather than 3-D. 3-D figures are not friendly for paper readers.<jupyter_code>x, y = np.meshgrid(np.arange(-5, 6, 1), np.arange(-5, 6, 1))
z = x**2 + y**2<jupyter_output><empty_output><jupyter_text>Now `z` is a 2-D array.<jupyter_code>fig, ax = plt.subplots(figsize=(5, 4.5))
plt.pcolormesh(x, y, z, cmap='jet')
plt.xlabel('x')
plt.ylabel('y')
cb = plt.colorbar()
cb.ax.set_ylabel('z')
cb.ax.tick_params(direction='in')
from mpl_toolkits.mplot3d import Axes3D
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
ax.plot_wireframe(x, y, z)
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
sfc = ax.plot_surface(x, y, z, cmap='jet', linewidth=0, antialiased=False)
fig.colorbar(sfc)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1746987951807229, 'fraction_numerical': 0.03132530120481928, 'mean_word_length': 6.102564102564102, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '481723', 'license': 'MIT', 'n_tokens_mistral': 371, 'n_tokens_neox': 356, 'n_words': 77, 'path': '_site/Docs/3D-plot.ipynb', 'repo_name': 'AstroJacobLi/astrojacobli.github.io', 'size': '830'}