Conversation
- added DualScaleBar class, which plots two aligned scale bars for both the x and y axes, and corresponding tests
- added Time dimension to support time-series data (representing time as [si_prefix]s, not minutes/hours/etc.), and created corresponding tests
- added the option to place a ScaleBar at a specific coordinate by passing an (x, y) coordinate to location, and updated tests and documentation accordingly
- updated documentation to describe how to set dx when plotting non-image data
- added new SI prefixes (as of 2022-11-22): ronna (R, 10^27), quetta (Q, 10^30), ronto (r, 10^−27) and quecto (q, 10^−30).
- fixed typo at scalebar(340): initialize -> initialiazed
- modified ValueError at scalebar(563) to be more descriptive: "Invalid unit ({unit}) with dimension" -> "Invalid unit ({units}) with dimension ({self._dimension.__class__.__name__})")
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.
Thank you for your package, @ppinard! I use it extensively in my own work, and over the last few weeks have been making some changes to it for my own use, which often involves plotting time-series data with scale bars in both the x and y axes. I believe some of these could be useful to other users, so I wanted to share them with you for your consideration. Please see a full changelog below. I look forward to hearing your thoughts.