Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save demacdolincoln/93bb5f6e61f483f18de3eaa96c5c480a to your computer and use it in GitHub Desktop.
Save demacdolincoln/93bb5f6e61f483f18de3eaa96c5c480a to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
" <div class=\"bk-root\">\n",
" <a href=\"http://bokeh.pydata.org\" target=\"_blank\" class=\"bk-logo bk-logo-small bk-logo-notebook\"></a>\n",
" <span id=\"048263a7-5397-4cd8-bbde-0a3af8d3c2b6\">Loading BokehJS ...</span>\n",
" </div>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/javascript": [
"\n",
"(function(global) {\n",
" function now() {\n",
" return new Date();\n",
" }\n",
"\n",
" var force = true;\n",
"\n",
" if (typeof (window._bokeh_onload_callbacks) === \"undefined\" || force === true) {\n",
" window._bokeh_onload_callbacks = [];\n",
" window._bokeh_is_loading = undefined;\n",
" }\n",
"\n",
"\n",
" \n",
" if (typeof (window._bokeh_timeout) === \"undefined\" || force === true) {\n",
" window._bokeh_timeout = Date.now() + 5000;\n",
" window._bokeh_failed_load = false;\n",
" }\n",
"\n",
" var NB_LOAD_WARNING = {'data': {'text/html':\n",
" \"<div style='background-color: #fdd'>\\n\"+\n",
" \"<p>\\n\"+\n",
" \"BokehJS does not appear to have successfully loaded. If loading BokehJS from CDN, this \\n\"+\n",
" \"may be due to a slow or bad network connection. Possible fixes:\\n\"+\n",
" \"</p>\\n\"+\n",
" \"<ul>\\n\"+\n",
" \"<li>re-rerun `output_notebook()` to attempt to load from CDN again, or</li>\\n\"+\n",
" \"<li>use INLINE resources instead, as so:</li>\\n\"+\n",
" \"</ul>\\n\"+\n",
" \"<code>\\n\"+\n",
" \"from bokeh.resources import INLINE\\n\"+\n",
" \"output_notebook(resources=INLINE)\\n\"+\n",
" \"</code>\\n\"+\n",
" \"</div>\"}};\n",
"\n",
" function display_loaded() {\n",
" if (window.Bokeh !== undefined) {\n",
" document.getElementById(\"048263a7-5397-4cd8-bbde-0a3af8d3c2b6\").textContent = \"BokehJS successfully loaded.\";\n",
" } else if (Date.now() < window._bokeh_timeout) {\n",
" setTimeout(display_loaded, 100)\n",
" }\n",
" }\n",
"\n",
" function run_callbacks() {\n",
" window._bokeh_onload_callbacks.forEach(function(callback) { callback() });\n",
" delete window._bokeh_onload_callbacks\n",
" console.info(\"Bokeh: all callbacks have finished\");\n",
" }\n",
"\n",
" function load_libs(js_urls, callback) {\n",
" window._bokeh_onload_callbacks.push(callback);\n",
" if (window._bokeh_is_loading > 0) {\n",
" console.log(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n",
" return null;\n",
" }\n",
" if (js_urls == null || js_urls.length === 0) {\n",
" run_callbacks();\n",
" return null;\n",
" }\n",
" console.log(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n",
" window._bokeh_is_loading = js_urls.length;\n",
" for (var i = 0; i < js_urls.length; i++) {\n",
" var url = js_urls[i];\n",
" var s = document.createElement('script');\n",
" s.src = url;\n",
" s.async = false;\n",
" s.onreadystatechange = s.onload = function() {\n",
" window._bokeh_is_loading--;\n",
" if (window._bokeh_is_loading === 0) {\n",
" console.log(\"Bokeh: all BokehJS libraries loaded\");\n",
" run_callbacks()\n",
" }\n",
" };\n",
" s.onerror = function() {\n",
" console.warn(\"failed to load library \" + url);\n",
" };\n",
" console.log(\"Bokeh: injecting script tag for BokehJS library: \", url);\n",
" document.getElementsByTagName(\"head\")[0].appendChild(s);\n",
" }\n",
" };var element = document.getElementById(\"048263a7-5397-4cd8-bbde-0a3af8d3c2b6\");\n",
" if (element == null) {\n",
" console.log(\"Bokeh: ERROR: autoload.js configured with elementid '048263a7-5397-4cd8-bbde-0a3af8d3c2b6' but no matching script tag was found. \")\n",
" return false;\n",
" }\n",
"\n",
" var js_urls = [\"https://cdn.pydata.org/bokeh/release/bokeh-0.12.4.min.js\", \"https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.4.min.js\"];\n",
"\n",
" var inline_js = [\n",
" function(Bokeh) {\n",
" Bokeh.set_log_level(\"info\");\n",
" },\n",
" \n",
" function(Bokeh) {\n",
" \n",
" document.getElementById(\"048263a7-5397-4cd8-bbde-0a3af8d3c2b6\").textContent = \"BokehJS is loading...\";\n",
" },\n",
" function(Bokeh) {\n",
" console.log(\"Bokeh: injecting CSS: https://cdn.pydata.org/bokeh/release/bokeh-0.12.4.min.css\");\n",
" Bokeh.embed.inject_css(\"https://cdn.pydata.org/bokeh/release/bokeh-0.12.4.min.css\");\n",
" console.log(\"Bokeh: injecting CSS: https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.4.min.css\");\n",
" Bokeh.embed.inject_css(\"https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.4.min.css\");\n",
" }\n",
" ];\n",
"\n",
" function run_inline_js() {\n",
" \n",
" if ((window.Bokeh !== undefined) || (force === true)) {\n",
" for (var i = 0; i < inline_js.length; i++) {\n",
" inline_js[i](window.Bokeh);\n",
" }if (force === true) {\n",
" display_loaded();\n",
" }} else if (Date.now() < window._bokeh_timeout) {\n",
" setTimeout(run_inline_js, 100);\n",
" } else if (!window._bokeh_failed_load) {\n",
" console.log(\"Bokeh: BokehJS failed to load within specified timeout.\");\n",
" window._bokeh_failed_load = true;\n",
" } else if (force !== true) {\n",
" var cell = $(document.getElementById(\"048263a7-5397-4cd8-bbde-0a3af8d3c2b6\")).parents('.cell').data().cell;\n",
" cell.output_area.append_execute_result(NB_LOAD_WARNING)\n",
" }\n",
"\n",
" }\n",
"\n",
" if (window._bokeh_is_loading === 0) {\n",
" console.log(\"Bokeh: BokehJS loaded, going straight to plotting\");\n",
" run_inline_js();\n",
" } else {\n",
" load_libs(js_urls, function() {\n",
" console.log(\"Bokeh: BokehJS plotting callback run at\", now());\n",
" run_inline_js();\n",
" });\n",
" }\n",
"}(this));"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"from bokeh.plotting import output_notebook, show, figure\n",
"from bokeh.models import BoxAnnotation\n",
"import pandas as pd\n",
"from numpy import logical_and as l_and\n",
"from warnings import filterwarnings\n",
"filterwarnings(\"ignore\")\n",
"\n",
"output_notebook()"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"emissao_co2 = pd.read_csv(\"../../dados/co2_por_nacao.csv\")"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"(0, 'Nation')\n",
"(1, 'Year')\n",
"(2, 'Total CO2 emissions from fossil-fuels and cement production (thousand metric tons of C)')\n",
"(3, 'Emissions from solid fuel consumption')\n",
"(4, 'Emissions from liquid fuel consumption')\n",
"(5, 'Emissions from gas fuel consumption')\n",
"(6, 'Emissions from cement production')\n",
"(7, 'Emissions from gas flaring')\n",
"(8, 'Per capita CO2 emissions (metric tons of carbon)')\n",
"(9, 'Emissions from bunker fuels (not included in the totals)')\n"
]
}
],
"source": [
"for i in enumerate(emissao_co2.columns):\n",
" print(i)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"brasil = emissao_co2[emissao_co2.Nation == \"BRAZIL\"]"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"plot_comb_foss = figure(plot_width=900, plot_height=450, title=\"Emissões de co2 no Brasil\")"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
"periodos = [1930, 1945, 1964, 1985]\n",
"periodos_colors = iter([\"green\",\"purple\", \"yellow\", \"black\", \"red\"])\n",
"\n",
"for p in range(len(periodos)):\n",
" box = None\n",
" if p == 0:\n",
" box = BoxAnnotation(right=periodos[p], fill_color=next(periodos_colors))\n",
" else:\n",
" box = BoxAnnotation(left=periodos[p-1], right=periodos[p], fill_color=next(periodos_colors))\n",
" plot_comb_foss.add_layout(box)\n",
"\n",
"box = BoxAnnotation(left=periodos[-1], fill_color=next(periodos_colors))\n",
"plot_comb_foss.add_layout(box)"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
" <div class=\"bk-root\">\n",
" <div class=\"bk-plotdiv\" id=\"72e8bde7-9a3c-4fd7-8ecd-48fb7670b6e8\"></div>\n",
" </div>\n",
"<script type=\"text/javascript\">\n",
" \n",
" (function(global) {\n",
" function now() {\n",
" return new Date();\n",
" }\n",
" \n",
" var force = false;\n",
" \n",
" if (typeof (window._bokeh_onload_callbacks) === \"undefined\" || force === true) {\n",
" window._bokeh_onload_callbacks = [];\n",
" window._bokeh_is_loading = undefined;\n",
" }\n",
" \n",
" \n",
" \n",
" if (typeof (window._bokeh_timeout) === \"undefined\" || force === true) {\n",
" window._bokeh_timeout = Date.now() + 0;\n",
" window._bokeh_failed_load = false;\n",
" }\n",
" \n",
" var NB_LOAD_WARNING = {'data': {'text/html':\n",
" \"<div style='background-color: #fdd'>\\n\"+\n",
" \"<p>\\n\"+\n",
" \"BokehJS does not appear to have successfully loaded. If loading BokehJS from CDN, this \\n\"+\n",
" \"may be due to a slow or bad network connection. Possible fixes:\\n\"+\n",
" \"</p>\\n\"+\n",
" \"<ul>\\n\"+\n",
" \"<li>re-rerun `output_notebook()` to attempt to load from CDN again, or</li>\\n\"+\n",
" \"<li>use INLINE resources instead, as so:</li>\\n\"+\n",
" \"</ul>\\n\"+\n",
" \"<code>\\n\"+\n",
" \"from bokeh.resources import INLINE\\n\"+\n",
" \"output_notebook(resources=INLINE)\\n\"+\n",
" \"</code>\\n\"+\n",
" \"</div>\"}};\n",
" \n",
" function display_loaded() {\n",
" if (window.Bokeh !== undefined) {\n",
" document.getElementById(\"72e8bde7-9a3c-4fd7-8ecd-48fb7670b6e8\").textContent = \"BokehJS successfully loaded.\";\n",
" } else if (Date.now() < window._bokeh_timeout) {\n",
" setTimeout(display_loaded, 100)\n",
" }\n",
" }\n",
" \n",
" function run_callbacks() {\n",
" window._bokeh_onload_callbacks.forEach(function(callback) { callback() });\n",
" delete window._bokeh_onload_callbacks\n",
" console.info(\"Bokeh: all callbacks have finished\");\n",
" }\n",
" \n",
" function load_libs(js_urls, callback) {\n",
" window._bokeh_onload_callbacks.push(callback);\n",
" if (window._bokeh_is_loading > 0) {\n",
" console.log(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n",
" return null;\n",
" }\n",
" if (js_urls == null || js_urls.length === 0) {\n",
" run_callbacks();\n",
" return null;\n",
" }\n",
" console.log(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n",
" window._bokeh_is_loading = js_urls.length;\n",
" for (var i = 0; i < js_urls.length; i++) {\n",
" var url = js_urls[i];\n",
" var s = document.createElement('script');\n",
" s.src = url;\n",
" s.async = false;\n",
" s.onreadystatechange = s.onload = function() {\n",
" window._bokeh_is_loading--;\n",
" if (window._bokeh_is_loading === 0) {\n",
" console.log(\"Bokeh: all BokehJS libraries loaded\");\n",
" run_callbacks()\n",
" }\n",
" };\n",
" s.onerror = function() {\n",
" console.warn(\"failed to load library \" + url);\n",
" };\n",
" console.log(\"Bokeh: injecting script tag for BokehJS library: \", url);\n",
" document.getElementsByTagName(\"head\")[0].appendChild(s);\n",
" }\n",
" };var element = document.getElementById(\"72e8bde7-9a3c-4fd7-8ecd-48fb7670b6e8\");\n",
" if (element == null) {\n",
" console.log(\"Bokeh: ERROR: autoload.js configured with elementid '72e8bde7-9a3c-4fd7-8ecd-48fb7670b6e8' but no matching script tag was found. \")\n",
" return false;\n",
" }\n",
" \n",
" var js_urls = [];\n",
" \n",
" var inline_js = [\n",
" function(Bokeh) {\n",
" (function() {\n",
" var fn = function() {\n",
" var docs_json = {\"3ddd3fc1-e2f6-4b10-a089-4957266a6f9e\":{\"roots\":{\"references\":[{\"attributes\":{\"data_source\":{\"id\":\"46de3428-ae30-416a-9a7e-13cd9d6c5ce4\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"c7b6c9af-0d12-4081-9730-5a08ef2c93c5\",\"type\":\"Line\"},\"hover_glyph\":null,\"nonselection_glyph\":{\"id\":\"4276d0bf-f4ee-434f-b493-99d888fdfdad\",\"type\":\"Line\"},\"selection_glyph\":null},\"id\":\"281bba96-5562-47ae-b79a-ba140e46892d\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"fill_color\":{\"value\":\"black\"},\"left\":1964,\"plot\":{\"id\":\"97490bbf-6682-4dff-8822-10a28a1aadc2\",\"subtype\":\"Figure\",\"type\":\"Plot\"},\"right\":1985},\"id\":\"55fa6821-adb2-403e-9658-175f99ca2dd6\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"label\":{\"value\":\"Emissions from gas fuel consumption\"},\"renderers\":[{\"id\":\"281bba96-5562-47ae-b79a-ba140e46892d\",\"type\":\"GlyphRenderer\"}]},\"id\":\"0f371db9-4240-48a2-89d1-fe2f2e89056b\",\"type\":\"LegendItem\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"x\",\"y\"],\"data\":{\"x\":[1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013],\"y\":{\"__ndarray__\":\"AAAAAAAA+H8AAAAAAAD4fwAAAAAAAPh/AAAAAAAA+H8AAAAAAAD4fwAAAAAAAPh/AAAAAAAA+H8AAAAAAAD4fwAAAAAAAPh/AAAAAAAA+H8AAAAAAAD4fwAAAAAAAPh/AAAAAAAA+H8AAAAAAAD4fwAAAAAAAPh/AAAAAAAA+H8AAAAAAAD4fwAAAAAAAPh/AAAAAAAA+H8AAAAAAAD4fwAAAAAAAPh/AAAAAAAA+H8AAAAAAAD4fwAAAAAAAPh/AAAAAAAA+H8AAAAAAAD4fwAAAAAAAPh/AAAAAAAA+H8AAAAAAAD4fwAAAAAAAPh/AAAAAAAA+H8AAAAAAAD4fwAAAAAAAPh/AAAAAAAA+H8AAAAAAAD4fwAAAAAAAPh/AAAAAAAA+H8AAAAAAAD4fwAAAAAAAPh/AAAAAAAA+H8AAAAAAAD4fwAAAAAAAPh/AAAAAAAA+H8AAAAAAAD4fwAAAAAAAPh/AAAAAAAA+H8AAAAAAAD4fwAAAAAAAPh/AAAAAAAA+H8AAAAAAAAAQAAAAAAAABBAAAAAAAAAEEAAAAAAAAAsQAAAAAAAAEFAAAAAAACAQEAAAAAAAIBGQAAAAAAAgEhAAAAAAABAVUAAAAAAAIBeQAAAAAAAoGJAAAAAAADAYkAAAAAAAMBhQAAAAAAA4GBAAAAAAAAAY0AAAAAAACBmQAAAAAAAYGpAAAAAAADAbEAAAAAAAOBwQAAAAAAAwHVAAAAAAAAYgEAAAAAAAJB3QAAAAAAA4HRAAAAAAACgb0AAAAAAAKBsQAAAAAAAgGtAAAAAAADAbEAAAAAAAABsQAAAAAAAYHFAAAAAAACwc0AAAAAAAFB2QAAAAAAA0H1AAAAAAAAogkAAAAAAAAiKQAAAAAAAuI5AAAAAAABojUAAAAAAAHCGQAAAAAAAOINAAAAAAACgg0AAAAAAAAiCQAAAAAAAMINAAAAAAABIgkAAAAAAALiAQAAAAAAA0IJAAAAAAADQg0AAAAAAANCDQAAAAAAAAIxAAAAAAAAIjUAAAAAAAFySQAAAAAAA7JRAAAAAAADIlUAAAAAAABiYQAAAAAAApJNAAAAAAACYjUAAAAAAALCOQAAAAAAAgJRAAAAAAACQjkAAAAAAAGyQQAAAAAAAzJFAAAAAAADgm0AAAAAAAOiVQAAAAAAA2I5AAAAAAACAikAAAAAAAPiHQA==\",\"dtype\":\"float64\",\"shape\":[113]}}},\"id\":\"f73df0b9-8df8-4988-b3c6-8f764fbf4013\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"line_color\":{\"value\":\"darkorange\"},\"line_width\":{\"value\":1.3},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"d99f0001-50cd-4eba-9fff-e58a20156db3\",\"type\":\"Line\"},{\"attributes\":{\"plot\":{\"id\":\"97490bbf-6682-4dff-8822-10a28a1aadc2\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"b7787caa-0de5-45a7-b2bd-f263c011d6bb\",\"type\":\"PanTool\"},{\"attributes\":{\"data_source\":{\"id\":\"f73df0b9-8df8-4988-b3c6-8f764fbf4013\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"d99f0001-50cd-4eba-9fff-e58a20156db3\",\"type\":\"Line\"},\"hover_glyph\":null,\"nonselection_glyph\":{\"id\":\"e8431754-929b-4612-9b2d-1a4cafc15fa1\",\"type\":\"Line\"},\"selection_glyph\":null},\"id\":\"f35577c8-7f09-4218-8dff-dc46483e8db4\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"plot\":{\"id\":\"97490bbf-6682-4dff-8822-10a28a1aadc2\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"009083a7-f02c-49da-bf73-d4bc80eb1619\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#1f77b4\"},\"line_width\":{\"value\":1.3},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"e8431754-929b-4612-9b2d-1a4cafc15fa1\",\"type\":\"Line\"},{\"attributes\":{\"overlay\":{\"id\":\"a28b129e-ea6e-4831-9e64-27dba2f29a41\",\"type\":\"BoxAnnotation\"},\"plot\":{\"id\":\"97490bbf-6682-4dff-8822-10a28a1aadc2\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"054dd0c7-cadb-4f33-8490-ea10c281986e\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"label\":{\"value\":\"Emissions from gas flaring\"},\"renderers\":[{\"id\":\"f35577c8-7f09-4218-8dff-dc46483e8db4\",\"type\":\"GlyphRenderer\"}]},\"id\":\"3d4ecf54-4684-4055-932a-69230cb2f626\",\"type\":\"LegendItem\"},{\"attributes\":{\"plot\":{\"id\":\"97490bbf-6682-4dff-8822-10a28a1aadc2\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"03f55266-d319-4677-9aeb-4e3d7185e9ce\",\"type\":\"SaveTool\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"x\",\"y\"],\"data\":{\"x\":[1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013],\"y\":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,290,290,121,347,275,43,47,51,60,60,64,64,64,64,180,182,215,205,218,248,710,744,1029,1077,1159,1272,1150,970,1075,1209,1012,1268,1345,1418,1312,1337,1155,1089,821,893,860,1076,1099,1304,1539,1569,1801,2181,2258,2929,3093,3348,3742,3676,3775,3915,3968,4284,5238,4615,5101,5516,5168,4895]}},\"id\":\"1ff6342c-7ed1-49b4-8deb-6488c6f5f7ca\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"plot\":{\"id\":\"97490bbf-6682-4dff-8822-10a28a1aadc2\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"d791cd83-f9bf-40b4-94f7-9b5a238a25c9\",\"type\":\"ResetTool\"},{\"attributes\":{\"line_color\":{\"value\":\"purple\"},\"line_width\":{\"value\":1.3},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"20bafc62-c90c-4498-92fa-0c09d41f5576\",\"type\":\"Line\"},{\"attributes\":{\"plot\":{\"id\":\"97490bbf-6682-4dff-8822-10a28a1aadc2\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"c2dc337b-77c9-47ba-8641-8458e83d3b8a\",\"type\":\"HelpTool\"},{\"attributes\":{\"fill_color\":{\"value\":\"green\"},\"plot\":{\"id\":\"97490bbf-6682-4dff-8822-10a28a1aadc2\",\"subtype\":\"Figure\",\"type\":\"Plot\"},\"right\":1930},\"id\":\"f43626f4-9efb-4a28-b921-357f6cba6afc\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"fill_color\":{\"value\":\"yellow\"},\"left\":1945,\"plot\":{\"id\":\"97490bbf-6682-4dff-8822-10a28a1aadc2\",\"subtype\":\"Figure\",\"type\":\"Plot\"},\"right\":1964},\"id\":\"9dd0a39d-d5dd-47c6-8f90-605944adac0d\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"label\":{\"value\":\"Emissions from bunker fuels (not included in the totals)\"},\"renderers\":[{\"id\":\"2ba1da47-4fb7-47c9-b2b4-3a4494bf6389\",\"type\":\"GlyphRenderer\"}]},\"id\":\"b131f1c7-3b54-4c8c-871c-36f8c6077f5f\",\"type\":\"LegendItem\"},{\"attributes\":{\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#1f77b4\"},\"line_width\":{\"value\":1.3},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"8de5e758-b367-4f7b-925c-7f8a57a88fda\",\"type\":\"Line\"},{\"attributes\":{\"fill_color\":{\"value\":\"purple\"},\"left\":1930,\"plot\":{\"id\":\"97490bbf-6682-4dff-8822-10a28a1aadc2\",\"subtype\":\"Figure\",\"type\":\"Plot\"},\"right\":1945},\"id\":\"8bfe4352-cb1b-43cf-80cc-d58022615d90\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"label\":{\"value\":\"Emissions from solid fuel consumption\"},\"renderers\":[{\"id\":\"488abc3c-41d0-4caf-b70c-a6cf059c99b2\",\"type\":\"GlyphRenderer\"}]},\"id\":\"cd2a7995-765d-4db9-ab97-8ed7cfc412fb\",\"type\":\"LegendItem\"},{\"attributes\":{\"data_source\":{\"id\":\"1ff6342c-7ed1-49b4-8deb-6488c6f5f7ca\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"20bafc62-c90c-4498-92fa-0c09d41f5576\",\"type\":\"Line\"},\"hover_glyph\":null,\"nonselection_glyph\":{\"id\":\"8de5e758-b367-4f7b-925c-7f8a57a88fda\",\"type\":\"Line\"},\"selection_glyph\":null},\"id\":\"2ba1da47-4fb7-47c9-b2b4-3a4494bf6389\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"below\":[{\"id\":\"6d835b57-6d98-4c4f-94f2-c03bb617d58f\",\"type\":\"LinearAxis\"}],\"left\":[{\"id\":\"8ec7a55a-3b8b-4f60-a266-7dd5ea877ee0\",\"type\":\"LinearAxis\"}],\"plot_height\":450,\"plot_width\":900,\"renderers\":[{\"id\":\"6d835b57-6d98-4c4f-94f2-c03bb617d58f\",\"type\":\"LinearAxis\"},{\"id\":\"0dd64168-df5a-4bcd-92bf-02bdb8b9dfd6\",\"type\":\"Grid\"},{\"id\":\"8ec7a55a-3b8b-4f60-a266-7dd5ea877ee0\",\"type\":\"LinearAxis\"},{\"id\":\"c344193f-c1a3-4028-9cdd-c9b586e20da4\",\"type\":\"Grid\"},{\"id\":\"a28b129e-ea6e-4831-9e64-27dba2f29a41\",\"type\":\"BoxAnnotation\"},{\"id\":\"f43626f4-9efb-4a28-b921-357f6cba6afc\",\"type\":\"BoxAnnotation\"},{\"id\":\"8bfe4352-cb1b-43cf-80cc-d58022615d90\",\"type\":\"BoxAnnotation\"},{\"id\":\"9dd0a39d-d5dd-47c6-8f90-605944adac0d\",\"type\":\"BoxAnnotation\"},{\"id\":\"55fa6821-adb2-403e-9658-175f99ca2dd6\",\"type\":\"BoxAnnotation\"},{\"id\":\"f6040df4-a9b6-4682-9266-19ca2f8a21be\",\"type\":\"BoxAnnotation\"},{\"id\":\"d68bb67b-3663-4922-8169-c39ea129527c\",\"type\":\"Legend\"},{\"id\":\"44049aae-f994-4dfd-b080-0dd5104ade12\",\"type\":\"GlyphRenderer\"},{\"id\":\"488abc3c-41d0-4caf-b70c-a6cf059c99b2\",\"type\":\"GlyphRenderer\"},{\"id\":\"90c198e6-49b8-43b5-abce-467099428b76\",\"type\":\"GlyphRenderer\"},{\"id\":\"281bba96-5562-47ae-b79a-ba140e46892d\",\"type\":\"GlyphRenderer\"},{\"id\":\"f35577c8-7f09-4218-8dff-dc46483e8db4\",\"type\":\"GlyphRenderer\"},{\"id\":\"2ba1da47-4fb7-47c9-b2b4-3a4494bf6389\",\"type\":\"GlyphRenderer\"}],\"title\":{\"id\":\"7a10c22f-1d70-4df2-84e3-82e50dbcbaea\",\"type\":\"Title\"},\"tool_events\":{\"id\":\"104d1168-4fd9-427c-82c5-01e320df119f\",\"type\":\"ToolEvents\"},\"toolbar\":{\"id\":\"a5740ba8-8f76-4a24-9302-d18f60d4d3a2\",\"type\":\"Toolbar\"},\"x_range\":{\"id\":\"219c4538-a6be-45cb-af79-89e82adf3513\",\"type\":\"DataRange1d\"},\"y_range\":{\"id\":\"747eefae-1e1f-4a6d-9228-34f3481f94ec\",\"type\":\"DataRange1d\"}},\"id\":\"97490bbf-6682-4dff-8822-10a28a1aadc2\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"x\",\"y\"],\"data\":{\"x\":[1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013],\"y\":[574,684,666,715,764,875,942,981,985,1146,1257,1526,1647,1121,858,786,682,634,838,995,789,1032,1260,1393,1467,1495,1658,1618,1732,1505,1138,1138,1289,1262,1504,1405,1662,1664,1624,1771,1715,1602,1768,1610,1863,2037,2443,2143,2012,5367,5913,6807,6885,8102,9289,9995,9822,10663,10653,12792,13418,14643,15167,15472,15380,17536,18051,21113,22993,25569,27989,31187,36123,39121,41223,42311,44440,48248,51356,51020,46852,46953,45441,46034,49427,54236,56594,57094,58365,56964,59812,60187,62923,66036,70452,77661,81960,85162,87312,89442,92019,90610,87707,92126,94712,94810,99049,105708,100122,114468,119829,128178,137354]}},\"id\":\"3fe66606-3c68-4707-86f9-70059e3aa10c\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"label\":{\"value\":\"Total CO2 emissions from fossil-fuels and cement production (thousand metric tons of C)\"},\"renderers\":[{\"id\":\"44049aae-f994-4dfd-b080-0dd5104ade12\",\"type\":\"GlyphRenderer\"}]},\"id\":\"99797048-dcc6-4049-9436-2e659247f833\",\"type\":\"LegendItem\"},{\"attributes\":{\"data_source\":{\"id\":\"3fe66606-3c68-4707-86f9-70059e3aa10c\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"26cc44a2-8af1-4417-b599-6834283b0189\",\"type\":\"Line\"},\"hover_glyph\":null,\"nonselection_glyph\":{\"id\":\"dc9a88b2-479c-4bf5-877c-dc0b67a286d8\",\"type\":\"Line\"},\"selection_glyph\":null},\"id\":\"44049aae-f994-4dfd-b080-0dd5104ade12\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#1f77b4\"},\"line_width\":{\"value\":1.3},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"dc9a88b2-479c-4bf5-877c-dc0b67a286d8\",\"type\":\"Line\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"x\",\"y\"],\"data\":{\"x\":[1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013],\"y\":{\"__ndarray__\":\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAACZAAAAAAAAAQEAAAAAAAABEQAAAAAAAgEFAAAAAAACAREAAAAAAAIBDQAAAAAAAACpAAAAAAAAAQkAAAAAAAAA2QAAAAAAAADFAAAAAAACAQ0AAAAAAAAAyQAAAAAAAADBAAAAAAAAAKEAAAAAAANKqQAAAAAAAOq9AAAAAAABPs0AAAAAAAMSzQAAAAAAAC7hAAAAAAABsvEAAAAAAALS/QAAAAAAA+r5AAAAAAICDwUAAAAAAgE/BQAAAAACAzMRAAAAAAAAbxkAAAAAAgOXHQAAAAACAAclAAAAAAAAOyUAAAAAAAGXIQAAAAACApMtAAAAAAICjzEAAAAAAgA3RQAAAAADAgNJAAAAAAEDb1EAAAAAAwDPXQAAAAAAADNpAAAAAAIC/3kAAAAAA4KLgQAAAAAAASeFAAAAAAGCe4UAAAAAAoAfiQAAAAADgYuNAAAAAAOCX5EAAAAAAoATkQAAAAACgD+JAAAAAAADA4UAAAAAAoMHgQAAAAABAROBAAAAAAED+4EAAAAAAQPniQAAAAABAZeNAAAAAAECt40AAAAAAQDPkQAAAAABgDeRAAAAAAKCp5EAAAAAAgD/lQAAAAACgQuZAAAAAAEB550AAAAAAAArpQAAAAACghutAAAAAAOAd7UAAAAAAYIDuQAAAAADAB+9AAAAAACAq70AAAAAA4MzvQAAAAADg0+5AAAAAAIA97UAAAAAAYCjuQAAAAADA5+5AAAAAAAC97kAAAAAAgPzvQAAAAAAg2PBAAAAAAIC48EAAAAAAEDzyQAAAAAAQQPNAAAAAAJCb9EAAAAAAILT1QA==\",\"dtype\":\"float64\",\"shape\":[113]}}},\"id\":\"32e2d13c-5eaf-4d7c-86b3-796564d17d89\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#1f77b4\"},\"line_width\":{\"value\":1.3},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"b7855943-bd3d-4e5d-86ed-6cdb06ca8c24\",\"type\":\"Line\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"x\",\"y\"],\"data\":{\"x\":[1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013],\"y\":{\"__ndarray__\":\"AAAAAADwgUAAAAAAAGCFQAAAAAAA0IRAAAAAAABYhkAAAAAAAOCHQAAAAAAAWItAAAAAAABwjUAAAAAAAKiOQAAAAAAAyI5AAAAAAADokUAAAAAAAKSTQAAAAAAA2JdAAAAAAAC8mUAAAAAAAISRQAAAAAAA0IpAAAAAAACQiEAAAAAAAFCFQAAAAAAA0INAAAAAAAAwikAAAAAAABiPQAAAAAAAqIhAAAAAAAAgkEAAAAAAALCTQAAAAAAAxJVAAAAAAADslkAAAAAAAFyXQAAAAAAA6JlAAAAAAAAYmUAAAAAAANyaQAAAAAAAWJdAAAAAAABskUAAAAAAAHiRQAAAAAAArJNAAAAAAAAIk0AAAAAAALSWQAAAAAAAxJRAAAAAAABAmEAAAAAAAAyYQAAAAAAAVJdAAAAAAAB0mUAAAAAAAJCYQAAAAAAAPJdAAAAAAABwmUAAAAAAABCXQAAAAAAAMJtAAAAAAABonUAAAAAAAPihQAAAAAAA2J5AAAAAAACAnEAAAAAAADibQAAAAAAAxJpAAAAAAACgmUAAAAAAAPiXQAAAAAAAiJhAAAAAAAAAmUAAAAAAAKCVQAAAAAAAcJVAAAAAAADYkEAAAAAAAISRQAAAAAAALJVAAAAAAAD0k0AAAAAAACyYQAAAAAAAHJdAAAAAAABQmkAAAAAAAJydQAAAAAAA1qFAAAAAAABSoUAAAAAAADKiQAAAAAAAFKRAAAAAAAD8okAAAAAAACijQAAAAAAA/KNAAAAAAAA2o0AAAAAAAFikQAAAAAAAlqdAAAAAAACQqEAAAAAAAA2wQAAAAAAA4bJAAAAAAACvs0AAAAAAAE+1QAAAAAAAB7VAAAAAAAD6tkAAAAAAAIK5QAAAAAAA6r5AAAAAAICWwkAAAAAAALnCQAAAAACAcsVAAAAAAAA0xUAAAAAAAEnFQAAAAACACsNAAAAAAIDbxUAAAAAAAALFQAAAAACAisVAAAAAAIBuxkAAAAAAgKbHQAAAAAAA+shAAAAAAABlyUAAAAAAANPIQAAAAACArslAAAAAAABMy0AAAAAAgPnKQAAAAACAAcpAAAAAAADmy0AAAAAAgATNQAAAAACAIcxAAAAAAADXy0AAAAAAgHrNQAAAAACA1M1AAAAAAACzx0AAAAAAgC7PQAAAAACAFtFAAAAAAEDD0EAAAAAAQFXSQA==\",\"dtype\":\"float64\",\"shape\":[113]}}},\"id\":\"047948cb-9d41-4d46-8444-7206029ab818\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"6756b752-c08d-44f9-ac4c-6121caa9cd89\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"c0e0448a-78c3-4173-b85d-98d3fa40f7ff\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"items\":[{\"id\":\"99797048-dcc6-4049-9436-2e659247f833\",\"type\":\"LegendItem\"},{\"id\":\"cd2a7995-765d-4db9-ab97-8ed7cfc412fb\",\"type\":\"LegendItem\"},{\"id\":\"34714f81-b8de-4d70-aadd-cbeb47c958d9\",\"type\":\"LegendItem\"},{\"id\":\"0f371db9-4240-48a2-89d1-fe2f2e89056b\",\"type\":\"LegendItem\"},{\"id\":\"3d4ecf54-4684-4055-932a-69230cb2f626\",\"type\":\"LegendItem\"},{\"id\":\"b131f1c7-3b54-4c8c-871c-36f8c6077f5f\",\"type\":\"LegendItem\"}],\"location\":[70,420],\"plot\":{\"id\":\"97490bbf-6682-4dff-8822-10a28a1aadc2\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"d68bb67b-3663-4922-8169-c39ea129527c\",\"type\":\"Legend\"},{\"attributes\":{\"line_width\":{\"value\":1.3},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"b6fc4434-3266-43a0-a1e8-24c74b1897c3\",\"type\":\"Line\"},{\"attributes\":{\"plot\":null,\"text\":\"Emiss\\u00f5es de co2 no Brasil\"},\"id\":\"7a10c22f-1d70-4df2-84e3-82e50dbcbaea\",\"type\":\"Title\"},{\"attributes\":{\"data_source\":{\"id\":\"047948cb-9d41-4d46-8444-7206029ab818\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"b6fc4434-3266-43a0-a1e8-24c74b1897c3\",\"type\":\"Line\"},\"hover_glyph\":null,\"nonselection_glyph\":{\"id\":\"b7855943-bd3d-4e5d-86ed-6cdb06ca8c24\",\"type\":\"Line\"},\"selection_glyph\":null},\"id\":\"488abc3c-41d0-4caf-b70c-a6cf059c99b2\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"callback\":null},\"id\":\"219c4538-a6be-45cb-af79-89e82adf3513\",\"type\":\"DataRange1d\"},{\"attributes\":{\"line_color\":{\"value\":\"blue\"},\"line_width\":{\"value\":1.3},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"2a691ac9-855e-4911-8d05-f9587eab0539\",\"type\":\"Line\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"x\",\"y\"],\"data\":{\"x\":[1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013],\"y\":{\"__ndarray__\":\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPA/AAAAAAAACEAAAAAAAAAAQAAAAAAAAPA/AAAAAAAAFEAAAAAAAADwPwAAAAAAAABAAAAAAAAACEAAAAAAAADwPwAAAAAAAPA/AAAAAAAA8D8AAAAAAAAAQAAAAAAAABBAAAAAAAAAEEAAAAAAAAAUQAAAAAAAACJAAAAAAAAAMkAAAAAAAAA5QAAAAAAAAD9AAAAAAAAAP0AAAAAAAAA+QAAAAAAAgEZAAAAAAAAARkAAAAAAAIBKQAAAAAAAwFBAAAAAAACAUUAAAAAAAIBPQAAAAAAAAFBAAAAAAAAARUAAAAAAAABRQAAAAAAAwFJAAAAAAADAWUAAAAAAAKBnQAAAAAAAoGpAAAAAAABAb0AAAAAAAFBzQAAAAAAAUHlAAAAAAADQe0AAAAAAABCAQAAAAAAAwHxAAAAAAABQhEAAAAAAANCMQAAAAAAAyJFAAAAAAABMlUAAAAAAAIiZQAAAAAAAUJxAAAAAAAAsnUAAAAAAACifQAAAAAAApJ9AAAAAAAD0nkAAAAAAAKCgQAAAAAAAKKJAAAAAAADWokAAAAAAADakQAAAAAAApqZAAAAAAAAkqUAAAAAAAGKqQAAAAAAAqq1AAAAAAAAzs0AAAAAAAGW4QAAAAAAAM75AAAAAAAAev0AAAAAAADrDQAAAAACAY8RAAAAAAABYxUAAAAAAAJ3FQAAAAACA3slAAAAAAADbxEAAAAAAABLMQAAAAAAA6cpAAAAAAADkz0AAAAAAwPHSQA==\",\"dtype\":\"float64\",\"shape\":[113]}}},\"id\":\"46de3428-ae30-416a-9a7e-13cd9d6c5ce4\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"104d1168-4fd9-427c-82c5-01e320df119f\",\"type\":\"ToolEvents\"},{\"attributes\":{\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#1f77b4\"},\"line_width\":{\"value\":1.3},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"89c01ab4-ccfc-45a2-8c02-67105d687832\",\"type\":\"Line\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"b7787caa-0de5-45a7-b2bd-f263c011d6bb\",\"type\":\"PanTool\"},{\"id\":\"009083a7-f02c-49da-bf73-d4bc80eb1619\",\"type\":\"WheelZoomTool\"},{\"id\":\"054dd0c7-cadb-4f33-8490-ea10c281986e\",\"type\":\"BoxZoomTool\"},{\"id\":\"03f55266-d319-4677-9aeb-4e3d7185e9ce\",\"type\":\"SaveTool\"},{\"id\":\"d791cd83-f9bf-40b4-94f7-9b5a238a25c9\",\"type\":\"ResetTool\"},{\"id\":\"c2dc337b-77c9-47ba-8641-8458e83d3b8a\",\"type\":\"HelpTool\"}]},\"id\":\"a5740ba8-8f76-4a24-9302-d18f60d4d3a2\",\"type\":\"Toolbar\"},{\"attributes\":{\"label\":{\"value\":\"Emissions from liquid fuel consumption\"},\"renderers\":[{\"id\":\"90c198e6-49b8-43b5-abce-467099428b76\",\"type\":\"GlyphRenderer\"}]},\"id\":\"34714f81-b8de-4d70-aadd-cbeb47c958d9\",\"type\":\"LegendItem\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":{\"value\":0.5},\"fill_color\":{\"value\":\"lightgrey\"},\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":{\"value\":1.0},\"line_color\":{\"value\":\"black\"},\"line_dash\":[4,4],\"line_width\":{\"value\":2},\"plot\":null,\"render_mode\":\"css\",\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"a28b129e-ea6e-4831-9e64-27dba2f29a41\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"formatter\":{\"id\":\"6756b752-c08d-44f9-ac4c-6121caa9cd89\",\"type\":\"BasicTickFormatter\"},\"plot\":{\"id\":\"97490bbf-6682-4dff-8822-10a28a1aadc2\",\"subtype\":\"Figure\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"2a8cb3de-191c-4f18-a644-e3807b2c7d7b\",\"type\":\"BasicTicker\"}},\"id\":\"6d835b57-6d98-4c4f-94f2-c03bb617d58f\",\"type\":\"LinearAxis\"},{\"attributes\":{\"data_source\":{\"id\":\"32e2d13c-5eaf-4d7c-86b3-796564d17d89\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"2a691ac9-855e-4911-8d05-f9587eab0539\",\"type\":\"Line\"},\"hover_glyph\":null,\"nonselection_glyph\":{\"id\":\"89c01ab4-ccfc-45a2-8c02-67105d687832\",\"type\":\"Line\"},\"selection_glyph\":null},\"id\":\"90c198e6-49b8-43b5-abce-467099428b76\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"callback\":null},\"id\":\"747eefae-1e1f-4a6d-9228-34f3481f94ec\",\"type\":\"DataRange1d\"},{\"attributes\":{\"line_color\":{\"value\":\"red\"},\"line_width\":{\"value\":1.3},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"26cc44a2-8af1-4417-b599-6834283b0189\",\"type\":\"Line\"},{\"attributes\":{\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#1f77b4\"},\"line_width\":{\"value\":1.3},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"4276d0bf-f4ee-434f-b493-99d888fdfdad\",\"type\":\"Line\"},{\"attributes\":{},\"id\":\"2a8cb3de-191c-4f18-a644-e3807b2c7d7b\",\"type\":\"BasicTicker\"},{\"attributes\":{\"line_color\":{\"value\":\"green\"},\"line_width\":{\"value\":1.3},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"c7b6c9af-0d12-4081-9730-5a08ef2c93c5\",\"type\":\"Line\"},{\"attributes\":{\"dimension\":1,\"plot\":{\"id\":\"97490bbf-6682-4dff-8822-10a28a1aadc2\",\"subtype\":\"Figure\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"89e666ab-10a2-478f-9e25-eb2d584539ad\",\"type\":\"BasicTicker\"}},\"id\":\"c344193f-c1a3-4028-9cdd-c9b586e20da4\",\"type\":\"Grid\"},{\"attributes\":{\"fill_color\":{\"value\":\"red\"},\"left\":1985,\"plot\":{\"id\":\"97490bbf-6682-4dff-8822-10a28a1aadc2\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"f6040df4-a9b6-4682-9266-19ca2f8a21be\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"plot\":{\"id\":\"97490bbf-6682-4dff-8822-10a28a1aadc2\",\"subtype\":\"Figure\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"2a8cb3de-191c-4f18-a644-e3807b2c7d7b\",\"type\":\"BasicTicker\"}},\"id\":\"0dd64168-df5a-4bcd-92bf-02bdb8b9dfd6\",\"type\":\"Grid\"},{\"attributes\":{\"formatter\":{\"id\":\"c0e0448a-78c3-4173-b85d-98d3fa40f7ff\",\"type\":\"BasicTickFormatter\"},\"plot\":{\"id\":\"97490bbf-6682-4dff-8822-10a28a1aadc2\",\"subtype\":\"Figure\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"89e666ab-10a2-478f-9e25-eb2d584539ad\",\"type\":\"BasicTicker\"}},\"id\":\"8ec7a55a-3b8b-4f60-a266-7dd5ea877ee0\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"89e666ab-10a2-478f-9e25-eb2d584539ad\",\"type\":\"BasicTicker\"}],\"root_ids\":[\"97490bbf-6682-4dff-8822-10a28a1aadc2\"]},\"title\":\"Bokeh Application\",\"version\":\"0.12.4\"}};\n",
" var render_items = [{\"docid\":\"3ddd3fc1-e2f6-4b10-a089-4957266a6f9e\",\"elementid\":\"72e8bde7-9a3c-4fd7-8ecd-48fb7670b6e8\",\"modelid\":\"97490bbf-6682-4dff-8822-10a28a1aadc2\"}];\n",
" \n",
" Bokeh.embed.embed_items(docs_json, render_items);\n",
" };\n",
" if (document.readyState != \"loading\") fn();\n",
" else document.addEventListener(\"DOMContentLoaded\", fn);\n",
" })();\n",
" },\n",
" function(Bokeh) {\n",
" }\n",
" ];\n",
" \n",
" function run_inline_js() {\n",
" \n",
" if ((window.Bokeh !== undefined) || (force === true)) {\n",
" for (var i = 0; i < inline_js.length; i++) {\n",
" inline_js[i](window.Bokeh);\n",
" }if (force === true) {\n",
" display_loaded();\n",
" }} else if (Date.now() < window._bokeh_timeout) {\n",
" setTimeout(run_inline_js, 100);\n",
" } else if (!window._bokeh_failed_load) {\n",
" console.log(\"Bokeh: BokehJS failed to load within specified timeout.\");\n",
" window._bokeh_failed_load = true;\n",
" } else if (force !== true) {\n",
" var cell = $(document.getElementById(\"72e8bde7-9a3c-4fd7-8ecd-48fb7670b6e8\")).parents('.cell').data().cell;\n",
" cell.output_area.append_execute_result(NB_LOAD_WARNING)\n",
" }\n",
" \n",
" }\n",
" \n",
" if (window._bokeh_is_loading === 0) {\n",
" console.log(\"Bokeh: BokehJS loaded, going straight to plotting\");\n",
" run_inline_js();\n",
" } else {\n",
" load_libs(js_urls, function() {\n",
" console.log(\"Bokeh: BokehJS plotting callback run at\", now());\n",
" run_inline_js();\n",
" });\n",
" }\n",
" }(this));\n",
"</script>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"combustiveis = [\n",
" \"Total CO2 emissions from fossil-fuels and cement production (thousand metric tons of C)\",\n",
" \"Emissions from solid fuel consumption\",\n",
" \"Emissions from liquid fuel consumption\",\n",
" \"Emissions from gas fuel consumption\",\n",
" \"Emissions from gas flaring\",\n",
" \"Emissions from bunker fuels (not included in the totals)\"\n",
"]\n",
"\n",
"colors = [\"red\", \"black\", \"blue\", \"green\", \"darkorange\", \"purple\"]\n",
"\n",
"for item, cor in zip(combustiveis, colors):\n",
" plot_comb_foss.line(brasil.Year, brasil[item], color=cor, legend=item, line_width=1.3)\n",
" \n",
"plot_comb_foss.legend.location = (70, 420)\n",
"# plot_comb_foss.legend.background_fill_alpha = 0.5\n",
"\n",
"show(plot_comb_foss)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Acima, cada cor de fundo representa um período da história da república, na seguinte ordem:\n",
"\n",
"* Primeira República\n",
"* Era Vargas\n",
"* República Nova\n",
"* Regime Militar\n",
"* Nova República\n",
"\n",
"Escolha um dos itens exibidos no gráfico (como __`Emissions from solid fuel consumption`__) e correlacione com algum período da República, identificando sua importância na indústria/economia e possíveis períodos de crescimento ou crise econômica."
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
" <div class=\"bk-root\">\n",
" <div class=\"bk-plotdiv\" id=\"660ec754-aa22-4bf0-abb2-a525e969fc3a\"></div>\n",
" </div>\n",
"<script type=\"text/javascript\">\n",
" \n",
" (function(global) {\n",
" function now() {\n",
" return new Date();\n",
" }\n",
" \n",
" var force = false;\n",
" \n",
" if (typeof (window._bokeh_onload_callbacks) === \"undefined\" || force === true) {\n",
" window._bokeh_onload_callbacks = [];\n",
" window._bokeh_is_loading = undefined;\n",
" }\n",
" \n",
" \n",
" \n",
" if (typeof (window._bokeh_timeout) === \"undefined\" || force === true) {\n",
" window._bokeh_timeout = Date.now() + 0;\n",
" window._bokeh_failed_load = false;\n",
" }\n",
" \n",
" var NB_LOAD_WARNING = {'data': {'text/html':\n",
" \"<div style='background-color: #fdd'>\\n\"+\n",
" \"<p>\\n\"+\n",
" \"BokehJS does not appear to have successfully loaded. If loading BokehJS from CDN, this \\n\"+\n",
" \"may be due to a slow or bad network connection. Possible fixes:\\n\"+\n",
" \"</p>\\n\"+\n",
" \"<ul>\\n\"+\n",
" \"<li>re-rerun `output_notebook()` to attempt to load from CDN again, or</li>\\n\"+\n",
" \"<li>use INLINE resources instead, as so:</li>\\n\"+\n",
" \"</ul>\\n\"+\n",
" \"<code>\\n\"+\n",
" \"from bokeh.resources import INLINE\\n\"+\n",
" \"output_notebook(resources=INLINE)\\n\"+\n",
" \"</code>\\n\"+\n",
" \"</div>\"}};\n",
" \n",
" function display_loaded() {\n",
" if (window.Bokeh !== undefined) {\n",
" document.getElementById(\"660ec754-aa22-4bf0-abb2-a525e969fc3a\").textContent = \"BokehJS successfully loaded.\";\n",
" } else if (Date.now() < window._bokeh_timeout) {\n",
" setTimeout(display_loaded, 100)\n",
" }\n",
" }\n",
" \n",
" function run_callbacks() {\n",
" window._bokeh_onload_callbacks.forEach(function(callback) { callback() });\n",
" delete window._bokeh_onload_callbacks\n",
" console.info(\"Bokeh: all callbacks have finished\");\n",
" }\n",
" \n",
" function load_libs(js_urls, callback) {\n",
" window._bokeh_onload_callbacks.push(callback);\n",
" if (window._bokeh_is_loading > 0) {\n",
" console.log(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n",
" return null;\n",
" }\n",
" if (js_urls == null || js_urls.length === 0) {\n",
" run_callbacks();\n",
" return null;\n",
" }\n",
" console.log(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n",
" window._bokeh_is_loading = js_urls.length;\n",
" for (var i = 0; i < js_urls.length; i++) {\n",
" var url = js_urls[i];\n",
" var s = document.createElement('script');\n",
" s.src = url;\n",
" s.async = false;\n",
" s.onreadystatechange = s.onload = function() {\n",
" window._bokeh_is_loading--;\n",
" if (window._bokeh_is_loading === 0) {\n",
" console.log(\"Bokeh: all BokehJS libraries loaded\");\n",
" run_callbacks()\n",
" }\n",
" };\n",
" s.onerror = function() {\n",
" console.warn(\"failed to load library \" + url);\n",
" };\n",
" console.log(\"Bokeh: injecting script tag for BokehJS library: \", url);\n",
" document.getElementsByTagName(\"head\")[0].appendChild(s);\n",
" }\n",
" };var element = document.getElementById(\"660ec754-aa22-4bf0-abb2-a525e969fc3a\");\n",
" if (element == null) {\n",
" console.log(\"Bokeh: ERROR: autoload.js configured with elementid '660ec754-aa22-4bf0-abb2-a525e969fc3a' but no matching script tag was found. \")\n",
" return false;\n",
" }\n",
" \n",
" var js_urls = [];\n",
" \n",
" var inline_js = [\n",
" function(Bokeh) {\n",
" (function() {\n",
" var fn = function() {\n",
" var docs_json = {\"f9f23ec1-f14f-4436-a6df-e23d2d46f649\":{\"roots\":{\"references\":[{\"attributes\":{\"overlay\":{\"id\":\"8e93683e-f27e-40c1-afb0-721158872aed\",\"type\":\"BoxAnnotation\"},\"plot\":{\"id\":\"cad02c41-6bf3-4baa-9f75-718f890b7582\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"cf6b0fa6-998c-4b06-b8fd-7ffc6a0bc106\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"below\":[{\"id\":\"69f2dc41-f4c4-4e98-8fb6-540c91fc31e2\",\"type\":\"LinearAxis\"}],\"left\":[{\"id\":\"7bc1fcf0-90c3-4f2c-9a48-fba9b4dccfc2\",\"type\":\"LinearAxis\"}],\"plot_height\":450,\"plot_width\":900,\"renderers\":[{\"id\":\"69f2dc41-f4c4-4e98-8fb6-540c91fc31e2\",\"type\":\"LinearAxis\"},{\"id\":\"4c3eded3-2bee-4d8d-8a2a-46c6091085f6\",\"type\":\"Grid\"},{\"id\":\"7bc1fcf0-90c3-4f2c-9a48-fba9b4dccfc2\",\"type\":\"LinearAxis\"},{\"id\":\"66057259-3660-460a-898f-35ab1b1a7956\",\"type\":\"Grid\"},{\"id\":\"8e93683e-f27e-40c1-afb0-721158872aed\",\"type\":\"BoxAnnotation\"},{\"id\":\"fc3db0b6-9005-4065-a703-77724c7b92e2\",\"type\":\"GlyphRenderer\"}],\"title\":{\"id\":\"bc59c1be-865d-4117-9747-a8ca51488f09\",\"type\":\"Title\"},\"tool_events\":{\"id\":\"cf2eec2d-e441-4ce8-ae70-bdae462d20b8\",\"type\":\"ToolEvents\"},\"toolbar\":{\"id\":\"714edec6-d821-4b9b-ba0b-cc5e94b84a38\",\"type\":\"Toolbar\"},\"x_range\":{\"id\":\"86302b15-d91d-44b3-b743-2bce568ec0db\",\"type\":\"DataRange1d\"},\"y_range\":{\"id\":\"7e5e088c-f797-4276-823a-58466530a4a9\",\"type\":\"DataRange1d\"}},\"id\":\"cad02c41-6bf3-4baa-9f75-718f890b7582\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"892c9948-64c5-4281-ae3d-997b9d150d6e\",\"type\":\"PanTool\"},{\"id\":\"a45fdb47-487c-445e-9381-b9feb1933591\",\"type\":\"WheelZoomTool\"},{\"id\":\"cf6b0fa6-998c-4b06-b8fd-7ffc6a0bc106\",\"type\":\"BoxZoomTool\"},{\"id\":\"ff495b8c-bd73-45b0-bd6b-9ece9d7c0923\",\"type\":\"SaveTool\"},{\"id\":\"6510e1c0-ffa8-4e82-a7d3-6de8a385cf4a\",\"type\":\"ResetTool\"},{\"id\":\"0651614c-4948-4a92-8b24-06ba398273a5\",\"type\":\"HelpTool\"}]},\"id\":\"714edec6-d821-4b9b-ba0b-cc5e94b84a38\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"cf2eec2d-e441-4ce8-ae70-bdae462d20b8\",\"type\":\"ToolEvents\"},{\"attributes\":{\"callback\":null},\"id\":\"86302b15-d91d-44b3-b743-2bce568ec0db\",\"type\":\"DataRange1d\"},{\"attributes\":{\"plot\":null,\"text\":\"Combust\\u00edveis f\\u00f3sseis l\\u00edquidos - Regime Militar\"},\"id\":\"bc59c1be-865d-4117-9747-a8ca51488f09\",\"type\":\"Title\"},{\"attributes\":{\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#1f77b4\"},\"line_width\":{\"value\":2},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"63e0a41e-dcc9-4431-adae-4d2474312b63\",\"type\":\"Line\"},{\"attributes\":{\"callback\":null},\"id\":\"7e5e088c-f797-4276-823a-58466530a4a9\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"a4183496-c938-4d76-8014-452ac8a08785\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"formatter\":{\"id\":\"a4183496-c938-4d76-8014-452ac8a08785\",\"type\":\"BasicTickFormatter\"},\"plot\":{\"id\":\"cad02c41-6bf3-4baa-9f75-718f890b7582\",\"subtype\":\"Figure\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"e4ed09c7-80b8-4dc1-96fd-86eada6c1383\",\"type\":\"BasicTicker\"}},\"id\":\"69f2dc41-f4c4-4e98-8fb6-540c91fc31e2\",\"type\":\"LinearAxis\"},{\"attributes\":{\"plot\":{\"id\":\"cad02c41-6bf3-4baa-9f75-718f890b7582\",\"subtype\":\"Figure\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"e4ed09c7-80b8-4dc1-96fd-86eada6c1383\",\"type\":\"BasicTicker\"}},\"id\":\"4c3eded3-2bee-4d8d-8a2a-46c6091085f6\",\"type\":\"Grid\"},{\"attributes\":{\"data_source\":{\"id\":\"8809e63b-e6b2-4e10-b123-ad965a1b1b27\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"eb0bfc26-99e1-47e9-9bc4-61c53d5653c0\",\"type\":\"Line\"},\"hover_glyph\":null,\"nonselection_glyph\":{\"id\":\"63e0a41e-dcc9-4431-adae-4d2474312b63\",\"type\":\"Line\"},\"selection_glyph\":null},\"id\":\"fc3db0b6-9005-4065-a703-77724c7b92e2\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"e4ed09c7-80b8-4dc1-96fd-86eada6c1383\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"13bf1e26-180b-4d0d-9bc5-3330cb64db02\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"dea6e9a8-693b-4706-9087-4015d4bad1b3\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"formatter\":{\"id\":\"dea6e9a8-693b-4706-9087-4015d4bad1b3\",\"type\":\"BasicTickFormatter\"},\"plot\":{\"id\":\"cad02c41-6bf3-4baa-9f75-718f890b7582\",\"subtype\":\"Figure\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"13bf1e26-180b-4d0d-9bc5-3330cb64db02\",\"type\":\"BasicTicker\"}},\"id\":\"7bc1fcf0-90c3-4f2c-9a48-fba9b4dccfc2\",\"type\":\"LinearAxis\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"x\",\"y\"],\"data\":{\"x\":[1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985],\"y\":{\"__ndarray__\":\"AAAAAAAOyUAAAAAAAGXIQAAAAACApMtAAAAAAICjzEAAAAAAgA3RQAAAAADAgNJAAAAAAEDb1EAAAAAAwDPXQAAAAAAADNpAAAAAAIC/3kAAAAAA4KLgQAAAAAAASeFAAAAAAGCe4UAAAAAAoAfiQAAAAADgYuNAAAAAAOCX5EAAAAAAoATkQAAAAACgD+JAAAAAAADA4UAAAAAAoMHgQAAAAABAROBAAAAAAED+4EA=\",\"dtype\":\"float64\",\"shape\":[22]}}},\"id\":\"8809e63b-e6b2-4e10-b123-ad965a1b1b27\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"dimension\":1,\"plot\":{\"id\":\"cad02c41-6bf3-4baa-9f75-718f890b7582\",\"subtype\":\"Figure\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"13bf1e26-180b-4d0d-9bc5-3330cb64db02\",\"type\":\"BasicTicker\"}},\"id\":\"66057259-3660-460a-898f-35ab1b1a7956\",\"type\":\"Grid\"},{\"attributes\":{\"plot\":{\"id\":\"cad02c41-6bf3-4baa-9f75-718f890b7582\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"892c9948-64c5-4281-ae3d-997b9d150d6e\",\"type\":\"PanTool\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":{\"value\":0.5},\"fill_color\":{\"value\":\"lightgrey\"},\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":{\"value\":1.0},\"line_color\":{\"value\":\"black\"},\"line_dash\":[4,4],\"line_width\":{\"value\":2},\"plot\":null,\"render_mode\":\"css\",\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"8e93683e-f27e-40c1-afb0-721158872aed\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"plot\":{\"id\":\"cad02c41-6bf3-4baa-9f75-718f890b7582\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"a45fdb47-487c-445e-9381-b9feb1933591\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"line_width\":{\"value\":2},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"eb0bfc26-99e1-47e9-9bc4-61c53d5653c0\",\"type\":\"Line\"},{\"attributes\":{\"plot\":{\"id\":\"cad02c41-6bf3-4baa-9f75-718f890b7582\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"0651614c-4948-4a92-8b24-06ba398273a5\",\"type\":\"HelpTool\"},{\"attributes\":{\"plot\":{\"id\":\"cad02c41-6bf3-4baa-9f75-718f890b7582\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"6510e1c0-ffa8-4e82-a7d3-6de8a385cf4a\",\"type\":\"ResetTool\"},{\"attributes\":{\"plot\":{\"id\":\"cad02c41-6bf3-4baa-9f75-718f890b7582\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"ff495b8c-bd73-45b0-bd6b-9ece9d7c0923\",\"type\":\"SaveTool\"}],\"root_ids\":[\"cad02c41-6bf3-4baa-9f75-718f890b7582\"]},\"title\":\"Bokeh Application\",\"version\":\"0.12.4\"}};\n",
" var render_items = [{\"docid\":\"f9f23ec1-f14f-4436-a6df-e23d2d46f649\",\"elementid\":\"660ec754-aa22-4bf0-abb2-a525e969fc3a\",\"modelid\":\"cad02c41-6bf3-4baa-9f75-718f890b7582\"}];\n",
" \n",
" Bokeh.embed.embed_items(docs_json, render_items);\n",
" };\n",
" if (document.readyState != \"loading\") fn();\n",
" else document.addEventListener(\"DOMContentLoaded\", fn);\n",
" })();\n",
" },\n",
" function(Bokeh) {\n",
" }\n",
" ];\n",
" \n",
" function run_inline_js() {\n",
" \n",
" if ((window.Bokeh !== undefined) || (force === true)) {\n",
" for (var i = 0; i < inline_js.length; i++) {\n",
" inline_js[i](window.Bokeh);\n",
" }if (force === true) {\n",
" display_loaded();\n",
" }} else if (Date.now() < window._bokeh_timeout) {\n",
" setTimeout(run_inline_js, 100);\n",
" } else if (!window._bokeh_failed_load) {\n",
" console.log(\"Bokeh: BokehJS failed to load within specified timeout.\");\n",
" window._bokeh_failed_load = true;\n",
" } else if (force !== true) {\n",
" var cell = $(document.getElementById(\"660ec754-aa22-4bf0-abb2-a525e969fc3a\")).parents('.cell').data().cell;\n",
" cell.output_area.append_execute_result(NB_LOAD_WARNING)\n",
" }\n",
" \n",
" }\n",
" \n",
" if (window._bokeh_is_loading === 0) {\n",
" console.log(\"Bokeh: BokehJS loaded, going straight to plotting\");\n",
" run_inline_js();\n",
" } else {\n",
" load_libs(js_urls, function() {\n",
" console.log(\"Bokeh: BokehJS plotting callback run at\", now());\n",
" run_inline_js();\n",
" });\n",
" }\n",
" }(this));\n",
"</script>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"plot_periodo = figure(plot_width=900, plot_height=450, title=\"Combustíveis fósseis líquidos - Regime Militar\")\n",
"\n",
"column = \"Emissions from liquid fuel consumption\"\n",
"\n",
"ditadura = brasil[l_and(brasil.Year >= 1964, brasil.Year <= 1985)]\n",
"\n",
"plot_periodo.line(ditadura.Year, ditadura[column], color=\"black\", line_width=2)\n",
"show(plot_periodo)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.1"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment