kitikiplot 0.2.7__py3-none-any.whl → 0.2.8__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.
@@ -180,6 +180,18 @@ class KitikiCell(ColorConfig):
180
180
  dim_y= window_gap*(self.rows- x+1)+ cell_width*(self.rows- x+1)
181
181
 
182
182
  rect_dim= (dim_x, dim_y)
183
+
184
+ if focus != None:
185
+
186
+ align_factor= x*self.stride*cell_height
187
+
188
+ min_dim_x= cell_height + align_factor
189
+ max_dim_x= cell_height*(self.cols)+ align_factor
190
+
191
+ if (min_dim_x <= dim_x) and (dim_x <= max_dim_x):
192
+ kitiki_cell_kwargs["alpha"]= 1
193
+ else:
194
+ kitiki_cell_kwargs["alpha"]= focus_alpha
183
195
 
184
196
 
185
197
  # Clean up all local variables for efficient memory management
@@ -248,7 +248,6 @@ class KitikiPlot(KitikiCell):
248
248
 
249
249
  if focus != None:
250
250
  col_range= self.rows + self.window_length - 1
251
- print( "COLUMN Range: ", col_range )
252
251
  else:
253
252
  col_range= self.cols
254
253
 
@@ -261,8 +260,10 @@ class KitikiPlot(KitikiCell):
261
260
  each_sample= data[ index ]
262
261
 
263
262
  for time_frame in range( col_range ):
263
+
264
+ if type(focus) != bool:
264
265
 
265
- kitiki_cell_kwargs["alpha"]= focus_alpha if focus != None and ( time_frame< focus[0] or time_frame>= focus[1] ) else 1
266
+ kitiki_cell_kwargs["alpha"]= focus_alpha if focus != None and ( time_frame< focus[0] or time_frame>= focus[1] ) else 1
266
267
 
267
268
  # Create each cell using specified parameters and add it to patches list
268
269
  cell_gen= self.create( x= index,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: kitikiplot
3
- Version: 0.2.7
3
+ Version: 0.2.8
4
4
  Summary: A Python library to visualize categorical sliding window data.
5
5
  License: MIT
6
6
  Keywords: sliding window,sequential,time-series,genome,categorical data
@@ -1,12 +1,12 @@
1
1
  kitikiplot/core/__init__.py,sha256=7LpJy1V-PZ-JlfjsnRMjMXxTKaFt0JP0mj-A0SgS-sE,34
2
- kitikiplot/core/kitiki_cell.py,sha256=mzmjUMdLdCzNg-8NYZ9M8sDuITOMdwyZkT4xKD-pQlc,7925
2
+ kitikiplot/core/kitiki_cell.py,sha256=rWX9DHYMmV1vQEhikWmbgFK5aVnbxZmxSyO0Ra43tn8,8365
3
3
  kitikiplot/core/kitiki_color_config.py,sha256=yOWnJNoYo1BN7UMGTFgc8zpMljBbNpFDLLq7JZF3ATE,11857
4
- kitikiplot/core/kitikiplot.py,sha256=dkF49TeO9jCQnXEXpjL-la-AvnqvlChVsar3tkZ6yNQ,20822
4
+ kitikiplot/core/kitikiplot.py,sha256=2wCeMipQEEmpnm4uRviwO1JnthdV63B1ic5wFk6gWNI,20835
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.7.dist-info/LICENSE,sha256=14Bs-3ieyNjj9kCnVLv8CHRXEvQVM6P5uLe-pz7cBI0,1088
10
- kitikiplot-0.2.7.dist-info/METADATA,sha256=FuExeMvz44Olbk6Oe_-i1GRy3_L94qfNQ3EWGQ02MXs,5445
11
- kitikiplot-0.2.7.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
12
- kitikiplot-0.2.7.dist-info/RECORD,,
9
+ kitikiplot-0.2.8.dist-info/LICENSE,sha256=14Bs-3ieyNjj9kCnVLv8CHRXEvQVM6P5uLe-pz7cBI0,1088
10
+ kitikiplot-0.2.8.dist-info/METADATA,sha256=bHnM3JhlE1LBgc4VdsfNbDLoVNc47QCUGElvTzvIDwU,5445
11
+ kitikiplot-0.2.8.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
12
+ kitikiplot-0.2.8.dist-info/RECORD,,