f872c37f1699d796c4bc535d6f4f5c7c32711403,examples/api/barchart.py,,,#,11

Before Change


import numpy as np
import matplotlib.pyplot as plt

N = 5
men_means = (20, 35, 30, 35, 27)
men_std = (2, 3, 4, 1, 2)

ind = np.arange(N)  // the x locations for the groups
width = 0.35       // the width of the bars

fig, ax = plt.subplots()
rects1 = ax.bar(ind, men_means, width, color="r", yerr=men_std)

women_means = (25, 32, 34, 20, 25)
women_std = (3, 5, 2, 3, 3)
rects2 = ax.bar(ind + width, women_means, width, color="y", yerr=women_std)

// add some text for labels, title and axes ticks
ax.set_ylabel("Scores")
ax.set_title("Scores by group and gender")

After Change


import matplotlib.pyplot as plt

men_means, men_std = (20, 35, 30, 35, 27), (2, 3, 4, 1, 2)
women_means, women_std = (25, 32, 34, 20, 25), (3, 5, 2, 3, 3)

ind = np.arange(len(men_means))  // the x locations for the groups
width = 0.35  // the width of the bars
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: matplotlib/matplotlib
Commit Name: f872c37f1699d796c4bc535d6f4f5c7c32711403
Time: 2017-12-01
Author: vincent.adrien@gmail.com
File Name: examples/api/barchart.py
Class Name:
Method Name:


Project Name: DistrictDataLabs/yellowbrick
Commit Name: 5aafd55460a3a00204f31837983afa67faa1c7be
Time: 2019-06-11
Author: 43993586+naresh-bachwani@users.noreply.github.com
File Name: yellowbrick/classifier/class_prediction_error.py
Class Name: ClassPredictionError
Method Name: draw


Project Name: dmnfarrell/pandastable
Commit Name: 8886a3a02b5027e2b41f7f17253688b5b76779d1
Time: 2014-02-23
Author: farrell.damien@gmail.com@c7c09e87-b3be-f776-313c-63292bcc8aec
File Name: plotting.py
Class Name: PlotViewer
Method Name: plot3D