Develop v2.10.0#67
Merged
Merged
Conversation
* [FIX] Sort ymin/ymax in range label to ensure correct inequality * [FIX] Use abs() for delta-y to prevent negative range width
…eItem (#57) Compute the snapshot "Original size" from pixel coordinates instead of axis units, via the new helper compute_image_items_original_size(). This fixes: - negative dimensions when X or Y axis is reversed - wrong size for XYImageItem (and any non-uniformly scaled item) - ValueError raised by the resize dialog on negative selections Also harden compute_trimageitems_original_size() against negative source sizes, and add unit tests covering all reported cases.
…than plotted images in ImageItem and XYImageItem Ref. #57
Follow-up to the initial #57 fix Co-authored-by: Copilot <copilot@github.com>
Closes #58 Co-authored-by: Copilot <copilot@github.com>
Closes #59 Move the Z-axis logarithmic scale API (`get_zaxis_log_state` / `set_zaxis_log_state`, along with `_log_data`, `_lin_lut_range` and `_is_zaxis_log` attributes) from `ImageItem` up to `BaseImageItem`, so that all image item types (`XYImageItem`, `MaskedImageItem`, `MaskedXYImageItem`, `TrImageItem`, `RGBImageItem`) inherit it. Update `XYImageItem.draw_image` and `TrImageItem.draw_image` to use `_log_data` when log mode is active, like `ImageItem` already did. Loosen the `ZAxisLogTool` filter from `isinstance(item, ImageItem)` to `isinstance(item, BaseImageItem)`. The existing `hasattr` check keeps the filter safe for any custom item. Previously, the tool was always disabled when the plot only contained `XYImageItem`-derived items (e.g. `MaskedXYImageItem` used by DataLab). Co-authored-by: Copilot <copilot@github.com>
…nge in log mode Assisted-by: Claude Opus 4.7
Update cached log data in ImageItem.set_data()
fix/55-deltacursory
# Conflicts: # plotpy/locale/fr/LC_MESSAGES/plotpy.po
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.