9937d332ee11207ff2c01501cf3e1a8d5127fbb9,examples/misc/zorder_demo.py,,,#,33

Before Change


import numpy as np

// Fixing random state for reproducibility
np.random.seed(19680801)


x = np.random.random(20)
y = np.random.random(20)

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Lines on top of scatter

After Change


// Many functions that create a visible object accepts a ``zorder`` parameter.
// Alternatively, you can call ``set_order()`` on the created object later.

x = np.linspace(0, 7.5, 100)
plt.rcParams["lines.linewidth"] = 5
plt.figure()
plt.plot(x, np.sin(x), label="zorder=2", zorder=2)  // bottom
plt.plot(x, np.sin(x+0.5), label="zorder=3",  zorder=3)
plt.axhline(0, label="zorder=2.5", color="lightgrey", zorder=2.5)
plt.title("Custom order of elements")
l = plt.legend(loc="upper right")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: matplotlib/matplotlib
Commit Name: 9937d332ee11207ff2c01501cf3e1a8d5127fbb9
Time: 2019-12-02
Author: 2836374+timhoffm@users.noreply.github.com
File Name: examples/misc/zorder_demo.py
Class Name:
Method Name:


Project Name: matplotlib/matplotlib
Commit Name: 9937d332ee11207ff2c01501cf3e1a8d5127fbb9
Time: 2019-12-02
Author: 2836374+timhoffm@users.noreply.github.com
File Name: examples/misc/zorder_demo.py
Class Name:
Method Name:


Project Name: matplotlib/matplotlib
Commit Name: 754cfba75452535c201f9ac13aed091e6932cd84
Time: 2019-03-07
Author: anntzer.lee@gmail.com
File Name: examples/images_contours_and_fields/watermark_image.py
Class Name:
Method Name:


Project Name: matplotlib/matplotlib
Commit Name: 655b588bd9dff86993b4f5a24c44c81f2465b022
Time: 2019-03-08
Author: jklymak@gmail.com
File Name: examples/images_contours_and_fields/watermark_image.py
Class Name:
Method Name: