feat: allow PSD plots to show - #4116
Merged
Merged
Conversation
Contributor
|
Thanks for opening a Pull Request. If you want to perform a review write a comment saying: @ansys-reviewer-bot review |
Contributor
Reviewer's GuidePLOT_COMMANDS in mapdl_core.py is extended to include PSDG and SPGR, enabling PSD and spectral plots to be displayed by the core plotting logic. Class diagram for updated PLOT_COMMANDS in mapdl_core.pyclassDiagram
class mapdl_core {
+PLOT_COMMANDS: List[str]
...
}
note for mapdl_core "PLOT_COMMANDS now includes 'PSDG' and 'SPGR' for PSD and spectral plots."
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for Power Spectral Density (PSD) plots by including PSD-related commands in the PLOT_COMMANDS list. This change allows PSD plots to be properly displayed in PyMAPDL.
- Refactored PLOT_COMMANDS from inline list to multi-line format for better readability
- Added "PSDG" and "SPGR" commands to enable PSD plotting functionality
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4116 +/- ##
=======================================
Coverage 91.39% 91.39%
=======================================
Files 189 189
Lines 15667 15667
=======================================
Hits 14319 14319
Misses 1348 1348 🚀 New features to boost your workflow:
|
Collaborator
Author
|
@pyansys-ci-bot LGTM. |
germa89
enabled auto-merge (squash)
July 22, 2025 08:59
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.

Description
As the title.
Issue linked
Close #906
Checklist
draftif it is not ready to be reviewed yet.feat: adding new MAPDL command)Summary by Sourcery
New Features: