Skip to content

Added feature / new keyword to round any numbers in title: title_round#332

Open
abhimat wants to merge 6 commits into
dfm:mainfrom
abhimat:main
Open

Added feature / new keyword to round any numbers in title: title_round#332
abhimat wants to merge 6 commits into
dfm:mainfrom
abhimat:main

Conversation

@abhimat

@abhimat abhimat commented Jun 24, 2026

Copy link
Copy Markdown

Added a new feature to round numbers in title. Useful beyond the existing title_fmt keyword since Python format strings can only round after a decimal point. When needing to round any or all dimensions to a specific number of places left of the decimal point, the new title_round keyword can be used. For example, if wanting to round all quantities in the titles to the hundreds place, can set title_round=2.

The feature is off by default, and can be used in conjunction with the title_fmt keyword. I have also added a docstring for this new keyword to describe how to use title_round.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant