Skip to content

Instantly share code, notes, and snippets.

@crhea93
Created October 17, 2022 13:48
Show Gist options
  • Save crhea93/a08b1a2b1fb6267df25977438ee530bf to your computer and use it in GitHub Desktop.
Save crhea93/a08b1a2b1fb6267df25977438ee530bf to your computer and use it in GitHub Desktop.
fig = plt.figure(figsize=(16,8))
plt.plot(np.linspace(-1,1,n), Y_test[-1], label='Noisy', color='C1')
plt.plot(np.linspace(-1,1,n), X_test[-1], label='True', color='C2', linewidth=4)
plt.plot(np.linspace(-1,1,n), ysol_list[-1][-1][-1].reshape(n), label='Predicted', linestyle='dashed', color='C3', linewidth=3)
plt.legend(prop={'size': 20})
plt.ylabel('Normalized y-axis', fontsize=20)
plt.xlabel('X-axis', fontsize=20)
plt.xticks(fontsize = 15)
plt.yticks(fontsize = 15)
plt.title('RIM Example using a Noisy Gaussian')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment