Skip to content

Instantly share code, notes, and snippets.

@seqis
Last active October 18, 2024 03:11
Show Gist options
  • Select an option

  • Save seqis/35b1ab092b113352ac261c6919d15bab to your computer and use it in GitHub Desktop.

Select an option

Save seqis/35b1ab092b113352ac261c6919d15bab to your computer and use it in GitHub Desktop.
Discussion from this Reddit thread where I plotted what was discussed as a 3D graph: https://www.reddit.com/r/singularity/comments/1g6028b/copilot_o1_just_gave_the_most_mindblowing_answer/
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
# Create a new figure for the 3D plot
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
# Data points for Time (x), Fulfillment (y), and Impact on Others (z)
time = [1, 2, 3, 4, 5]
fulfillment = [1, 2, 4, 6, 8] # Sample y-values for fulfillment
impact = [0.5, 1, 1.5, 2.5, 3] # Sample z-values for impact
# Plot the data points in 3D
ax.scatter(time, fulfillment, impact, color='blue', s=100)
# Connect the points with a line (optional, to show a trend)
ax.plot(time, fulfillment, impact, color='lightblue')
# Label the axes
ax.set_xlabel('Time')
ax.set_ylabel('Fulfillment')
ax.set_zlabel('Impact on Others')
# Annotate specific points (optional)
ax.text(4, 8, 2.5, 'Self-Actualization', fontsize=12, ha='right')
ax.text(1, 1, 0.5, 'Relationships', fontsize=12, ha='right')
# Set the title of the plot
ax.set_title('3D Plot of Fulfillment, Time, and Impact on Others')
# Display the plot and allow for interactive rotation
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment