|
34 | 34 | " <td>\n", |
35 | 35 | " <div style=\"float:left;\">\n", |
36 | 36 | " <font size=\"2\">\n", |
37 | | - " Karolina Pantazatou & Harry Lankreijer as part of ICOS Carbon Portal educational \n", |
| 37 | + " Karolina Pantazatou & Harry Lankreijer as part of ICOS Carbon Portal's educational notebooks\n", |
38 | 38 | " </font>\n", |
39 | 39 | " </div>\n", |
40 | 40 | " </td>\n", |
|
1906 | 1906 | "cell_type": "code", |
1907 | 1907 | "execution_count": null, |
1908 | 1908 | "metadata": { |
1909 | | - "deletable": false, |
1910 | | - "editable": false |
| 1909 | + "deletable": false |
1911 | 1910 | }, |
1912 | 1911 | "outputs": [], |
1913 | 1912 | "source": [ |
|
1945 | 1944 | " (measurement_dict_eng[variable] + ' ('+unit_dict[variable]+')','@y{0.f}'),\n", |
1946 | 1945 | " ],\n", |
1947 | 1946 | " formatters={\n", |
1948 | | - " 'x' : 'datetime', # use 'datetime' formatter for 'date' field\n", |
| 1947 | + " '@x' : 'datetime', # use 'datetime' formatter for 'date' field\n", |
1949 | 1948 | " },\n", |
1950 | 1949 | " # display a tooltip whenever the cursor is vertically in line with a glyph\n", |
1951 | 1950 | " mode='vline'\n", |
|
2167 | 2166 | "cell_type": "code", |
2168 | 2167 | "execution_count": null, |
2169 | 2168 | "metadata": { |
2170 | | - "deletable": false, |
2171 | | - "editable": false |
| 2169 | + "deletable": false |
2172 | 2170 | }, |
2173 | 2171 | "outputs": [], |
2174 | 2172 | "source": [ |
|
2177 | 2175 | "toggle_code()\n", |
2178 | 2176 | "################################\n", |
2179 | 2177 | "\n", |
2180 | | - "\n", |
2181 | | - "\n", |
2182 | 2178 | "def plotIcosEcoBarPlotAnnualStat(Variable, Stat, stat_list, year_ls, bar_color, txt_color):\n", |
2183 | 2179 | " \n", |
2184 | 2180 | " #Import modules: \n", |
|
2216 | 2212 | " \n", |
2217 | 2213 | " #Add labels to the bar glyphs:\n", |
2218 | 2214 | " labels = LabelSet(x='years', y='y_label_pos', text='stats', level='glyph', text_color=txt_color,\n", |
2219 | | - " x_offset=0, y_offset=0, source=source, render_mode='canvas', text_align='center')\n", |
| 2215 | + " x_offset=0, y_offset=0, source=source, render_mode='css', text_align='center')\n", |
2220 | 2216 | "\n", |
2221 | 2217 | " \n", |
2222 | 2218 | " #Set the copyright-label position:\n", |
|
2491 | 2487 | "cell_type": "code", |
2492 | 2488 | "execution_count": null, |
2493 | 2489 | "metadata": { |
2494 | | - "deletable": false, |
2495 | | - "editable": false |
| 2490 | + "deletable": false |
2496 | 2491 | }, |
2497 | 2492 | "outputs": [], |
2498 | 2493 | "source": [ |
|
2539 | 2534 | " \n", |
2540 | 2535 | " #Add labels to the bar glyphs:\n", |
2541 | 2536 | " labels = LabelSet(x='years', y='y_label_pos', text='stats', level='glyph', text_color=txt_color,\n", |
2542 | | - " x_offset=0, y_offset=0, source=source, render_mode='canvas', text_align='center')\n", |
| 2537 | + " x_offset=0, y_offset=0, source=source, render_mode='css', text_align='center')\n", |
2543 | 2538 | "\n", |
2544 | 2539 | " \n", |
2545 | 2540 | " #Set the copyright-label position:\n", |
|
5980 | 5975 | "name": "python", |
5981 | 5976 | "nbconvert_exporter": "python", |
5982 | 5977 | "pygments_lexer": "ipython3", |
5983 | | - "version": "3.8.4" |
| 5978 | + "version": "3.8.6" |
| 5979 | + }, |
| 5980 | + "toc": { |
| 5981 | + "base_numbering": 1, |
| 5982 | + "nav_menu": {}, |
| 5983 | + "number_sections": true, |
| 5984 | + "sideBar": true, |
| 5985 | + "skip_h1_title": false, |
| 5986 | + "title_cell": "Table of Contents", |
| 5987 | + "title_sidebar": "Contents", |
| 5988 | + "toc_cell": false, |
| 5989 | + "toc_position": {}, |
| 5990 | + "toc_section_display": true, |
| 5991 | + "toc_window_display": false |
5984 | 5992 | } |
5985 | 5993 | }, |
5986 | 5994 | "nbformat": 4, |
|
0 commit comments