This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
from mpl_toolkits.mplot3d import Axes3D | |
# generally, it's not advised to make 3d plots becuase they're not very transferable | |
# and there's usually ways to do dimensionality reduction. However, sometimes it's useful | |
# for exploratory purposes. | |
fig = plt.figure(figsize=(14,9.5)) | |
ax = fig.add_subplot(111, projection='3d') | |
ax.scatter(x1, y1, z1, label='data1', c='k') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
from matplotlib.font_manager import FontProperties | |
fig = plt.figure(figsize=(8.5,11.0)) | |
plt.rc('text', usetex=True) | |
plt.rc('font', family='serif') | |
plt.rcParams['text.latex.preamble'] = [r'\boldmath'] | |
# data in xmn, ymn does not exist. Replace with whatever data you're trying to plot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Langton's Ant | |
# Abraham Hmiel, 2017 | |
# CC 3.0 attribution sharealike license | |
import numpy as np | |
import re | |
import sys | |
import matplotlib.pyplot as plt | |
import matplotlib as mpl |
NewerOlder