Skip to content

Commit cb6ad4c

Browse files
FIX: color not working properly for traces in single plot (#6020)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 70850e5 commit cb6ad4c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/changelog.d/6020.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
color not working properly for traces in single plot

src/ansys/aedt/core/visualization/post/compliance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -790,9 +790,9 @@ def _create_aedt_reports(self, pdf_report):
790790
if isinstance(local_config["expressions"], dict):
791791
if trace in legacy_local_config["expressions"]:
792792
local_config["expressions"] = {trace: legacy_local_config["expressions"][trace]}
793-
elif len(legacy_local_config["expressions"]) == 1:
793+
elif len(legacy_local_config["expressions"]) > 0:
794794
local_config["expressions"] = {
795-
trace: list(legacy_local_config["expressions"].values())[-1]
795+
trace: list(legacy_local_config["expressions"].values())[0]
796796
}
797797
else:
798798
local_config["expressions"] = {trace: {}}

0 commit comments

Comments
 (0)