From 3d9e1e6dd1f8b67e1e0ff495964c8ae9d67b9eab Mon Sep 17 00:00:00 2001 From: RitaCh Date: Tue, 28 Jul 2026 16:04:16 -0700 Subject: [PATCH 1/3] Fixed sparse and marker-overlapping labels on Volcano and Relative Abundance plots * Changed the label sampler cap from a product to a min so the two density caps act as hard limits instead of compounding * Added a post-annealer pass that hides labels overlapping a kept label or covering another point's marker * Fixed hit-testing to skip invisible labels so hidden labels no longer block mouse-over on visible ones See ai/todos/active/TODO-20260521_labelSamplingFix.md Co-Authored-By: Claude --- .../Shared/zedgraph/ZedGraph/GraphObjList.cs | 6 +- .../Shared/zedgraph/ZedGraph/LabelLayout.cs | 236 ++++++++++++++++-- .../Controls/Graphs/LabelLayoutRunner.cs | 8 +- .../Skyline/TestFunctional/LabelLayoutTest.cs | 6 +- 4 files changed, 234 insertions(+), 22 deletions(-) diff --git a/pwiz_tools/Shared/zedgraph/ZedGraph/GraphObjList.cs b/pwiz_tools/Shared/zedgraph/ZedGraph/GraphObjList.cs index dcf99190aa4..8d6550be303 100644 --- a/pwiz_tools/Shared/zedgraph/ZedGraph/GraphObjList.cs +++ b/pwiz_tools/Shared/zedgraph/ZedGraph/GraphObjList.cs @@ -1,6 +1,6 @@ //============================================================================ //ZedGraph Class Library - A Flexible Line Graph/Bar Graph Library in C# -//Copyright © 2004 John Champion +//Copyright � 2004 John Champion // //This library is free software; you can redistribute it and/or //modify it under the terms of the GNU Lesser General Public @@ -289,7 +289,9 @@ public bool FindPoint( PointF mousePt, PaneBase pane, Graphics g, float scaleFac // the same ZOrder value. for ( int i=0; i