@@ -95,6 +95,7 @@ def plot_circos_figure(
9595 node_colors : list [str ] | None = None ,
9696 node_space : float = 0.0 ,
9797 node_label_fontsize : int = 10 ,
98+ node_label_orientation : Literal ["vertical" , "horizontal" ] = "horizontal" ,
9899 vmin : float | None = None ,
99100 vmax : float | None = None ,
100101 cmap : str | None = None ,
@@ -114,6 +115,7 @@ def plot_circos_figure(
114115 node_colors (list[str] | None, optional): 脑区颜色列表,长度应与脑区数量一致。默认为None时自动生成颜色
115116 node_space (float, optional): 脑区间间隔角度(度)。默认为0.0
116117 node_label_fontsize (int, optional): 脑区标签字体大小。默认为10
118+ node_label_orientation (Literal["vertical", "horizontal"], optional): 脑区标签方向。默认为"horizontal"
117119 vmin (float | None, optional): 连接强度颜色映射的最小值。默认为None时根据数据自动确定
118120 vmax (float | None, optional): 连接强度颜色映射的最大值。默认为None时根据数据自动确定
119121 cmap (str | None, optional): 颜色映射表名称。默认为None时根据edge_color生成
@@ -190,7 +192,7 @@ def plot_circos_figure(
190192 for sector in circos .sectors :
191193 if sector .name .startswith ("_gap" ):
192194 continue
193- sector .text (sector .name , size = node_label_fontsize )
195+ sector .text (sector .name , size = node_label_fontsize , orientation = node_label_orientation )
194196 track = sector .add_track ((95 , 100 ))
195197 track .axis (fc = name2color [sector .name ])
196198
0 commit comments