Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c3f87d4

Browse filesBrowse files
committed
Simplify Tick and Axis initialization.
Instead of delegating to a bunch of private methods (_get_text1, _get_text2, _get_tick1line, _get_tick2line, _get_gridline, _get_label, _get_offset_text) to construct the sub-artists (lines, labels, etc.) of Ticks and Axises, just set up some default instances in the base class constructor and make additional customizations in the subclass constructor. A quick grepping suggests (no guarantees) that neither cartopy nor wcsaxes override these private methods (an API where third-party subclasses are encouraged to override private methods is a bit awkward...) and in any case the approach of customizing the sub-artists in the subclass' `__init__` works with all versions of Matplotlib.
1 parent fc413b3 commit c3f87d4
Copy full SHA for c3f87d4

File tree

Expand file treeCollapse file tree

3 files changed

+196
-302
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+196
-302
lines changed

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.