matplotlib
차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판이전 판다음 판 | 이전 판 | ||
| matplotlib [2020/01/29 08:04] – [Subplot] rex8312 | matplotlib [2024/03/23 02:38] (현재) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| 줄 3: | 줄 3: | ||
| ===== Animation ===== | ===== Animation ===== | ||
| - | | + | |
| + | * [[https:// | ||
| 줄 76: | 줄 77: | ||
| * https:// | * https:// | ||
| - | ====== imshow | + | ===== imshow ===== |
| <code python> | <code python> | ||
| 줄 92: | 줄 93: | ||
| else: | else: | ||
| c = (1 - min_diff) * w | c = (1 - min_diff) * w | ||
| + | c = np.clip(c, 0, 1) | ||
| cs.append(c) | cs.append(c) | ||
| ax1.text(0, | ax1.text(0, | ||
| 줄 105: | 줄 107: | ||
| ===== Radar chart ===== | ===== Radar chart ===== | ||
| + | |||
| + | * https:// | ||
| <code python> | <code python> | ||
| 줄 122: | 줄 126: | ||
| </ | </ | ||
| - | ====== Subplot | + | ===== Subplot ===== |
| * https:// | * https:// | ||
| - | ====== Embedded plot ====== | + | ===== Embedded plot ===== |
| <code python> | <code python> | ||
| 줄 144: | 줄 148: | ||
| scatter = ax.scatter(data[:, | scatter = ax.scatter(data[:, | ||
| + | ax.set_xlim([-0.2, | ||
| + | ax.set_ylim([-0.2, | ||
| + | |||
| for idx, (x, y) in enumerate(data): | for idx, (x, y) in enumerate(data): | ||
| subdata_ = subdata[idx] | subdata_ = subdata[idx] | ||
| 줄 150: | 줄 157: | ||
| height = box.height * 0.2 | height = box.height * 0.2 | ||
| xmin, xmax, ymin, ymax = ax.axis() | xmin, xmax, ymin, ymax = ax.axis() | ||
| - | nx = (x - xmin - width/2) / (xmax - xmin) | + | nx = (x - xmin) / (xmax - xmin) - width / 2 |
| - | ny = (y - ymin - height/2) / (ymax - ymin) | + | ny = (y - ymin) / (ymax - ymin) - height / 2 |
| inax_position | inax_position | ||
| transFigure = fig.transFigure.inverted() | transFigure = fig.transFigure.inverted() | ||
| 줄 163: | 줄 170: | ||
| plt.show() | plt.show() | ||
| </ | </ | ||
| + | |||
| + | |||
| + | |||
| + | ===== Neural Net Weights/ | ||
| + | |||
| + | * [[https:// | ||
| + | |||
| + | |||
matplotlib.1580285049.txt.gz · 마지막으로 수정됨: (바깥 편집)