Skip to content

Commit

Permalink
legend color
Browse files Browse the repository at this point in the history
  • Loading branch information
Athanaseus committed Oct 22, 2024
1 parent 660f5b1 commit 83acfa1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion breizorro/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def display(imagename, mask_image, outcatalog, source_list):
p = figure(title="Breizorro Source Catalog",
x_axis_label="RA (deg)",
y_axis_label="DEC (deg)",
y_range=(min(y_coords)-0.1, max(y_coords)+0.1), # Add margin
y_range=(min(y_coords), max(y_coords)),
match_aspect=True,
tooltips=[("x", "$x"), ("y", "$y"), ("value", "@image")])
# Plot the image
Expand All @@ -149,6 +149,7 @@ def display(imagename, mask_image, outcatalog, source_list):
p.add_tools(hover)
# Enable legend click to hide/show scatter points
p.legend.click_policy = "hide"
p.legend.label_text_color = "white" # Set the legend text color to white
p.x_range.flipped = True
p.title.align = "center"
p.add_layout(labels)
Expand Down

0 comments on commit 83acfa1

Please sign in to comment.