Download this file
22 lines (17 with data), 436 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 | from matplotlib.matlab import *
t = arange(0, 2.1, 0.1)
a = subplot(111)
plot(t, t**2, '-')
title('A really silly plot')
xaxis, yaxis = a.get_xaxis(), a.get_yaxis()
xgrid = xaxis.get_gridlines()
print len(xgrid)
for line in xgrid:
line.set_color('r')
line.set_linewidth(3)
labels = xaxis.get_ticklabels()
for label in labels:
label.set_fontname('Courier')
label.set_fontsize(12)
label.set_color('y')
show()
|
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.