8000 Mostly fix docstring first check · matplotlib/matplotlib@8f3c732 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8f3c732

Browse files
committed
Mostly fix docstring first check
_constrained_layout.py still has double module docstring
1 parent 6e8cbb7 commit 8f3c732

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

examples/images_contours_and_fields/colormap_normalizations_symlognorm.py

Lines changed: 5 additions & 8 deletions
15
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,18 @@
55
66
Demonstration of using norm to map colormaps onto data in non-linear ways.
77
8+
Here we plot data that has two humps, one negative and one positive.
9+
The positive hump has 5-times the amplitude of the negative.
10+
With a linear scale you cannot see detail in the negative hump.
11+
So we logarithmically scale the positive and negative data separately.
12+
813
.. redirect-from:: /gallery/userdemo/colormap_normalization_symlognorm
914
"""
10

1116
import numpy as np
1217
import matplotlib.pyplot as plt
1318
import matplotlib.colors as colors
1419

15-
"""
16-
SymLogNorm: two humps, one negative and one positive, The positive
17-
with 5-times the amplitude. Linearly, you cannot see detail in the
18-
negative hump. Here we logarithmically scale the positive and
19-
negative data separately.
20-
21-
Note that colorbar labels do not come out looking very good.
22-
"""
2320

2421
N = 100
2522
X, Y = np.mgrid[-3:3:complex(0, N), -2:2:complex(0, N)]

lib/matplotlib/backend_tools.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -989,12 +989,10 @@ def trigger(self, *args, **kwargs):
989989
'help': ToolHelpBase,
990990
'copy': ToolCopyToClipboardBase,
991991
}
992-
"""Default tools"""
993992

994993
default_toolbar_tools = [['navigation', ['home', 'back', 'forward']],
995994
['zoompan', ['pan', 'zoom', 'subplots']],
996995
['io', ['save', 'help']]]
997-
"""Default tools in the toolbar"""
998996

999997

1000998
def add_tools_to_manager(toolmanager, tools=default_tools):

lib/matplotlib/dates.py

Lines changed: 2 additions & 3 deletions
< 801D td data-grid-cell-id="diff-31219318ec1480e3b32a4dc999aeb48c78f14cc19a24b2c709c00ae1cbd508b2-210-210-1" data-selected="false" role="gridcell" style="background-color:var(--bgColor-default);text-align:center" tabindex="-1" valign="top" class="focusable-grid-cell diff-line-number position-relative diff-line-number-neutral left-side">210
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,8 @@ def _get_rc_timezone():
210
return dateutil.tz.gettz(s)
211211

212212

213-
"""
214-
Time-related constants.
215-
"""
213+
# Time-related constants.
214+
216215
EPOCH_OFFSET = float(datetime.datetime(1970, 1, 1).toordinal())
217216
# EPOCH_OFFSET is not used by matplotlib
218217
JULIAN_OFFSET = 1721424.5 # Julian date at 0000-12-31

0 commit comments

Comments
 (0)
0