Last active
November 25, 2019 04:06
-
-
Save takehaya/f0e6ddf2b0aa5d96eabac072f9f47670 to your computer and use it in GitHub Desktop.
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 matplotlib.pyplot as plt | |
| import numpy as np | |
| import math | |
| ax = plt.subplot(111, polar=True) | |
| ax.set_theta_direction(-1) | |
| ax.set_theta_zero_location("W") | |
| # xalx = [ | |
| # 48, 47, 44, 42, 35, 31, 40, 44, 45, | |
| # 47, 49, 51, 52, 51, 51, 51, 52, 50, | |
| # 49, 48, 46, 43, 36, 30, 39, 45, 47, | |
| # 50, 50, 51, 51, 52, 52, 51, 51, 50, | |
| # ] | |
| xalx = [ | |
| 50, 50, 51, 51, 52, 52, 51, 51, 50, | |
| 48, 47, 44, 42, 35, 31, 40, 44, 45, | |
| 47, 49, 51, 52, 51, 51, 51, 52, 50, | |
| 49, 48, 46, 43, 36, 30, 39, 45, 47, | |
| ] | |
| # 200,280 | |
| xalx.append(xalx[0]) | |
| pipi2_range = [i/ 180 * np.pi for i in range(0, 370, 10)] | |
| print(pipi2_range) | |
| lineol = [0,49] | |
| lineay = [pipi2_range[20]]*2 | |
| lineby = [pipi2_range[28]]*2 | |
| ax.plot(lineay, lineol, "blue") | |
| ax.plot(lineby, lineol, "blue") | |
| # これを有効にすると点を打つことができる(が普通はいらなそう | |
| for i, e in zip(pipi2_range, xalx): | |
| ax.plot(i, e, "ro") | |
| ax.plot(pipi2_range, xalx, label="NHK") | |
| # yalx = [ | |
| # 53, 51, 46, 35, 38, 47, 51, 53, 56, | |
| # 57, 58, 57, 59, 58, 58, 57, 57, 56, | |
| # 54, 54, 48, 42, 37, 46, 50, 53, 55, | |
| # 56, 58, 60, 59, 59, 58, 57, 56, 57, | |
| # ] | |
| yalx = [ | |
| 56, 58, 60, 59, 59, 58, 57, 56, 57, | |
| 53, 51, 46, 35, 38, 47, 51, 53, 56, | |
| 57, 58, 57, 59, 58, 58, 57, 57, 56, | |
| 54, 54, 48, 42, 37, 46, 50, 53, 55, | |
| ] | |
| # 5度、60度 | |
| yalx.append(yalx[0]) | |
| lineol = [0,57] | |
| lineay = [pipi2_range[1]/2]*2 | |
| lineby = [pipi2_range[6]]*2 | |
| ax.plot(lineay, lineol, "green") | |
| ax.plot(lineby, lineol, "green") | |
| ax.plot(pipi2_range, yalx, label="TBC") | |
| for i, e in zip(pipi2_range, yalx): | |
| ax.plot(i, e, "yo") | |
| ax.legend() | |
| plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment