def render_systems(params=None):
figure = pyplot.figure()
axes = figure.add_subplot(111, projection='3d')
for currentSystem in database.get_star_log_hashes(from_highest=True):
current_position = util.get_cartesian(currentSystem)
xs = [current_position[0], current_position[0]]
ys = [current_position[1], current_position[1]]
zs = [0, current_position[2]]
axes.plot(xs, ys, zs)
axes.scatter(current_position[0], current_position[1], current_position[2], label=util.get_system_name(currentSystem))
axes.legend()
axes.set_title('Systems')
axes.set_xlabel('X')
axes.set_ylabel('Y')
axes.set_zlabel('Z')
pyplot.show()
评论列表
文章目录