Skip to content

Instantly share code, notes, and snippets.

@drvenabili
Created July 28, 2017 08:13
Show Gist options
  • Save drvenabili/342d7eb4687838342a2a9695d7f74ebe to your computer and use it in GitHub Desktop.
Save drvenabili/342d7eb4687838342a2a9695d7f74ebe to your computer and use it in GitHub Desktop.
\begin{figure}[H]
\centering
\caption{\todo{écrire une caption}}
\label{fig:distrib3}
\begin{tikzpicture}[scale=1]
\begin{axis}[
area style,
xtick=data,
tick label style={font=\small},
xticklabel interval boundaries,
xtick={1884,1895,1905,1915,1925,1935,1945,1950},
width=12cm,
height=10cm,
% minor tick num=10,
grid=both,
ymin=-20,
ylabel=Amount of pages,
xticklabels={1884-1895,1896-1905,1906-1915,1916-1925,1926-1935,1936-1945,1946-1950},
x tick label style={rotate=60,anchor=east},
ytick distance=250,
% ybar,
ybar stacked,
bar width=0.09cm
]
\addplot coordinates{(1884, 343) (1885, 1151) (1886, 1195) (1887, 1232) (1888, 1211) (1889, 1273) (1890, 1237) (1891, 1239) (1892, 1239) (1893, 1251) (1894, 1207) (1895, 1489) (1896, 1482) (1897, 1466) (1898, 1435) (1899, 1443) (1900, 1445) (1901, 1426) (1902, 1439) (1903, 1437) (1904, 1449) (1905, 2024) (1906, 2474) (1907, 2565) (1908, 2718) (1909, 2774) (1910, 2586) (1911, 2385) (1912, 2345) (1913, 2142) (1914, 1787) (1915, 1441) (1916, 1020) (1917, 803) (1918, 710) (1919, 713) (1920, 1040) (1921, 1267) (1922, 1468) (1923, 1347) (1924, 1283) (1925, 1688) (1926, 1202) (1927, 1463) (1928, 1955) (1929, 2244) (1930, 2297) (1931, 2531) (1932, 2681) (1933, 2862) (1934, 3115) (1935, 3042) (1936, 3033) (1937, 3243) (1938, 3322) (1939, 3159) (1940, 2060) (1941, 981) (1942, 1326) (1943, 942) (1944, 733) (1945, 464) (1946, 1520) (1947, 2288) (1948, 2304) (1949, 2298) (1950, 2396)};
\addplot coordinates{(1884, 0) (1885, 5) (1886, 2) (1887, 4) (1888, 17) (1889, 15) (1890, 7) (1891, 5) (1892, 5) (1893, 3) (1894, 5) (1895, 5) (1896, 6) (1897, 22) (1898, 11) (1899, 9) (1900, 7) (1901, 26) (1902, 13) (1903, 21) (1904, 6) (1905, 0) (1906, 8) (1907, 27) (1908, 0) (1909, 119) (1910, 134) (1911, 210) (1912, 229) (1913, 361) (1914, 203) (1915, 125) (1916, 0) (1917, 39) (1918, 0) (1919, 713) (1920, 860) (1921, 773) (1922, 828) (1923, 715) (1924, 639) (1925, 276) (1926, 442) (1927, 229) (1928, 227) (1929, 232) (1930, 189) (1931, 31) (1932, 19) (1933, 4) (1934, 5) (1935, 2) (1936, 19) (1937, 9) (1938, 16) (1939, 23) (1940, 0) (1941, 5) (1942, 0) (1943, 0) (1944, 1) (1945, 0) (1946, 20) (1947, 0) (1948, 0) (1949, 0) (1950, 0)};
\end{axis}
\end{tikzpicture}
\end{figure}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment