Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4c5c950

Browse files
authored
Merge pull request #7285 from mherkazandjian/pre_post_mid_step_docfix
Added some fixes to the documentation of the functions
2 parents 0612ed5 + 50726ab commit 4c5c950

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/matplotlib/cbook.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2331,7 +2331,7 @@ def pts_to_prestep(x, *args):
23312331
23322332
Given a set of N points convert to 2 N -1 points
23332333
which when connected linearly give a step function
2334-
which changes values at the begining the intervals.
2334+
which changes values at the beginning of the intervals.
23352335
23362336
Parameters
23372337
----------
@@ -2371,7 +2371,7 @@ def pts_to_poststep(x, *args):
23712371
23722372
Given a set of N points convert to 2 N -1 points
23732373
which when connected linearly give a step function
2374-
which changes values at the begining the intervals.
2374+
which changes values at the end of the intervals.
23752375
23762376
Parameters
23772377
----------
@@ -2392,7 +2392,7 @@ def pts_to_poststep(x, *args):
23922392
23932393
Examples
23942394
--------
2395-
>> x_s, y1_s, y2_s = pts_to_prestep(x, y1, y2)
2395+
>> x_s, y1_s, y2_s = pts_to_poststep(x, y1, y2)
23962396
"""
23972397
# do normalization
23982398
vertices = _step_validation(x, *args)
@@ -2412,7 +2412,7 @@ def pts_to_midstep(x, *args):
24122412
24132413
Given a set of N points convert to 2 N -1 points
24142414
which when connected linearly give a step function
2415-
which changes values at the begining the intervals.
2415+
which changes values at the middle of the intervals.
24162416
24172417
Parameters
24182418
----------
@@ -2433,7 +2433,7 @@ def pts_to_midstep(x, *args):
24332433
24342434
Examples
24352435
--------
2436-
>> x_s, y1_s, y2_s = pts_to_prestep(x, y1, y2)
2436+
>> x_s, y1_s, y2_s = pts_to_midstep(x, y1, y2)
24372437
"""
24382438
# do normalization
24392439
vertices = _step_validation(x, *args)

0 commit comments

Comments
 (0)