Skip to content

Commit 653e532

Browse files
committed
Cleanup and move polar_bar demo
1 parent 299588e commit 653e532

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
"""
2+
Demo of bar plot on a polar axis.
3+
"""
4+
import numpy as np
5+
import matplotlib.pyplot as plt
6+
7+
8+
N = 20
9+
theta = np.linspace(0.0, 2 * np.pi, N, endpoint=False)
10+
radii = 10 * np.random.rand(N)
11+
width = np.pi / 4 * np.random.rand(N)
12+
13+
ax = plt.subplot(111, polar=True)
14+
bars = ax.bar(theta, radii, width=width, bottom=0.0)
15+
16+
# Use custom colors and opacity
17+
for r, bar in zip(radii, bars):
18+
bar.set_facecolor(plt.cm.jet(r / 10.))
19+
bar.set_alpha(0.5)
20+
21+
plt.show()

examples/pylab_examples/polar_bar.py

Lines changed: 0 additions & 21 deletions
This file was deleted.

examples/tests/backend_driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373

7474
files['pie'] = [
7575
'pie_demo.py',
76+
'polar_bar_demo.py',
7677
]
7778

7879
files['text_labels_and_annotations'] = [
@@ -207,7 +208,6 @@
207208
'pcolor_small.py',
208209
'pie_demo2.py',
209210
'plotfile_demo.py',
210-
'polar_bar.py',
211211
'polar_demo.py',
212212
'polar_legend.py',
213213
'polar_scatter.py',

0 commit comments

Comments
 (0)