kitikiplot 0.2.8__py3-none-any.whl → 0.2.9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- kitikiplot/core/kitiki_cell.py +1 -0
- kitikiplot/core/kitikiplot.py +14 -5
- {kitikiplot-0.2.8.dist-info → kitikiplot-0.2.9.dist-info}/METADATA +1 -1
- {kitikiplot-0.2.8.dist-info → kitikiplot-0.2.9.dist-info}/RECORD +6 -6
- {kitikiplot-0.2.8.dist-info → kitikiplot-0.2.9.dist-info}/LICENSE +0 -0
- {kitikiplot-0.2.8.dist-info → kitikiplot-0.2.9.dist-info}/WHEEL +0 -0
kitikiplot/core/kitiki_cell.py
CHANGED
kitikiplot/core/kitikiplot.py
CHANGED
@@ -246,12 +246,18 @@ class KitikiPlot(KitikiCell):
|
|
246
246
|
# This allows for plotting only a subset of the data based on the user-defined range
|
247
247
|
window_range= range( window_range[0], window_range[1])
|
248
248
|
|
249
|
+
each_sample= np.concatenate( (data[0], data[1:data.shape[0], (-1)*self.stride:].flatten()) )
|
250
|
+
|
249
251
|
if focus != None:
|
250
|
-
col_range= self.rows + self.window_length -
|
252
|
+
col_range= (self.rows * self.stride) + self.window_length - self.stride
|
251
253
|
else:
|
252
254
|
col_range= self.cols
|
253
255
|
|
254
|
-
|
256
|
+
|
257
|
+
print("Total Data: ", each_sample)
|
258
|
+
print( "Window Range: ", window_range)
|
259
|
+
print( "COlumns Range: ", col_range)
|
260
|
+
print( "Each sample length: ", each_sample.shape[0] )
|
255
261
|
|
256
262
|
# Generate cells for each sample in the specified window range and time frame columns
|
257
263
|
for index in window_range:
|
@@ -295,7 +301,9 @@ class KitikiPlot(KitikiCell):
|
|
295
301
|
# Calculate x and y positions for ticks when not transposed
|
296
302
|
x_positions= [(i+1)*window_gap+(i+1)*cell_width+cell_width/2 for i in range(self.rows)]
|
297
303
|
|
298
|
-
y_positions= [(self.rows+ self.cols- self.stride- i)*cell_height+cell_height/2 for i in range(self.stride*self.rows+self.cols)]
|
304
|
+
# y_positions= [(self.rows+ self.cols- self.stride- i)*cell_height+cell_height/2 for i in range(self.stride*self.rows+self.cols)]
|
305
|
+
|
306
|
+
y_positions= [cell_height*(self.cols-i-1)+ self.rows*self.stride*cell_height + cell_height/2 for i in range(col_range)]
|
299
307
|
|
300
308
|
# Display xticks if 'display_xticks' is True
|
301
309
|
if display_xticks:
|
@@ -333,9 +341,10 @@ class KitikiPlot(KitikiCell):
|
|
333
341
|
|
334
342
|
# Configure default yticks
|
335
343
|
else:
|
336
|
-
|
344
|
+
|
345
|
+
print(y_positions)
|
337
346
|
# Set y-ticks with appropriate labels and rotation
|
338
|
-
plt.yticks( y_positions, [ytick_prefix+"_"+str(i) for i in range(
|
347
|
+
plt.yticks( y_positions, [ytick_prefix+"_"+str(i) for i in range(col_range)], rotation= yticks_rotation)
|
339
348
|
|
340
349
|
# Else turn off the yticks
|
341
350
|
else:
|
@@ -1,12 +1,12 @@
|
|
1
1
|
kitikiplot/core/__init__.py,sha256=7LpJy1V-PZ-JlfjsnRMjMXxTKaFt0JP0mj-A0SgS-sE,34
|
2
|
-
kitikiplot/core/kitiki_cell.py,sha256=
|
2
|
+
kitikiplot/core/kitiki_cell.py,sha256=bSAXCHLEQ8-XCln_YIk2EyMwdFpl_N1wUlf1l3-t8Fs,8410
|
3
3
|
kitikiplot/core/kitiki_color_config.py,sha256=yOWnJNoYo1BN7UMGTFgc8zpMljBbNpFDLLq7JZF3ATE,11857
|
4
|
-
kitikiplot/core/kitikiplot.py,sha256=
|
4
|
+
kitikiplot/core/kitikiplot.py,sha256=z_ujN0pTurNwaixYBI9GK4z5p89yoF51SxK1ZD9fdYQ,21254
|
5
5
|
kitikiplot/ecology/linear.py,sha256=l1YVn7vcsKU-1g3SZ9kpOhHQiCRqP8U3LrWecy7_KFo,985
|
6
6
|
kitikiplot/genomics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
kitikiplot/genomics/grid.py,sha256=ohg5fBVezzxIOr2TlNPhND4PpBvzVG0eiSklTTbQp5s,1831
|
8
8
|
kitikiplot/genomics/linear.py,sha256=BNO-9xPVq6dsP8KuXx1fJRG_mLUf2orCM3h7etYqhBw,1280
|
9
|
-
kitikiplot-0.2.
|
10
|
-
kitikiplot-0.2.
|
11
|
-
kitikiplot-0.2.
|
12
|
-
kitikiplot-0.2.
|
9
|
+
kitikiplot-0.2.9.dist-info/LICENSE,sha256=14Bs-3ieyNjj9kCnVLv8CHRXEvQVM6P5uLe-pz7cBI0,1088
|
10
|
+
kitikiplot-0.2.9.dist-info/METADATA,sha256=u2KynFUNCePOPrgzrEyxOosXFDzK316dg2lJrEjJJ94,5445
|
11
|
+
kitikiplot-0.2.9.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
12
|
+
kitikiplot-0.2.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|