Skip to content

Instantly share code, notes, and snippets.

@filipstrand
Created August 8, 2016 14:42
Show Gist options
  • Select an option

  • Save filipstrand/cbd9dd1940984941da397835b9052fa0 to your computer and use it in GitHub Desktop.

Select an option

Save filipstrand/cbd9dd1940984941da397835b9052fa0 to your computer and use it in GitHub Desktop.
from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
from matplotlib import cm
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
X, Y, Z = axes3d.get_test_data(0.05)
cset = ax.contour(X, Y, Z, cmap=cm.coolwarm)
ax.clabel(cset, fontsize=9, inline=1)
# plt.show()
plt.savefig("test.svg")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment