-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Add add_subplot_labels function (#181)
This adds `add_subplot_labels ` as a convenience function to add subplot labels. Instead of duplicating code for each axis possibly creating inconsistency. ```py axes[0].annotate("A", xy=(0.01, 0.89), xycoords="axes fraction", fontsize=16) axes[1].annotate("B", xy=(0.01, 0.89), xycoords="axes fraction", fontsize=16) axes[2].annotate("C", xy=(0.01, 0.89), xycoords="axes fraction", fontsize=16) ``` This function allows adding labels consistently for all axes ```py add_subplot_labels(axes, label_position=(0.01, 0.89), label_format_function="upper_case_letter") ``` ### Change summary - [✨ Added format_sub_plot_number_upper_case_letter function](46e826d) - [🩹📚 Fixed missing arg docstring for not_single_element_dims](3a13ae4) - [✨ Added ensure_axes_array function](f28ceb0) - [✨ Added add_subplot_labels function](a6edab8)
- Loading branch information
Showing
5 changed files
with
286 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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