Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

ENH : stepfill between#4433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
efiring merged 9 commits intomatplotlib:masterfromtacaswell:enh_stepfill_between
Jul 22, 2015
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
MNT : rename step_where -> step in fill_beteween
  • Loading branch information
@tacaswell
tacaswell committedJul 16, 2015
commit8c9398f70c66437e958186d49454682f31fa0ae5
16 changes: 8 additions & 8 deletionslib/matplotlib/axes/_axes.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -4428,7 +4428,7 @@ def fill(self, *args, **kwargs):

@docstring.dedent_interpd
def fill_between(self, x, y1, y2=0, where=None, interpolate=False,
step_where=None,
step=None,
**kwargs):
"""
Make filled polygons between two curves.
Expand DownExpand Up@@ -4460,7 +4460,7 @@ def fill_between(self, x, y1, y2=0, where=None, interpolate=False,
end points of the filled region will only occur on explicit
values in the *x* array.

step_where : {'pre', 'post', 'mid'}, optional
step : {'pre', 'post', 'mid'}, optional
If not None, fill with step logic.


Expand DownExpand Up@@ -4517,8 +4517,8 @@ def fill_between(self, x, y1, y2=0, where=None, interpolate=False,
xslice = x[ind0:ind1]
y1slice = y1[ind0:ind1]
y2slice = y2[ind0:ind1]
ifstep_where is not None:
step_func = STEP_LOOKUP_MAP[step_where]
ifstep is not None:
step_func = STEP_LOOKUP_MAP[step]
xslice, y1slice, y2slice = step_func(xslice, y1slice, y2slice)

if not len(xslice):
Expand DownExpand Up@@ -4581,7 +4581,7 @@ def get_interp_point(ind):

@docstring.dedent_interpd
def fill_betweenx(self, y, x1, x2=0, where=None,
step_where=None, **kwargs):
step=None, **kwargs):
"""
Make filled polygons between two horizontal curves.

Expand DownExpand Up@@ -4609,7 +4609,7 @@ def fill_betweenx(self, y, x1, x2=0, where=None,
it is a N length numpy boolean array and the fill will
only happen over the regions where ``where==True``

step_where : {'pre', 'post', 'mid'}, optional
step : {'pre', 'post', 'mid'}, optional
If not None, fill with step logic.

Notes
Expand DownExpand Up@@ -4665,8 +4665,8 @@ def fill_betweenx(self, y, x1, x2=0, where=None,
yslice = y[ind0:ind1]
x1slice = x1[ind0:ind1]
x2slice = x2[ind0:ind1]
ifstep_where is not None:
step_func = STEP_LOOKUP_MAP[step_where]
ifstep is not None:
step_func = STEP_LOOKUP_MAP[step]
yslice, x1slice, x2slice = step_func(yslice, x1slice, x2slice)

if not len(yslice):
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp