-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfig-errores.py
More file actions
executable file
·51 lines (47 loc) · 1.41 KB
/
Copy pathfig-errores.py
File metadata and controls
executable file
·51 lines (47 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# -*- coding: UTF-8 -*-
from matplotlib.pyplot import *
from numpy import *
datbabs = genfromtxt("datos-ba-bs.txt")
fig, eje = subplots(1,1)
x=datbabs[:,0]
y=datbabs[:,1]
eje.bar(x,y,align="center")
eje.set_xlabel("Variable aleatoria")
eje.set_ylabel(u"Número de ocurrencias")
eje.set_title(u"a) Bajo error aleatorio, bajo error sistemático")
eje.set_xlim([0,20])
eje.set_ylim([0,16])
fig.savefig("fig-ba-bs.pdf")
datbaas = genfromtxt("datos-ba-as.txt")
fig, eje = subplots(1,1)
x=datbaas[:,0]
y=datbaas[:,1]
eje.bar(x,y,align="center")
eje.set_xlabel("Variable aleatoria")
eje.set_ylabel(u"Número de ocurrencias")
eje.set_title(u"b) Bajo error aleatorio, alto error sistemático")
eje.set_xlim([0,20])
eje.set_ylim([0,16])
fig.savefig("fig-ba-as.pdf")
dataabs = genfromtxt("datos-aa-bs.txt")
fig, eje = subplots(1,1)
x=dataabs[:,0]
y=dataabs[:,1]
eje.bar(x,y,align="center")
eje.set_xlabel("Variable aleatoria")
eje.set_ylabel(u"Número de ocurrencias")
eje.set_title(u"c) Alto error aleatorio, bajo error sistemático")
eje.set_xlim([0,20])
eje.set_ylim([0,16])
fig.savefig("fig-aa-bs.pdf")
dataaas = genfromtxt("datos-aa-as.txt")
fig, eje = subplots(1,1)
x=dataaas[:,0]
y=dataaas[:,1]
eje.bar(x,y,align="center")
eje.set_xlabel("Variable aleatoria")
eje.set_ylabel(u"Número de ocurrencias")
eje.set_title(u"d) Alto error aleatorio, alto error sistemático")
eje.set_xlim([0,20])
eje.set_ylim([0,16])
fig.savefig("fig-aa-as.pdf")