Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d501818 commit 0c8afa5Copy full SHA for 0c8afa5
1 file changed
examples/pylab_examples/log_bar.py
@@ -6,7 +6,7 @@
6
plt.xlabel("FOO")
7
plt.ylabel("FOO")
8
plt.title("Testing")
9
-plt.gca().set_yscale('log')
+plt.yscale('log')
10
11
dim = len(data[0])
12
w = 0.75
@@ -16,7 +16,7 @@
16
for i in range(len(data[0])):
17
y = [d[i] for d in data]
18
b = plt.bar(x + i * dimw, y, dimw, bottom=0.001)
19
-plt.gca().set_xticks(x + w / 2)
20
-plt.gca().set_ylim((0.001, 1000))
+plt.xticks(x + w / 2)
+plt.ylim((0.001, 1000))
21
22
plt.show()
0 commit comments