kitikiplot 0.2.4__py3-none-any.whl → 0.2.5__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/kitikiplot.py +11 -0
- kitikiplot/ecology/linear.py +30 -0
- {kitikiplot-0.2.4.dist-info → kitikiplot-0.2.5.dist-info}/METADATA +1 -1
- {kitikiplot-0.2.4.dist-info → kitikiplot-0.2.5.dist-info}/RECORD +6 -5
- {kitikiplot-0.2.4.dist-info → kitikiplot-0.2.5.dist-info}/LICENSE +0 -0
- {kitikiplot-0.2.4.dist-info → kitikiplot-0.2.5.dist-info}/WHEEL +0 -0
kitikiplot/core/kitikiplot.py
CHANGED
@@ -77,6 +77,8 @@ class KitikiPlot(KitikiCell):
|
|
77
77
|
hmap: dict = {},
|
78
78
|
fallback_hatch: str = " ",
|
79
79
|
display_hatch: bool = False,
|
80
|
+
focus: Union[tuple, list] = None,
|
81
|
+
focus_alpha: float = 0.25,
|
80
82
|
transpose: bool = False,
|
81
83
|
xlabel: str = "Sliding Windows",
|
82
84
|
ylabel: str = "Frames",
|
@@ -143,6 +145,13 @@ class KitikiPlot(KitikiCell):
|
|
143
145
|
display_hatch : bool
|
144
146
|
- A flag indicating whether to display hatch patterns on cells.
|
145
147
|
- Default is False.
|
148
|
+
focus : tuple or list
|
149
|
+
- Index range to set focus/ highlight
|
150
|
+
- If focus is (i, j) then index values: i, i+1, i+2, ... j-1 are highlighted (0% transparent)
|
151
|
+
- Default is None
|
152
|
+
focus_alpha : float
|
153
|
+
- Transparency value to de-emphasize indices falling out of 'focus'
|
154
|
+
- Default is 0.25
|
146
155
|
transpose : bool (optional)
|
147
156
|
- A flag indicating whether to transpose the KitikiPlot.
|
148
157
|
- Default is False.
|
@@ -243,6 +252,8 @@ class KitikiPlot(KitikiCell):
|
|
243
252
|
|
244
253
|
for time_frame in range(self.cols):
|
245
254
|
|
255
|
+
kitiki_cell_kwargs["alpha"]= focus_alpha if focus != None and ( time_frame< focus[0] or time_frame>= focus[1] ) else 1
|
256
|
+
|
246
257
|
# Create each cell using specified parameters and add it to patches list
|
247
258
|
cell_gen= self.create( x= index,
|
248
259
|
y= time_frame,
|
@@ -0,0 +1,30 @@
|
|
1
|
+
"""
|
2
|
+
File Name: linear.py
|
3
|
+
Description: This file defines linear concentration plot
|
4
|
+
Author: Boddu Sri Pavan
|
5
|
+
Date Created: 25-05-2025
|
6
|
+
Last Modified: 25-05-2025
|
7
|
+
"""
|
8
|
+
|
9
|
+
from kitikiplot.core import KitikiPlot
|
10
|
+
|
11
|
+
def plot( data, focus, focus_alpha, xlabel, ylabel, xticks_values, ytick_prefix, cmap ):
|
12
|
+
|
13
|
+
ktk= KitikiPlot( data= data, stride= 1, window_length= len(data) )
|
14
|
+
|
15
|
+
ktk.plot(
|
16
|
+
figsize= (20, 1),
|
17
|
+
cell_width= 2,
|
18
|
+
cmap= cmap,
|
19
|
+
focus= focus,
|
20
|
+
focus_alpha= focus_alpha,
|
21
|
+
transpose= True,
|
22
|
+
xlabel= xlabel,
|
23
|
+
ylabel= ylabel,
|
24
|
+
display_xticks= True,
|
25
|
+
xticks_values= xticks_values,
|
26
|
+
ytick_prefix= ytick_prefix,
|
27
|
+
xticks_rotation= 90,
|
28
|
+
display_legend= True,
|
29
|
+
title= "Linear Plot: Ecology Data Visualization",
|
30
|
+
legend_kwargs= {"bbox_to_anchor": (1.01, 1), "loc":'upper left', "borderaxespad": 0.})
|
@@ -1,11 +1,12 @@
|
|
1
1
|
kitikiplot/core/__init__.py,sha256=7LpJy1V-PZ-JlfjsnRMjMXxTKaFt0JP0mj-A0SgS-sE,34
|
2
2
|
kitikiplot/core/kitiki_cell.py,sha256=9kn33x8-4Zp_fVdmp5NK-V7fm3hDXZOxwCNO3uDZqIo,7016
|
3
3
|
kitikiplot/core/kitiki_color_config.py,sha256=34KEE1CQJeMnB6gA-FgTHiIEP7rF1_17xv2XOakh1ds,11969
|
4
|
-
kitikiplot/core/kitikiplot.py,sha256=
|
4
|
+
kitikiplot/core/kitikiplot.py,sha256=jodoatSZZzThsJIYufXq45DLBVYIfO767BUaJCouX-o,20336
|
5
|
+
kitikiplot/ecology/linear.py,sha256=vliq3ngkAf_Nry_8AVRSCN_xEN7M3lLUGLCH0-4Vkk4,981
|
5
6
|
kitikiplot/genomics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
7
|
kitikiplot/genomics/grid.py,sha256=ohg5fBVezzxIOr2TlNPhND4PpBvzVG0eiSklTTbQp5s,1831
|
7
8
|
kitikiplot/genomics/linear.py,sha256=BNO-9xPVq6dsP8KuXx1fJRG_mLUf2orCM3h7etYqhBw,1280
|
8
|
-
kitikiplot-0.2.
|
9
|
-
kitikiplot-0.2.
|
10
|
-
kitikiplot-0.2.
|
11
|
-
kitikiplot-0.2.
|
9
|
+
kitikiplot-0.2.5.dist-info/LICENSE,sha256=14Bs-3ieyNjj9kCnVLv8CHRXEvQVM6P5uLe-pz7cBI0,1088
|
10
|
+
kitikiplot-0.2.5.dist-info/METADATA,sha256=lnMQVRDVKj5VpbGqyPqwaBxiSInpi5fQFAC82x4io2E,5322
|
11
|
+
kitikiplot-0.2.5.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
12
|
+
kitikiplot-0.2.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|