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 | |
import csv | |
x=[] | |
z=[] | |
f= open("data.csv") | |
#append values to list | |
for row in csv.reader(f): | |
x.append(row[0]) | |
z.append(row[1]) |
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 math | |
def rotate_vector(v, angle, anchor): | |
"""Rotate a vector `v` by the given angle, relative to the anchor point.""" | |
x, y = v | |
x = x - anchor[0] | |
y = y - anchor[1] | |
# Here is a compiler optimization; inplace operators are slower than | |
# non-inplace operators like above. This function gets used a lot, so |
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 | |
import csv | |
import math | |
def rotate_vector(v, angle, anchor): | |
"""Rotate a vector `v` by the given angle, relative to the anchor point.""" | |
x, y = v | |
x = float(x) - anchor[0] | |
y = float(y) - anchor[1] | |
# Here is a compiler optimization; inplace operators are slower than |
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 | |
import matplotlib.mlab as mlab | |
import matplotlib.cbook as cbook | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from matplotlib.widgets import Button | |
import Tkinter as Tk | |
import tkFileDialog | |
import os | |
import csv |
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
#python 3.x | |
import matplotlib.pyplot as plt | |
import matplotlib.mlab as mlab | |
import matplotlib.cbook as cbook | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from matplotlib.widgets import Button, Cursor | |
import tkinter as Tk | |
from tkinter import filedialog | |
import os |
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
# python 3.x | |
from types import * | |
import struct | |
from struct import unpack | |
import numpy as np | |
import binascii | |
import functools | |
import sys | |
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
# python 3.0 | |
import numpy as np | |
import matplotlib.pyplot as mpl | |
x = np.array([1, 2, 3, 4, 5]) | |
y = np.array([2, 5, 3, 8, 7]) | |
A = np.vstack([x, np.ones(len(x))]).T | |
m, c = np.linalg.lstsq(A, y)[0] |
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
// http://stoned.8m.com/Source/MFC/mousedraw.html | |
// ChildView.h : CChildView 클래스의 인터페이스 | |
// | |
#pragma once | |
// CChildView 창 |
OlderNewer