diff --git a/changelog.md b/changelog.md index 73cca0f5..ff94d3fd 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,10 @@ # Changelog -Last change: 11-JUN-2026 CEST +Last change: 18-JUN-2026 CEST + +## 0.10.3 +- Fixed total pick area in the .yamls for circular and square picks (Render) +- Fixed plotting x and y in "Select picks (trace) in Render" ## 0.10.2 - Rotations use quaterions for unambiguous workflow, fixing bugs [#673](https://github.com/jungmannlab/picasso/issues/673), [#674](https://github.com/jungmannlab/picasso/issues/674) and [#675](https://github.com/jungmannlab/picasso/issues/675) diff --git a/picasso/gui/render.py b/picasso/gui/render.py index b985aded..ca4ef87c 100644 --- a/picasso/gui/render.py +++ b/picasso/gui/render.py @@ -9219,8 +9219,10 @@ def select_traces(self) -> None: + "." ) if locs_.size: - fig.axes[0].set_ylim(yvec[yvec > 0].min(), yvec.max()) - fig.axes[1].set_ylim(yvec[yvec > 0].min(), yvec.max()) + for ax, col in zip(fig.axes[:2], ("x", "y")): + lo, hi = locs_[col].min(), locs_[col].max() + if lo != hi: + ax.set_ylim(lo, hi) plt.setp(fig.axes[0].get_xticklabels(), visible=False) plt.setp(fig.axes[1].get_xticklabels(), visible=False) @@ -10601,11 +10603,6 @@ def save_picked_locs(self, path: str, channel: int) -> None: # save picked locs with .yaml if locs is not None: pick_info = self._build_base_pick_info() - # correct for the total area for certain shapes - if self._pick_shape in ["Circle", "Square"]: - pick_info["Area (um^2)"] = pick_info["Area (um^2)"] * len( - self._picks - ) self._add_shape_specific_info(pick_info) io.save_locs(path, locs, self.infos[channel] + [pick_info]) diff --git a/picasso/version.py b/picasso/version.py index 17c1a626..b2385cb4 100644 --- a/picasso/version.py +++ b/picasso/version.py @@ -1 +1 @@ -__version__ = "0.10.2" +__version__ = "0.10.3"