Coloring scatter points on graph based on indeces in matplotlib
import matplotlib.pyplot as plt import numpy as np import matplotlib as mpl data = np.random.rand(100, 2) indices = np.arange(data.shape[0]) norm…
import matplotlib.pyplot as plt import numpy as np import matplotlib as mpl data = np.random.rand(100, 2) indices = np.arange(data.shape[0]) norm…
#!/bin/bash # ERRシグナルをキャッチしてエラーが発生したらループを抜ける trap 'break' ERR # リストの中の各要素に対して処理を行うforループ for item in item1 item2 item3 item4; do echo "Processing $item" #…
import matplotlib.pyplot as plt import numpy as np # サンプルデータを生成 x = np.linspace(0, 10, 100) y = np.sin(x) # プロット…