Skip to content

🎨 Enhance readability of CS current plots and improve label forma… - #4556

Open
chris-ashe wants to merge 1 commit into
mainfrom
4510-make-plot-labels-easier-to-read
Open

🎨 Enhance readability of CS current plots and improve label forma…#4556
chris-ashe wants to merge 1 commit into
mainfrom
4510-make-plot-labels-easier-to-read

Conversation

@chris-ashe

@chris-ashe chris-ashe commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

Description

Checklist

I confirm that I have completed the following checks:

  • My changes follow the PROCESS style guide
  • I have justified any large differences in the regression tests caused by this pull request in the comments.
  • I have added new tests where appropriate for the changes I have made.
  • If I have had to change any existing unit or integration tests, I have justified this change in the pull request comments.
  • If I have made documentation changes, I have checked they render correctly.
  • I have added documentation for my change, if appropriate.

@chris-ashe
chris-ashe requested a review from a team as a code owner August 26, 2026 08:51
@chris-ashe chris-ashe linked an issue Aug 26, 2026 that may be closed by this pull request
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 5.55556% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 49.46%. Comparing base (a9358cc) to head (61f749a).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
process/core/io/plot/summary.py 5.55% 17 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4556   +/-   ##
=======================================
  Coverage   49.46%   49.46%           
=======================================
  Files         150      150           
  Lines       30069    30079   +10     
=======================================
+ Hits        14874    14879    +5     
- Misses      15195    15200    +5     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@clmould clmould left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, the 'System power over time' plot still has some overlapping labels, can this be fixed please as both are mentioned in the original issue

Image

axis.set_ylabel("Current [A]", fontsize=12)

# Add a title
axis.set_title("Current Profiles Over Time", fontsize=14)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this title be added back please, and some axis titles if possible/appropriate for each plot

], # Exclude the last label as it corresponds to the dwell period
rotation=60,
)
# Stagger adjacent labels onto two rows so closely spaced pulse events remain

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure the new x axis labels look any different?
Old on left, new on right:

Image

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current plot now has a linear scale - OK.

@mkovari mkovari Aug 28, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have thought the power plot should also be plotted using a linear scale. @chris-ashe

axis.grid(True, linestyle="--", alpha=0.6)
axis.axhline(0, color="black", linewidth=2)
axis.tick_params(axis="x", labelbottom=False)
axis.set_ylabel("Current [A]", fontsize=12)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could a time label be added so both x axes have that ?

t_plant_pulse_dwell=mfile.get("t_plant_pulse_dwell", scan=scan),
)

try:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is causing a pre-commit failure, could you fix that please?

secax.tick_params(axis="x", which="major")

# Add axis labels
axis.set_xlabel("Time [s]", fontsize=12)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be misaligned with the x axis, could that be fixed please

Image

@clmould
clmould requested a review from mkovari August 28, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make plot labels easier to read

4 participants