Repository navigation
feat: MATLAB-style figures with typeset symbols - #60
Merged
Merged
Conversation
Every figure now uses one MATLAB-style look: MATLAB's default line colours in MATLAB's order, a Helvetica/Arial face, a closed box with inward ticks on all sides, no grid and a square opaque legend. Labels carry true Greek letters and sub- and superscripts in the same face, with numerals upright; style.LABELS holds the standard axis labels. The tutorial and how-to scripts apply the style (their figures were plain matplotlib defaults) and are regenerated; the examples use the same labels. The user guide documents the figures and the style. Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
The docs figures are saved at 200 dpi: at the style's 300 dpi two of them exceeded the docs tests' 200 kB cap. The micro prefix is the upright text µ, not an italic \mu; an axis offset reads x10^-8 as in MATLAB; the e1 subscript is upright; tutorial 01's curvature axis has five ticks, which no longer run together. Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
The rewritten style tests add one analytical_sanity test. Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
Owner
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Merged
SMI-Lab-Inha
added a commit
that referenced
this pull request
Nov 23, 2026
Every figure now uses one MATLAB-style look: MATLAB's default line colours in MATLAB's order, a Helvetica/Arial face, a closed box with inward ticks on all sides, no grid and a square opaque legend. Labels carry true Greek letters and sub- and superscripts in the same face, with numerals upright; style.LABELS holds the standard axis labels. The tutorial and how-to scripts apply the style (their figures were plain matplotlib defaults) and are regenerated; the examples use the same labels. The user guide documents the figures and the style. The docs figures are saved at 200 dpi, under the docs tests' size cap; the micro prefix is upright and axis offsets read x10^-8. Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
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.
Summary
CableXSec's figures used plain matplotlib defaults. Symbols were also typed as plain text (
kappa,sigma_a,m^-1).This PR gives every figure one MATLAB-style look. Labels now carry typeset Greek letters and sub- and superscripts.
Style (
cablexsec.plotting.style)#0072BD,#D95319,#EDB120,#7E2F8E,#77AC30,#4DBEEE,#A2142F\mathrm)style.MATLAB_ORDER: the default line colours, in MATLAB's order.style.COLORS: named MATLAB hues, plus black and grey.style.LABELS: the standard axis labels. For example,Curvature $\kappa$ [m$^{\mathrm{-1}}$], and the moment, tension, stress, damage and slip labels.mkappa,capacity,fatigue,thermal,stressandcross_section.Docs and examples
apply_style()and useLABELSandCOLORS. Their eight figures are regenerated.rig_test_gauge_planuse the same labels.doc/user_guide.md: new section 2.8, "Figures", covering the plotting functions and the style.CHANGELOG.md: an entry under Unreleased/Changed.Tests
tests/test_plotting_style.py, rewritten to the new specification: