This file contains hidden or 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 numpy as np | |
import pandas as pd | |
import matplotlib | |
matplotlib.use('TkAgg') | |
import matplotlib.pyplot as plt | |
#df = pd.read_csv('./nile.csv') | |
df = pd.read_csv('./fat_percent.csv') | |
#df = pd.read_csv('./weight.csv') |
This file contains hidden or 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
using PyPlot | |
const AREA_SCALE = 100 | |
const NUM_POINTS = 100 | |
# 頂点をランダムな位置に配置 | |
function generate_points() | |
points = zeros(NUM_POINTS, 2) | |
points[:, 1] = rand(NUM_POINTS) * AREA_SCALE | |
points[:, 2] = rand(NUM_POINTS) * AREA_SCALE |