Skip to content

Add option for aligning label in index direction in TextPlot1D#430

Merged
corranwebster merged 1 commit into
masterfrom
enh/center-labels-textplot1d
May 13, 2019
Merged

Add option for aligning label in index direction in TextPlot1D#430
corranwebster merged 1 commit into
masterfrom
enh/center-labels-textplot1d

Conversation

@jenniportman
Copy link
Copy Markdown
Contributor

This is a nice little feature that I implemented for another project and wanted to port here as well. This PR adds options to align the label in the index direction (either left/center/right or top/center/bottom depending on orientation). There were already options for this sort of thing in the non-index direction but there was no way to do it in the index direction.

Screenshot with toy plot showing the new possible positioning: left/center/right or top/center/bottom (previously the label was always placed where the blue letters are)
screenshot 2019-01-10 at 11 59 38

@corranwebster
Copy link
Copy Markdown
Contributor

This looks like a useful addition. This plot has a test suite, so tests would be useful, even if they are just smoke tests that plot with each of the settings and check that the plot isn't all white.

@corranwebster corranwebster merged commit eea39c5 into master May 13, 2019
@corranwebster corranwebster deleted the enh/center-labels-textplot1d branch May 13, 2019 12:13
@jenniportman
Copy link
Copy Markdown
Contributor Author

Thanks for merging this. I am sorry to admit I completely forgot about this PR and the tests you asked me to write 😞

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.

2 participants