-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathppfigpir.tex
More file actions
139 lines (139 loc) · 2.58 KB
/
ppfigpir.tex
File metadata and controls
139 lines (139 loc) · 2.58 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
% fig piracy
\begin{filecontents}{ppfigpirdata.dat}
% incidents from /incidents in Bacalar only (bacl) vs mouth of Bay (mouth) vs Bay Isl only (isl) vs elsewhere/unknown in Bay (bay) - make sure bay value *excludes* nobz value to stack bars in plot
yr bay bacl mouth isl
1601 2 0 0 0
1602 0 0 0 0
1603 0 0 1 1
1604 0 0 2 0
1605 0 0 0 0
1606 0 0 4 0
1607 0 0 4 1
1608 0 0 0 0
1609 0 0 0 0
1610 0 0 1 0
1611 0 0 0 0
1612 0 0 0 0
1613 0 0 0 1
1614 0 0 0 0
1615 0 0 0 0
1616 0 0 0 0
1617 0 1 0 0
1618 0 0 1 0
1619 0 0 0 0
1620 0 0 0 0
1621 0 0 0 0
1622 0 0 0 0
1623 0 0 0 0
1624 0 0 0 0
1625 0 0 0 0
1626 0 0 0 0
1627 0 0 0 0
1628 0 0 0 0
1629 0 0 0 0
1630 1 0 0 1
1631 0 0 1 0
1632 0 0 0 1
1633 1 0 0 1
1634 1 0 0 0
1635 0 0 0 0
1636 1 0 0 2
1637 0 0 0 2
1638 2 1 1 2
1639 0 0 1 4
1640 0 0 3 3
1641 2 1 0 1
1642 1 2 2 2
1643 0 0 1 3
1644 0 0 2 2
1645 0 0 0 1
1646 0 0 0 1
1647 0 0 0 1
1648 0 1 0 1
1649 0 0 0 0
1650 0 0 1 2
1651 0 0 1 1
1652 0 2 0 0
1653 0 0 0 0
1654 0 1 1 0
1655 0 0 0 0
1656 1 0 0 0
1657 0 0 0 0
1658 0 0 0 0
1659 1 0 0 0
1660 1 0 0 1
1661 0 0 0 0
1662 0 0 0 0
1663 0 0 0 0
1664 0 0 0 0
1665 0 0 1 2
1666 0 0 1 0
1667 1 0 2 0
1668 0 0 0 0
1669 0 0 0 0
1670 1 0 0 0
1671 0 0 0 0
1672 0 0 0 1
1673 0 0 0 0
1674 0 0 0 0
1675 0 0 0 0
1676 0 0 0 1
1677 0 1 0 0
1678 0 0 1 1
1679 0 1 1 0
1680 0 2 0 0
1681 0 0 0 0
1682 0 2 0 0
1683 3 0 1 1
1684 0 0 1 0
1685 1 0 1 0
1686 1 0 1 1
1687 1 0 2 0
1688 1 0 2 1
1689 0 0 0 0
1690 0 0 1 0
1691 0 0 0 0
1692 0 0 0 0
1693 0 0 0 0
1694 0 1 0 0
1695 0 0 0 0
1696 0 0 0 0
1697 0 0 0 0
1698 0 0 0 0
1699 1 0 0 0
1700 0 0 0 0
\end{filecontents}
\begin{figure}
% pgsplots code begins
\begin{sideways}
\begin{tikzpicture}
\begin{axis}[
xmin=1601, xmax=1700,
xtick={1610,1620,1630,1640,1650,1660,1670,1680,1690}, % to not display all yrs
xticklabel style={/pgf/number format/1000 sep=}, % to not add comma
enlarge x limits=0.02, % to not cut off y bars
ymin=0, ymax=8,
ybar stacked, % use y bars and stack
bar width=0.6, % for thinner bars
width=1\textheight,height=1\textwidth, % expand sideways fig
]
\addplot [
black,fill=black,% colour outline and fill
] table [x=yr,y=mouth] {ppfigpirdata.dat};
\addplot [
lightgray,fill=lightgray,% colour outline and fill
] table [x=yr,y=bay] {ppfigpirdata.dat};
\addplot [
lightgray,fill=lightgray,% colour outline and fill
] table [x=yr,y=bacl] {ppfigpirdata.dat};
\addplot [
lightgray,fill=lightgray,% colour outline and fill
] table [x=yr,y=isl] {ppfigpirdata.dat};
\end{axis}
\end{tikzpicture}
\end{sideways}
% pgsplots code ends
\caption{Piracy in the Bay in the 17th century.}
\label{fig:piracyinbay}
\end{figure}
%