Skip to content

Commit 1d5f361

Browse files
authored
Minor fix label outline (#231)
* allow feature branches tests * set outline_alpha 0 * remove comment * remove comment
1 parent 0ac9f28 commit 1d5f361

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/spatialdata_plot/pl/render.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,9 @@ def _render_labels(
591591
elements = render_params.elements
592592
element_table_mapping = cast(dict[str, str], render_params.element_table_mapping)
593593

594+
if render_params.outline is False:
595+
render_params.outline_alpha = 0
596+
594597
sdata_filt = sdata.filter_by_coordinate_system(
595598
coordinate_system=coordinate_system,
596599
filter_tables=any(value is not None for value in element_table_mapping.values()),
@@ -642,7 +645,6 @@ def _render_labels(
642645
trans = mtransforms.Affine2D(matrix=affine_trans)
643646
trans_data = trans + ax.transData
644647

645-
# get color vector (categorical or continuous)
646648
color_source_vector, color_vector, categorical = _set_color_source_vec(
647649
sdata=sdata_filt,
648650
element=label,

0 commit comments

Comments
 (0)