-
Notifications
You must be signed in to change notification settings - Fork 193
New function for Slice plotting added. Bug fixing in iso lines plotter. #818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The new function Plot Slice allows to plot a single dose slice in a flexible way: ct and dose cube are the only required parameters, but other optional, e.g. colorbar, legend, iso dose lines, line and text properties, can be specified. The bug fixing ensures that a 2D quantity is correctly called within the function.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #818 +/- ##
==========================================
+ Coverage 52.41% 52.51% +0.10%
==========================================
Files 306 307 +1
Lines 19477 19564 +87
==========================================
+ Hits 10209 10275 +66
- Misses 9268 9289 +21 ☔ View full report in Codecov by Sentry. |
|
Let's change the function in the following way:
Then please create some tests for calling the function. You can use one of the tiny test data sets to have all strutctures (ct, cst, resultGUI) available. |
Ct is the only required parameter. Dose cube is optional. Option for plotting the ct added.
… dose an optional variable. plotSliceWrapper modified to deprecated function and calling plotSlice instead.
| % | ||
| % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
|
|
||
| warning('Deprecation warning: matRad_plotSliceWrapper is deprecated. Using matRad_plot_Slice instead'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have a dedicated matRad_cfg.dispDeprecationWarning(...) for this
…ompareDose: works.
The matRad_plotSlice function allows to plot one dose slice in a flexible way: ct and dose cube are the only required parameters, while other optional parameters, e.g. cts, colorbar, iso lines, contours, line and text properties, etc., can be specified in the Name-Value pair format. The changes in the iso lines plotter ensure that 2D matrices are correctly passed to the function.