Variables
plot_ik_grid Namespace Reference

Variables

 ax = axes.flat[counter]
 
 axes
 
 csvfile = sys.argv[1]
 
dictionary data
 
 data_array = data_by_k[k]
 
 data_by_k = dict()
 
 fig
 
 fontsize
 
 i = data["i"]
 
 i_index = index.index("i")
 
 i_s = sorted(set([data["i"] for data in data_array]))
 
 im
 
 image = np.arange(0, xnum * ynum, 1.0).reshape((xnum, ynum))
 
 image_file = sys.argv[2]
 
 images = dict()
 
 index = reader.next()
 
 j = data["j"]
 
 j_index = index.index("j")
 
 j_s = sorted(set([data["j"] for data in data_array]))
 
 k
 
 k_index = index.index("k")
 
 k_num = len(data_by_k.keys())
 
 labelsize
 
 max_value = max([data["value"] for data in data_array])
 
 max_x = max([data["x"] for data in data_array])
 
 max_y = max([data["y"] for data in data_array])
 
 max_z = np.amax(z_values)
 
 min_i = min([data["i"] for data in data_array])
 
 min_j = min([data["j"] for data in data_array])
 
 min_value = min([data["value"] for data in data_array])
 
 min_x = min([data["x"] for data in data_array])
 
 min_y = min([data["y"] for data in data_array])
 
 min_z = np.amin(z_values)
 
int non_zero_counter = 0
 
 reader = csv.reader(f)
 
tuple step = (max_z - min_z)/(k_num - 1)
 
 value
 
 value_index = index.index("value")
 
 x
 
 x_index = index.index("x")
 
 xnum = len(i_s)
 
 y
 
 y_index = index.index("y")
 
 ynum = len(j_s)
 
 z
 
 z_index = index.index("z")
 
 z_values
 

Detailed Description

Visualize csv file of ik-grid in 2d heatmap

Variable Documentation

plot_ik_grid.ax = axes.flat[counter]

Definition at line 91 of file plot_ik_grid.py.

plot_ik_grid.axes

Definition at line 65 of file plot_ik_grid.py.

plot_ik_grid.csvfile = sys.argv[1]

Definition at line 13 of file plot_ik_grid.py.

dictionary plot_ik_grid.data
Initial value:
1 = {"x": x,
2  "y": y,
3  "z": z,
4  "i": i,
5  "j": j,
6  "k": k,
7  "value": value}

Definition at line 41 of file plot_ik_grid.py.

plot_ik_grid.data_array = data_by_k[k]

Definition at line 69 of file plot_ik_grid.py.

plot_ik_grid.data_by_k = dict()

Definition at line 20 of file plot_ik_grid.py.

plot_ik_grid.fig

Definition at line 65 of file plot_ik_grid.py.

plot_ik_grid.fontsize

Definition at line 105 of file plot_ik_grid.py.

plot_ik_grid.i = data["i"]

Definition at line 34 of file plot_ik_grid.py.

plot_ik_grid.i_index = index.index("i")

Definition at line 29 of file plot_ik_grid.py.

plot_ik_grid.i_s = sorted(set([data["i"] for data in data_array]))

Definition at line 70 of file plot_ik_grid.py.

plot_ik_grid.im
Initial value:
1 = ax.imshow(image, vmin=min_value, vmax=max_value, cmap="gnuplot", interpolation="none",
2  aspect="auto",
3  extent=[min_x-step/2, max_x+step/2, min_y-step/2, max_y+step/2])

Definition at line 99 of file plot_ik_grid.py.

plot_ik_grid.image = np.arange(0, xnum * ynum, 1.0).reshape((xnum, ynum))

Definition at line 83 of file plot_ik_grid.py.

plot_ik_grid.image_file = sys.argv[2]

Definition at line 15 of file plot_ik_grid.py.

plot_ik_grid.images = dict()

Definition at line 66 of file plot_ik_grid.py.

plot_ik_grid.index = reader.next()

Definition at line 24 of file plot_ik_grid.py.

plot_ik_grid.j = data["j"]

Definition at line 34 of file plot_ik_grid.py.

plot_ik_grid.j_index = index.index("j")

Definition at line 30 of file plot_ik_grid.py.

plot_ik_grid.j_s = sorted(set([data["j"] for data in data_array]))

Definition at line 71 of file plot_ik_grid.py.

plot_ik_grid.k

Definition at line 34 of file plot_ik_grid.py.

plot_ik_grid.k_index = index.index("k")

Definition at line 31 of file plot_ik_grid.py.

plot_ik_grid.k_num = len(data_by_k.keys())

Definition at line 52 of file plot_ik_grid.py.

plot_ik_grid.labelsize

Definition at line 98 of file plot_ik_grid.py.

plot_ik_grid.max_value = max([data["value"] for data in data_array])

Definition at line 77 of file plot_ik_grid.py.

plot_ik_grid.max_x = max([data["x"] for data in data_array])

Definition at line 79 of file plot_ik_grid.py.

plot_ik_grid.max_y = max([data["y"] for data in data_array])

Definition at line 81 of file plot_ik_grid.py.

plot_ik_grid.max_z = np.amax(z_values)

Definition at line 60 of file plot_ik_grid.py.

plot_ik_grid.min_i = min([data["i"] for data in data_array])

Definition at line 74 of file plot_ik_grid.py.

plot_ik_grid.min_j = min([data["j"] for data in data_array])

Definition at line 75 of file plot_ik_grid.py.

plot_ik_grid.min_value = min([data["value"] for data in data_array])

Definition at line 76 of file plot_ik_grid.py.

plot_ik_grid.min_x = min([data["x"] for data in data_array])

Definition at line 78 of file plot_ik_grid.py.

plot_ik_grid.min_y = min([data["y"] for data in data_array])

Definition at line 80 of file plot_ik_grid.py.

plot_ik_grid.min_z = np.amin(z_values)

Definition at line 59 of file plot_ik_grid.py.

int plot_ik_grid.non_zero_counter = 0

Definition at line 67 of file plot_ik_grid.py.

plot_ik_grid.reader = csv.reader(f)

Definition at line 23 of file plot_ik_grid.py.

tuple plot_ik_grid.step = (max_z - min_z)/(k_num - 1)

Definition at line 62 of file plot_ik_grid.py.

plot_ik_grid.value

Definition at line 34 of file plot_ik_grid.py.

plot_ik_grid.value_index = index.index("value")

Definition at line 32 of file plot_ik_grid.py.

plot_ik_grid.x

Definition at line 34 of file plot_ik_grid.py.

plot_ik_grid.x_index = index.index("x")

Definition at line 26 of file plot_ik_grid.py.

plot_ik_grid.xnum = len(i_s)

Definition at line 72 of file plot_ik_grid.py.

plot_ik_grid.y

Definition at line 34 of file plot_ik_grid.py.

plot_ik_grid.y_index = index.index("y")

Definition at line 27 of file plot_ik_grid.py.

plot_ik_grid.ynum = len(j_s)

Definition at line 73 of file plot_ik_grid.py.

plot_ik_grid.z

Definition at line 34 of file plot_ik_grid.py.

plot_ik_grid.z_index = index.index("z")

Definition at line 28 of file plot_ik_grid.py.

plot_ik_grid.z_values
Initial value:
1 = np.array(list(chain.from_iterable([[data["z"] for data in data_array]
2  for data_array in data_by_k.values()])))

Definition at line 57 of file plot_ik_grid.py.



jsk_ik_server
Author(s): furuta
autogenerated on Fri May 14 2021 02:52:06