998c64813b47ed9786818e6db9b5947dee167d0d,examples/lines_bars_and_markers/stairs_demo.py,,,#,16

Before Change


//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// *baseline* can take an array to allow for stacked histogram plots

A = np.tile([1, 2, 3], (3, 1)) * np.arange(1, 4).reshape(-1, 1)
A = np.vstack([np.zeros(3), A])

for i in range(3):
    plt.stairs(A[i+1], baseline=A[i], fill=True)

After Change



//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// *baseline* can take an array to allow for stacked histogram plots
A = [[0, 0, 0],
     [1, 2, 3],
     [2, 4, 6],
     [3, 6, 9]]

for i in range(len(A) - 1):
    plt.stairs(A[i+1], baseline=A[i], fill=True)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: matplotlib/matplotlib
Commit Name: 998c64813b47ed9786818e6db9b5947dee167d0d
Time: 2020-10-05
Author: novak5andrzej@gmail.com
File Name: examples/lines_bars_and_markers/stairs_demo.py
Class Name:
Method Name:


Project Name: NifTK/NiftyNet
Commit Name: ac2a794577087259da7200eefc792dbba40f8600
Time: 2017-11-02
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/contrib/sampler_pairwise/sampler_pairwise.py
Class Name: PairwiseSampler
Method Name: layer_op


Project Name: dmlc/gluon-cv
Commit Name: 9f0b230e1f59cb399e36210483bc075760b02eaf
Time: 2018-04-11
Author: cheungchih@gmail.com
File Name: gluonvision/model_zoo/ssd/ssd.py
Class Name: SSD
Method Name: hybrid_forward