You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ZSI_Reconnect_China/PATSTAT/patstat_analysis_pipeline.i...

18137 lines
4.1 MiB
Plaintext

{
"cells": [
{
"cell_type": "code",
"execution_count": 33,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"import os\n",
"import pandas as pd\n",
"import janitor\n",
"import matplotlib.pyplot as plt\n",
"import seaborn as sns\n",
"from matplotlib.ticker import MaxNLocator\n",
1 year ago
"import math\n"
]
},
{
"cell_type": "code",
"execution_count": 34,
1 year ago
"outputs": [
{
"data": {
"text/html": " <script type=\"text/javascript\">\n window.PlotlyConfig = {MathJaxConfig: 'local'};\n if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: \"STIX-Web\"}});}\n if (typeof require !== 'undefined') {\n require.undef(\"plotly\");\n define('plotly', function(require, exports, module) {\n /**\n* plotly.js v2.20.0\n* Copyright 2012-2023, Plotly, Inc.\n* All rights reserved.\n* Licensed under the MIT license\n*/\n/*! For license information please see plotly.min.js.LICENSE.txt */\n!function(t,e){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define([],e):\"object\"==typeof exports?exports.Plotly=e():t.Plotly=e()}(self,(function(){return function(){var t={98847:function(t,e,r){\"use strict\";var n=r(71828),i={\"X,X div\":'direction:ltr;font-family:\"Open Sans\",verdana,arial,sans-serif;margin:0;padding:0;',\"X input,X button\":'font-family:\"Open Sans\",verdana,arial,sans-serif;',\"X input:focus,X button:focus\":\"outline:none;\",\"X a\":\"text-decoration:none;\",\"X a:hover\":\"text-decoration:none;\",\"X .crisp\":\"shape-rendering:crispEdges;\",\"X .user-select-none\":\"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;\",\"X svg\":\"overflow:hidden;\",\"X svg a\":\"fill:#447adb;\",\"X svg a:hover\":\"fill:#3c6dc5;\",\"X .main-svg\":\"position:absolute;top:0;left:0;pointer-events:none;\",\"X .main-svg .draglayer\":\"pointer-events:all;\",\"X .cursor-default\":\"cursor:default;\",\"X .cursor-pointer\":\"cursor:pointer;\",\"X .cursor-crosshair\":\"cursor:crosshair;\",\"X .cursor-move\":\"cursor:move;\",\"X .cursor-col-resize\":\"cursor:col-resize;\",\"X .cursor-row-resize\":\"cursor:row-resize;\",\"X .cursor-ns-resize\":\"cursor:ns-resize;\",\"X .cursor-ew-resize\":\"cursor:ew-resize;\",\"X .cursor-sw-resize\":\"cursor:sw-resize;\",\"X .cursor-s-resize\":\"cursor:s-resize;\",\"X .cursor-se-resize\":\"cursor:se-resize;\",\"X .cursor-w-resize\":\"cursor:w-resize;\",\"X .cursor-e-resize\":\"cursor:e-resize;\",\"X .cursor-nw-resize\":\"cursor:nw-resize;\",\"X .cursor-n-resize\":\"cursor:n-resize;\",\"X .cursor-ne-resize\":\"cursor:ne-resize;\",\"X .cursor-grab\":\"cursor:-webkit-grab;cursor:grab;\",\"X .modebar\":\"position:absolute;top:2px;right:2px;\",\"X .ease-bg\":\"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;\",\"X .modebar--hover>:not(.watermark)\":\"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;\",\"X:hover .modebar--hover .modebar-group\":\"opacity:1;\",\"X .modebar-group\":\"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;\",\"X .modebar-btn\":\"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;\",\"X .modebar-btn svg\":\"position:relative;top:2px;\",\"X .modebar.vertical\":\"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;\",\"X .modebar.vertical svg\":\"top:-1px;\",\"X .modebar.vertical .modebar-group\":\"display:block;float:none;padding-left:0px;padding-bottom:8px;\",\"X .modebar.vertical .modebar-group .modebar-btn\":\"display:block;text-align:center;\",\"X [data-title]:before,X [data-title]:after\":\"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;\",\"X [data-title]:hover:before,X [data-title]:hover:after\":\"display:block;opacity:1;\",\"X [data-title]:before
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"import os\n",
"import numpy as np\n",
"import pandas as pd\n",
"import janitor\n",
"import matplotlib.pyplot as plt\n",
"import seaborn as sns\n",
"from matplotlib.ticker import MaxNLocator\n",
"import math\n",
1 year ago
"import plotly.express as px\n",
"import plotly.graph_objects as go\n",
"import plotly.offline as pyo\n",
"from plotly.subplots import make_subplots\n",
"import plotly.graph_objects as go\n",
"pyo.init_notebook_mode()\n",
"\n",
"import plotly.io as pio\n",
"pio.renderers.default = \"plotly_mimetype+notebook\"\n",
"\n",
"import country_converter as coco\n",
"cc = coco.CountryConverter()\n",
"\n",
"\n",
"%matplotlib inline"
1 year ago
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 35,
"outputs": [],
"source": [
"outdir=\"EU_CH_scope\"\n",
"\n",
1 year ago
"appln = pd.read_csv(f\"{outdir}/tls_201_scope.csv\")"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 36,
"outputs": [
{
"data": {
"text/plain": "65136"
},
"execution_count": 36,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"len(appln)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 37,
"outputs": [
{
"data": {
"text/plain": "24638"
},
"execution_count": 37,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"len(appln[appln[\"appln_nr\"]==appln[\"appln_nr_original\"]])"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 38,
"outputs": [
{
"data": {
"text/plain": " appln_id appln_auth appln_nr appln_kind appln_filing_date \n8712 413791676 KR 20127034385 A 2011-06-03 \\\n15588 439148012 EP 15714777 A 2015-03-26 \n48628 536723783 RU 2019104609 A 2017-07-18 \n4458 380638095 US 201113218876 A 2011-08-26 \n43221 522842130 US 201829659634 F 2018-08-10 \n3836 378587773 WO 2011074635 W 2011-05-25 \n9237 414823192 EP 12882000 A 2012-08-03 \n6777 409424323 US 201113638187 A 2011-03-22 \n18826 446137103 WO 2015057861 W 2015-10-14 \n52265 545763074 BR 112020021641 A 2018-04-23 \n\n appln_filing_year appln_nr_original ipr_type receiving_office \n8712 2011 1020127034385 PI \\\n15588 2015 15714777 PI \n48628 2017 2019104609 PI \n4458 2011 13218876 PI \n43221 2018 NaN DP \n3836 2011 CN2011/074635 PI CN \n9237 2012 12882000 PI \n6777 2011 13638187 PI \n18826 2015 IB2015/057861 PI IB \n52265 2018 112020021641 PI \n\n internat_appln_id ... earliest_publn_date earliest_publn_year \n8712 339637678 ... 2013-11-04 2013 \\\n15588 438355565 ... 2017-02-15 2017 \n48628 488987246 ... 2020-08-20 2020 \n4458 0 ... 2013-01-31 2013 \n43221 0 ... 2019-12-03 2019 \n3836 0 ... 2012-11-29 2012 \n9237 414790439 ... 2015-06-10 2015 \n6777 333698631 ... 2013-08-08 2013 \n18826 0 ... 2016-04-21 2016 \n52265 521276805 ... 2021-01-26 2021 \n\n earliest_pat_publn_id granted docdb_family_id inpadoc_family_id \n8712 413791677 Y 45067306 339616929 \\\n15588 473888077 Y 52814965 438355565 \n48628 536723784 Y 60991950 488987246 \n4458 380922724 N 47598050 380638095 \n43221 522842131 Y 68653880 522842130 \n3836 378816884 N 47216526 378587773 \n9237 439934604 N 50027133 414790439 \n6777 409424324 Y 43020401 319321099 \n18826 451530410 N 52014243 446137103 \n52265 545763075 N 68293428 521276805 \n\n docdb_family_size nb_citing_docdb_fam nb_applicants nb_inventors \n8712 6 10 1 7 \n15588 5 1 1 2 \n48628 39 3 1 19 \n4458 2 3 8 7 \n43221 2 0 1 1 \n3836 3 4 3 2 \n9237 2 0 1 2 \n6777 6 4 6 5 \n18826 9 3 2 1 \n52265 6
"text/html": "<div>\n<style scoped>\n .dataframe tbody tr th:only-of-type {\n vertical-align: middle;\n }\n\n .dataframe tbody tr th {\n vertical-align: top;\n }\n\n .dataframe thead th {\n text-align: right;\n }\n</style>\n<table border=\"1\" class=\"dataframe\">\n <thead>\n <tr style=\"text-align: right;\">\n <th></th>\n <th>appln_id</th>\n <th>appln_auth</th>\n <th>appln_nr</th>\n <th>appln_kind</th>\n <th>appln_filing_date</th>\n <th>appln_filing_year</th>\n <th>appln_nr_original</th>\n <th>ipr_type</th>\n <th>receiving_office</th>\n <th>internat_appln_id</th>\n <th>...</th>\n <th>earliest_publn_date</th>\n <th>earliest_publn_year</th>\n <th>earliest_pat_publn_id</th>\n <th>granted</th>\n <th>docdb_family_id</th>\n <th>inpadoc_family_id</th>\n <th>docdb_family_size</th>\n <th>nb_citing_docdb_fam</th>\n <th>nb_applicants</th>\n <th>nb_inventors</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>8712</th>\n <td>413791676</td>\n <td>KR</td>\n <td>20127034385</td>\n <td>A</td>\n <td>2011-06-03</td>\n <td>2011</td>\n <td>1020127034385</td>\n <td>PI</td>\n <td></td>\n <td>339637678</td>\n <td>...</td>\n <td>2013-11-04</td>\n <td>2013</td>\n <td>413791677</td>\n <td>Y</td>\n <td>45067306</td>\n <td>339616929</td>\n <td>6</td>\n <td>10</td>\n <td>1</td>\n <td>7</td>\n </tr>\n <tr>\n <th>15588</th>\n <td>439148012</td>\n <td>EP</td>\n <td>15714777</td>\n <td>A</td>\n <td>2015-03-26</td>\n <td>2015</td>\n <td>15714777</td>\n <td>PI</td>\n <td></td>\n <td>438355565</td>\n <td>...</td>\n <td>2017-02-15</td>\n <td>2017</td>\n <td>473888077</td>\n <td>Y</td>\n <td>52814965</td>\n <td>438355565</td>\n <td>5</td>\n <td>1</td>\n <td>1</td>\n <td>2</td>\n </tr>\n <tr>\n <th>48628</th>\n <td>536723783</td>\n <td>RU</td>\n <td>2019104609</td>\n <td>A</td>\n <td>2017-07-18</td>\n <td>2017</td>\n <td>2019104609</td>\n <td>PI</td>\n <td></td>\n <td>488987246</td>\n <td>...</td>\n <td>2020-08-20</td>\n <td>2020</td>\n <td>536723784</td>\n <td>Y</td>\n <td>60991950</td>\n <td>488987246</td>\n <td>39</td>\n <td>3</td>\n <td>1</td>\n <td>19</td>\n </tr>\n <tr>\n <th>4458</th>\n <td>380638095</td>\n <td>US</td>\n <td>201113218876</td>\n <td>A</td>\n <td>2011-08-26</td>\n <td>2011</td>\n <td>13218876</td>\n <td>PI</td>\n <td></td>\n <td>0</td>\n <td>...</td>\n <td>2013-01-31</td>\n <td>2013</td>\n <td>380922724</td>\n <td>N</td>\n <td>47598050</td>\n <td>380638095</td>\n <td>2</td>\n <td>3</td>\n <td>8</td>\n <td>7</td>\n </tr>\n <tr>\n <th>43221</th>\n <td>522842130</td>\n <td>US</td>\n <td>201829659634</td>\n <td>F</td>\n <td>2018-08-10</td>\n <td>2018</td>\n <td>NaN</td>\n <td>DP</td>\n <td></td>\n <td>0</td>\n <td>...</td>\n <td>2019-12-03</td>\n <td>2019</td>\n <td>522842131</td>\n <td>Y</td>\n <td>68653880</td>\n <td>522842130</td>\n <td>2</td>\n <td>0</td>\n <td>1</td>\n <td>1</td>\n </tr>\n <tr>\n <th>3836</th>\n <td>378587773</td>\n <td>WO</td>\n <td>2011074635</td>\n <td>W</td>\n <td>2011-05-25</td>\n <td>2011</td>\n <td>CN2011/074635</td>\n <td>PI</td>\n <td>CN</td>\n <td>0</td>\n <td>...</td>\n <td>2012-11-29</td>\n <td>2012</td>\n <td>378816884</td>\n <td>N</td>\n <td>47216526</td>\n <td>378587773</td>\n <td>3</td>\n <td>4</td>\n <td>3</td>\n <td>2</td>\n </tr>\n <tr>\n <th>9237</th>\
},
"execution_count": 38,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln.sample(10)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 39,
"outputs": [
{
"data": {
"text/plain": " appln_id appln_auth appln_nr appln_kind appln_filing_date \n56447 556331792 PE 2021000402 A 2019-09-26 \\\n41201 518451341 TW 107131654 A 2018-09-10 \n54094 550225934 TW 109119471 A 2017-07-06 \n9133 414556231 EP 12881920 A 2012-07-27 \n43037 522510076 EP 19306441 A 2019-11-07 \n... ... ... ... ... ... \n60095 569415925 TW 110116177 A 2021-05-05 \n61281 573442692 DE 102021213653 A 2021-12-02 \n41189 518448790 TW 108109981 A 2014-03-07 \n64973 587185640 CR 20220470 A 2021-03-18 \n8491 413374202 EP 13197783 A 2011-04-28 \n\n appln_filing_year appln_nr_original ipr_type receiving_office \n56447 2019 2021000402 PI \\\n41201 2018 107131654 PI \n54094 2017 109119471 PI \n9133 2012 12881920 PI \n43037 2019 19306441 PI \n... ... ... ... ... \n60095 2021 110116177 PI \n61281 2021 102021213653 PI \n41189 2014 108109981 PI \n64973 2021 20220470 PI \n8491 2011 13197783 PI \n\n internat_appln_id ... earliest_publn_date earliest_publn_year \n56447 520193774 ... 2021-07-19 2021 \\\n41201 0 ... 2019-06-16 2019 \n54094 0 ... 2021-02-01 2021 \n9133 414544093 ... 2015-06-03 2015 \n43037 0 ... 2021-05-12 2021 \n... ... ... ... ... \n60095 0 ... 2021-12-16 2021 \n61281 0 ... 2022-06-15 2022 \n41189 0 ... 2019-06-16 2019 \n64973 549449130 ... 2022-11-14 2022 \n8491 376727956 ... 2014-08-20 2014 \n\n earliest_pat_publn_id granted docdb_family_id inpadoc_family_id \n56447 556331793 N 68542579 520193774 \\\n41201 518451342 N 66100215 511344799 \n54094 550225935 N 59337896 481645536 \n9133 439682012 Y 49996511 414544093 \n43037 548841071 N 68655464 522510076 \n... ... ... ... ... \n60095 568265190 N 74845079 546468249 \n61281 573442693 N 81749879 573442692 \n41189 518448791 Y 51500341 421859342 \n64973 587185641 N 75660301 549449130 \n8491 420445397 N 45896256 352844875 \n\n docdb_family_size nb_citing_docdb_fam nb_applicants nb_inventors \n56447 10 0 1 3 \n41201 2 0 1 2 \n54094 8 3 1 7 \n9133 4 5 1 3 \n43037 3 0 1 2 \n... ...
"text/html": "<div>\n<style scoped>\n .dataframe tbody tr th:only-of-type {\n vertical-align: middle;\n }\n\n .dataframe tbody tr th {\n vertical-align: top;\n }\n\n .dataframe thead th {\n text-align: right;\n }\n</style>\n<table border=\"1\" class=\"dataframe\">\n <thead>\n <tr style=\"text-align: right;\">\n <th></th>\n <th>appln_id</th>\n <th>appln_auth</th>\n <th>appln_nr</th>\n <th>appln_kind</th>\n <th>appln_filing_date</th>\n <th>appln_filing_year</th>\n <th>appln_nr_original</th>\n <th>ipr_type</th>\n <th>receiving_office</th>\n <th>internat_appln_id</th>\n <th>...</th>\n <th>earliest_publn_date</th>\n <th>earliest_publn_year</th>\n <th>earliest_pat_publn_id</th>\n <th>granted</th>\n <th>docdb_family_id</th>\n <th>inpadoc_family_id</th>\n <th>docdb_family_size</th>\n <th>nb_citing_docdb_fam</th>\n <th>nb_applicants</th>\n <th>nb_inventors</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>56447</th>\n <td>556331792</td>\n <td>PE</td>\n <td>2021000402</td>\n <td>A</td>\n <td>2019-09-26</td>\n <td>2019</td>\n <td>2021000402</td>\n <td>PI</td>\n <td></td>\n <td>520193774</td>\n <td>...</td>\n <td>2021-07-19</td>\n <td>2021</td>\n <td>556331793</td>\n <td>N</td>\n <td>68542579</td>\n <td>520193774</td>\n <td>10</td>\n <td>0</td>\n <td>1</td>\n <td>3</td>\n </tr>\n <tr>\n <th>41201</th>\n <td>518451341</td>\n <td>TW</td>\n <td>107131654</td>\n <td>A</td>\n <td>2018-09-10</td>\n <td>2018</td>\n <td>107131654</td>\n <td>PI</td>\n <td></td>\n <td>0</td>\n <td>...</td>\n <td>2019-06-16</td>\n <td>2019</td>\n <td>518451342</td>\n <td>N</td>\n <td>66100215</td>\n <td>511344799</td>\n <td>2</td>\n <td>0</td>\n <td>1</td>\n <td>2</td>\n </tr>\n <tr>\n <th>54094</th>\n <td>550225934</td>\n <td>TW</td>\n <td>109119471</td>\n <td>A</td>\n <td>2017-07-06</td>\n <td>2017</td>\n <td>109119471</td>\n <td>PI</td>\n <td></td>\n <td>0</td>\n <td>...</td>\n <td>2021-02-01</td>\n <td>2021</td>\n <td>550225935</td>\n <td>N</td>\n <td>59337896</td>\n <td>481645536</td>\n <td>8</td>\n <td>3</td>\n <td>1</td>\n <td>7</td>\n </tr>\n <tr>\n <th>9133</th>\n <td>414556231</td>\n <td>EP</td>\n <td>12881920</td>\n <td>A</td>\n <td>2012-07-27</td>\n <td>2012</td>\n <td>12881920</td>\n <td>PI</td>\n <td></td>\n <td>414544093</td>\n <td>...</td>\n <td>2015-06-03</td>\n <td>2015</td>\n <td>439682012</td>\n <td>Y</td>\n <td>49996511</td>\n <td>414544093</td>\n <td>4</td>\n <td>5</td>\n <td>1</td>\n <td>3</td>\n </tr>\n <tr>\n <th>43037</th>\n <td>522510076</td>\n <td>EP</td>\n <td>19306441</td>\n <td>A</td>\n <td>2019-11-07</td>\n <td>2019</td>\n <td>19306441</td>\n <td>PI</td>\n <td></td>\n <td>0</td>\n <td>...</td>\n <td>2021-05-12</td>\n <td>2021</td>\n <td>548841071</td>\n <td>N</td>\n <td>68655464</td>\n <td>522510076</td>\n <td>3</td>\n <td>0</td>\n <td>1</td>\n <td>2</td>\n </tr>\n <tr>\n <th>...</th>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n </tr>\n <tr>\n <th>60095</th>\n <td>569415925</td>\n <td>TW</td>\n <td
},
"execution_count": 39,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln[appln[\"appln_nr\"]==appln[\"appln_nr_original\"]].sample(100)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 40,
1 year ago
"outputs": [],
"source": [
"\n",
"appln_title = pd.read_csv(f\"{outdir}/tls_202_scope.csv\")\n",
"\n",
"pers = pd.read_csv(f\"{outdir}/tls_206_scope.csv\")\n",
"pers['psn_sector'] = pers['psn_sector'].fillna(\"UNKNOWN\")\n",
"\n",
"appln_pers = pd.read_csv(f\"{outdir}/tls_207_scope.csv\")\n",
"\n",
"appln_cpc = pd.read_csv(f\"{outdir}/tls_224_scope.csv\")\n",
"\n",
1 year ago
"cpc_def = pd.read_csv(\"CPC_data/cpc_defs.csv\", low_memory=False)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 41,
"outputs": [
{
"data": {
"text/plain": " person_id person_name person_name_orig_lg \n99304 72271503 SHE, HUIMIN SHE, HUIMIN \\\n4389 6211563 Zhou, Jian Zhou, Jian \n59373 52078604 KIRCHNER, NICOLE KIRCHNER, NICOLE \n19688 16957554 BLAWERT, CARSTEN BLAWERT, CARSTEN \n25828 25701586 KNIESEL, SIMON KNIESEL, SIMON \n73679 55544020 WHITING, Tien Yi Theresa Hsu WHITING, Tien Yi Theresa Hsu \n39905 45320991 Zhang, Michael Zhang, Michael \n65003 53390230 DONG, Hailong DONG, Hailong \n113369 79456511 LING, Jing LING, Jing \n58383 51832619 WEN JU ZHANG WEN JU ZHANG \n\n person_address person_ctry_code \n99304 Shanghai CN \\\n4389 Beijing CN \n59373 SACHSENSTRAßE 2845665 RECKLINGHAUSEN DE DE \n19688 NaN DE \n25828 NaN DE \n73679 NaN US \n39905 Beijing CN \n65003 Molenstraat 148,5701 KK Helmond NL \n113369 No. 6 North Of Binjiang Road, Taixing Economic... CN \n58383 CN CN \n\n nuts nuts_level doc_std_name_id doc_std_name \n99304 NaN 9 32084338 SHE HUIMIN \\\n4389 NaN 9 33759 ZHOU JIAN \n59373 DE 0 2139104 KIRCHNER NICOLE \n19688 DE 0 311260 BLAWERT CARSTEN \n25828 DE 0 255684 KNIESEL SIMON \n73679 NaN 9 21758228 WHITING TIEN YI THERESA HSU \n39905 NaN 9 725806 ZHANG MICHAEL \n65003 NL414 3 7196768 DONG HAILONG \n113369 NaN 9 429470 LING JING \n58383 NaN 9 23069059 ZHANG WEN JU \n\n psn_id psn_name psn_level psn_sector \n99304 29505777 SHE, HUIMIN 0 UNKNOWN \\\n4389 37354342 ZHOU JIAN 1 INDIVIDUAL \n59373 17194552 KIRCHNER, NICOLE 0 UNKNOWN \n19688 2923498 BLAWERT, CARSTEN 1 INDIVIDUAL \n25828 17406789 KNIESEL, SIMON 1 INDIVIDUAL \n73679 35065052 WHITING, TIEN YI THERESA HSU 0 UNKNOWN \n39905 37097378 ZHANG, MICHAEL 1 INDIVIDUAL \n65003 7077131 DONG, HAILONG 0 UNKNOWN \n113369 19626776 LING, JING 0 UNKNOWN \n58383 34908417 WEN JU ZHANG 0 UNKNOWN \n\n han_id han_name han_harmonized \n99304 172271503 SHE, HUIMIN 0 \n4389 106211563 Zhou, Jian 0 \n59373 152078604 KIRCHNER, NICOLE 0 \n19688 116957554 BLAWERT, CARSTEN 0 \n25828 125701586 KNIESEL, SIMON 0 \n73679 155544020 WHITING, Tien Yi Theresa Hsu 0 \n39905 145320991 Zhang, Michael 0 \n65003 153390230 DONG, Hailong 0 \n113369 179456511
"text/html": "<div>\n<style scoped>\n .dataframe tbody tr th:only-of-type {\n vertical-align: middle;\n }\n\n .dataframe tbody tr th {\n vertical-align: top;\n }\n\n .dataframe thead th {\n text-align: right;\n }\n</style>\n<table border=\"1\" class=\"dataframe\">\n <thead>\n <tr style=\"text-align: right;\">\n <th></th>\n <th>person_id</th>\n <th>person_name</th>\n <th>person_name_orig_lg</th>\n <th>person_address</th>\n <th>person_ctry_code</th>\n <th>nuts</th>\n <th>nuts_level</th>\n <th>doc_std_name_id</th>\n <th>doc_std_name</th>\n <th>psn_id</th>\n <th>psn_name</th>\n <th>psn_level</th>\n <th>psn_sector</th>\n <th>han_id</th>\n <th>han_name</th>\n <th>han_harmonized</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>99304</th>\n <td>72271503</td>\n <td>SHE, HUIMIN</td>\n <td>SHE, HUIMIN</td>\n <td>Shanghai</td>\n <td>CN</td>\n <td>NaN</td>\n <td>9</td>\n <td>32084338</td>\n <td>SHE HUIMIN</td>\n <td>29505777</td>\n <td>SHE, HUIMIN</td>\n <td>0</td>\n <td>UNKNOWN</td>\n <td>172271503</td>\n <td>SHE, HUIMIN</td>\n <td>0</td>\n </tr>\n <tr>\n <th>4389</th>\n <td>6211563</td>\n <td>Zhou, Jian</td>\n <td>Zhou, Jian</td>\n <td>Beijing</td>\n <td>CN</td>\n <td>NaN</td>\n <td>9</td>\n <td>33759</td>\n <td>ZHOU JIAN</td>\n <td>37354342</td>\n <td>ZHOU JIAN</td>\n <td>1</td>\n <td>INDIVIDUAL</td>\n <td>106211563</td>\n <td>Zhou, Jian</td>\n <td>0</td>\n </tr>\n <tr>\n <th>59373</th>\n <td>52078604</td>\n <td>KIRCHNER, NICOLE</td>\n <td>KIRCHNER, NICOLE</td>\n <td>SACHSENSTRAßE 2845665 RECKLINGHAUSEN DE</td>\n <td>DE</td>\n <td>DE</td>\n <td>0</td>\n <td>2139104</td>\n <td>KIRCHNER NICOLE</td>\n <td>17194552</td>\n <td>KIRCHNER, NICOLE</td>\n <td>0</td>\n <td>UNKNOWN</td>\n <td>152078604</td>\n <td>KIRCHNER, NICOLE</td>\n <td>0</td>\n </tr>\n <tr>\n <th>19688</th>\n <td>16957554</td>\n <td>BLAWERT, CARSTEN</td>\n <td>BLAWERT, CARSTEN</td>\n <td>NaN</td>\n <td>DE</td>\n <td>DE</td>\n <td>0</td>\n <td>311260</td>\n <td>BLAWERT CARSTEN</td>\n <td>2923498</td>\n <td>BLAWERT, CARSTEN</td>\n <td>1</td>\n <td>INDIVIDUAL</td>\n <td>116957554</td>\n <td>BLAWERT, CARSTEN</td>\n <td>0</td>\n </tr>\n <tr>\n <th>25828</th>\n <td>25701586</td>\n <td>KNIESEL, SIMON</td>\n <td>KNIESEL, SIMON</td>\n <td>NaN</td>\n <td>DE</td>\n <td>DE</td>\n <td>0</td>\n <td>255684</td>\n <td>KNIESEL SIMON</td>\n <td>17406789</td>\n <td>KNIESEL, SIMON</td>\n <td>1</td>\n <td>INDIVIDUAL</td>\n <td>125701586</td>\n <td>KNIESEL, SIMON</td>\n <td>0</td>\n </tr>\n <tr>\n <th>73679</th>\n <td>55544020</td>\n <td>WHITING, Tien Yi Theresa Hsu</td>\n <td>WHITING, Tien Yi Theresa Hsu</td>\n <td>NaN</td>\n <td>US</td>\n <td>NaN</td>\n <td>9</td>\n <td>21758228</td>\n <td>WHITING TIEN YI THERESA HSU</td>\n <td>35065052</td>\n <td>WHITING, TIEN YI THERESA HSU</td>\n <td>0</td>\n <td>UNKNOWN</td>\n <td>155544020</td>\n <td>WHITING, Tien Yi Theresa Hsu</td>\n <td>0</td>\n </tr>\n <tr>\n <th>39905</th>\n <td>45320991</td>\n <td>Zhang, Michael</td>\n <td>Zhang, Michael</td>\n <td>Beijing</td>\n <td>CN</td>\n <td>NaN</td>\n <td>9</td>\n <td>725806</td>\n <td>ZHANG MICHAEL</td>\n <td>37097378</td>\n <td>ZHANG, MICHAEL</td>\n <td>1</td>\n <td>INDIVIDUAL</td>\n <td>145320991</td>\n <td>Zhang, Michael</td>\n <td>0</td>\n </tr>\n <tr>\n <th>65003</th>\n <td>53390230</td>\n <td>DONG, Hailong</td>\n <t
},
"execution_count": 41,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
1 year ago
"pers.sample(10)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 42,
"outputs": [
{
"data": {
1 year ago
"text/plain": " cpc_id cpc_name \n0 A HUMAN NECESSITIES \\\n1 A01 AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTI... \n2 A01B SOIL WORKING IN AGRICULTURE OR FORESTRY; PARTS... \n3 A01B1/00 Hand tools (edge trimmers for lawns A01G3/06 ... \n4 A01B1/02 Spades; Shovels {(hand-operated dredgers E02F3... \n... ... ... \n260486 Y10T483/1873 Indexing matrix \n260487 Y10T483/1882 Rotary disc \n260488 Y10T483/1891 Chain or belt \n260489 Y10T483/19 Miscellaneous \n260490 NaN NaN \n\n section class subclass group main_group cpc_version \n0 A NaN NaN NaN NaN 2023 \\\n1 A 1.0 NaN NaN NaN 2023 \n2 A 1.0 B NaN NaN 2023 \n3 A 1.0 B 1.0 0.0 2023 \n4 A 1.0 B 1.0 2.0 2023 \n... ... ... ... ... ... ... \n260486 Y 10.0 T 483.0 1873.0 2023 \n260487 Y 10.0 T 483.0 1882.0 2023 \n260488 Y 10.0 T 483.0 1891.0 2023 \n260489 Y 10.0 T 483.0 19.0 2023 \n260490 NaN NaN NaN NaN NaN 2022 \n\n version https://git-lfs.github.com/spec/v1 \n0 NaN \\\n1 NaN \n2 NaN \n3 NaN \n4 NaN \n... ... \n260486 NaN \n260487 NaN \n260488 NaN \n260489 NaN \n260490 oid sha256:f138d6bdf2939ba576b96b633d81366123b... \n\n cpc_taxonomy \n0 [('A', 'HUMAN NECESSITIES')] \\\n1 [('A', 'HUMAN NECESSITIES'), ('A01', 'AGRICULT... \n2 [('A', 'HUMAN NECESSITIES'), ('A01', 'AGRICULT... \n3 [('A', 'HUMAN NECESSITIES'), ('A01', 'AGRICULT... \n4 [('A', 'HUMAN NECESSITIES'), ('A01', 'AGRICULT... \n... ... \n260486 [('Y', 'GENERAL TAGGING OF NEW TECHNOLOGICAL D... \n260487 [('Y', 'GENERAL TAGGING OF NEW TECHNOLOGICAL D... \n260488 [('Y', 'GENERAL TAGGING OF NEW TECHNOLOGICAL D... \n260489 [('Y', 'GENERAL TAGGING OF NEW TECHNOLOGICAL D... \n260490 [] \n\n cpc_fullname \n0 HUMAN NECESSITIES \\\n1 HUMAN NECESSITIES<>AGRICULTURE; FORESTRY; ANIM... \n2 HUMAN NECESSITIES<>AGRICULTURE; FORESTRY; ANIM... \n3 HUMAN NECESSITIES<>AGRICULTURE; FORESTRY; ANIM... \n4 HUMAN NECESSITIES<>AGRICULTURE; FORESTRY; ANIM... \n... ... \n260486 GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPME... \n260487 GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPME... \n260488 GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPME... \n260489 GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPME... \n260490 NaN \n\n tax_level_0 \n0 HUMAN NEC
"text/html": "<div>\n<style scoped>\n .dataframe tbody tr th:only-of-type {\n vertical-align: middle;\n }\n\n .dataframe tbody tr th {\n vertical-align: top;\n }\n\n .dataframe thead th {\n text-align: right;\n }\n</style>\n<table border=\"1\" class=\"dataframe\">\n <thead>\n <tr style=\"text-align: right;\">\n <th></th>\n <th>cpc_id</th>\n <th>cpc_name</th>\n <th>section</th>\n <th>class</th>\n <th>subclass</th>\n <th>group</th>\n <th>main_group</th>\n <th>cpc_version</th>\n <th>version https://git-lfs.github.com/spec/v1</th>\n <th>cpc_taxonomy</th>\n <th>cpc_fullname</th>\n <th>tax_level_0</th>\n <th>tax_level_1</th>\n <th>tax_level_2</th>\n <th>tax_level_3</th>\n <th>tax_level_4</th>\n <th>tax_level_5</th>\n <th>tax_level_6</th>\n <th>tax_level_7</th>\n <th>data_scope</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>0</th>\n <td>A</td>\n <td>HUMAN NECESSITIES</td>\n <td>A</td>\n <td>NaN</td>\n <td>NaN</td>\n <td>NaN</td>\n <td>NaN</td>\n <td>2023</td>\n <td>NaN</td>\n <td>[('A', 'HUMAN NECESSITIES')]</td>\n <td>HUMAN NECESSITIES</td>\n <td>HUMAN NECESSITIES</td>\n <td>NaN</td>\n <td>NaN</td>\n <td>NaN</td>\n <td>NaN</td>\n <td>NaN</td>\n <td>NaN</td>\n <td>NaN</td>\n <td>False</td>\n </tr>\n <tr>\n <th>1</th>\n <td>A01</td>\n <td>AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTI...</td>\n <td>A</td>\n <td>1.0</td>\n <td>NaN</td>\n <td>NaN</td>\n <td>NaN</td>\n <td>2023</td>\n <td>NaN</td>\n <td>[('A', 'HUMAN NECESSITIES'), ('A01', 'AGRICULT...</td>\n <td>HUMAN NECESSITIES&lt;&gt;AGRICULTURE; FORESTRY; ANIM...</td>\n <td>HUMAN NECESSITIES</td>\n <td>AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTI...</td>\n <td>NaN</td>\n <td>NaN</td>\n <td>NaN</td>\n <td>NaN</td>\n <td>NaN</td>\n <td>NaN</td>\n <td>False</td>\n </tr>\n <tr>\n <th>2</th>\n <td>A01B</td>\n <td>SOIL WORKING IN AGRICULTURE OR FORESTRY; PARTS...</td>\n <td>A</td>\n <td>1.0</td>\n <td>B</td>\n <td>NaN</td>\n <td>NaN</td>\n <td>2023</td>\n <td>NaN</td>\n <td>[('A', 'HUMAN NECESSITIES'), ('A01', 'AGRICULT...</td>\n <td>HUMAN NECESSITIES&lt;&gt;AGRICULTURE; FORESTRY; ANIM...</td>\n <td>HUMAN NECESSITIES</td>\n <td>AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTI...</td>\n <td>SOIL WORKING IN AGRICULTURE OR FORESTRY; PARTS...</td>\n <td>NaN</td>\n <td>NaN</td>\n <td>NaN</td>\n <td>NaN</td>\n <td>NaN</td>\n <td>False</td>\n </tr>\n <tr>\n <th>3</th>\n <td>A01B1/00</td>\n <td>Hand tools (edge trimmers for lawns A01G3/06 ...</td>\n <td>A</td>\n <td>1.0</td>\n <td>B</td>\n <td>1.0</td>\n <td>0.0</td>\n <td>2023</td>\n <td>NaN</td>\n <td>[('A', 'HUMAN NECESSITIES'), ('A01', 'AGRICULT...</td>\n <td>HUMAN NECESSITIES&lt;&gt;AGRICULTURE; FORESTRY; ANIM...</td>\n <td>HUMAN NECESSITIES</td>\n <td>AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTI...</td>\n <td>SOIL WORKING IN AGRICULTURE OR FORESTRY; PARTS...</td>\n <td>Hand tools (edge trimmers for lawns A01G3/06 ...</td>\n <td>NaN</td>\n <td>NaN</td>\n <td>NaN</td>\n <td>NaN</td>\n <td>False</td>\n </tr>\n <tr>\n <th>4</th>\n <td>A01B1/02</td>\n <td>Spades; Shovels {(hand-operated dredgers E02F3...</td>\n <td>A</td>\n <td>1.0</td>\n <td>B</td>\n <td>1.0</td>\n <td>2.0</td>\n <td>2023</td>\n <td>NaN</td>\n <td>[('A', 'HUMAN NECESSITIES'), ('A01', 'AGRICULT...</td>\n <td>HUMAN NECESSITIES&lt;&gt;AGRICULTURE; FORESTRY; ANIM...</td>\n <td>HUMAN NECESSITIES</td>\n <td>AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTI...</td>\n <td>SOIL WORKING IN AGRICULTURE OR FORESTR
},
"execution_count": 42,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
1 year ago
"cpc_def"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 43,
1 year ago
"outputs": [
{
"data": {
"text/plain": " appln_id cpc_class_symbol\n490979 560314579 B32B 7/12\n139994 445201240 C08G2261/3241\n505928 567683420 C25D 7/123\n130069 442410454 Y02D 10/00\n467350 551851575 H04B 7/0486\n318101 509884390 H01L 21/0228\n350171 519161420 G06F 21/42\n129829 442384375 H04W 88/04\n277164 496690078 H04L 27/26\n240979 487005701 F16F2230/0064",
"text/html": "<div>\n<style scoped>\n .dataframe tbody tr th:only-of-type {\n vertical-align: middle;\n }\n\n .dataframe tbody tr th {\n vertical-align: top;\n }\n\n .dataframe thead th {\n text-align: right;\n }\n</style>\n<table border=\"1\" class=\"dataframe\">\n <thead>\n <tr style=\"text-align: right;\">\n <th></th>\n <th>appln_id</th>\n <th>cpc_class_symbol</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>490979</th>\n <td>560314579</td>\n <td>B32B 7/12</td>\n </tr>\n <tr>\n <th>139994</th>\n <td>445201240</td>\n <td>C08G2261/3241</td>\n </tr>\n <tr>\n <th>505928</th>\n <td>567683420</td>\n <td>C25D 7/123</td>\n </tr>\n <tr>\n <th>130069</th>\n <td>442410454</td>\n <td>Y02D 10/00</td>\n </tr>\n <tr>\n <th>467350</th>\n <td>551851575</td>\n <td>H04B 7/0486</td>\n </tr>\n <tr>\n <th>318101</th>\n <td>509884390</td>\n <td>H01L 21/0228</td>\n </tr>\n <tr>\n <th>350171</th>\n <td>519161420</td>\n <td>G06F 21/42</td>\n </tr>\n <tr>\n <th>129829</th>\n <td>442384375</td>\n <td>H04W 88/04</td>\n </tr>\n <tr>\n <th>277164</th>\n <td>496690078</td>\n <td>H04L 27/26</td>\n </tr>\n <tr>\n <th>240979</th>\n <td>487005701</td>\n <td>F16F2230/0064</td>\n </tr>\n </tbody>\n</table>\n</div>"
1 year ago
},
"execution_count": 43,
1 year ago
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln_cpc.sample(10)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 44,
"outputs": [
{
"data": {
1 year ago
"text/plain": "325243"
},
"execution_count": 44,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
1 year ago
"len(appln_pers)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 45,
"outputs": [
{
"data": {
1 year ago
"text/plain": "65136"
},
"execution_count": 45,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
1 year ago
"len(appln)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 46,
"outputs": [],
1 year ago
"source": [
"# Number of collaborative applications\n"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 47,
1 year ago
"outputs": [],
"source": [
"record_col = \"appln_id\""
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 297,
"outputs": [
{
"data": {
1 year ago
"text/plain": "'C:\\\\Users\\\\radvanyi\\\\PycharmProjects\\\\ZSI_analytics\\\\PATSTAT'"
},
"execution_count": 297,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
1 year ago
"os.getcwd()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 429,
"outputs": [],
"source": [
"fromdir=\"first_round\"\n",
"\n",
"os.makedirs(fr'{fromdir}/plots')"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 392,
"outputs": [],
"source": [
"appln_pers_f = pd.read_csv(f\"{fromdir}/first-filings-with-persons-raw.csv\", header=None,\n",
" names=[\"appln_id\",\"appln_auth\",\"person_id\",\"invt_seq_nr\",\"applt_seq_nr\",'person_name',\"person_ctry_code\"])\n",
"\n",
"appln_pers_haninfo = pd.read_csv(f\"{outdir}/tls_206_scope.csv\", usecols=[\"person_id\",\"han_id\",\"han_name\",\"psn_sector\"])\n",
"\n",
"appln_pers_haninfo[\"han_name\"] = appln_pers_haninfo[\"han_name\"].str.replace(\"Zhejiang Geely Holding Group Co., Ltd.\",\n",
" \"ZHEJIANG GEELY HOLDINGGROUP CO LTD\")\n",
"\n",
"\n",
"appln_pers_haninfo.loc[appln_pers_haninfo[\"han_name\"]==\"ZHEJIANG GEELY HOLDINGGROUP CO LTD\",\"han_id\"] = 3345915\n",
"# appln_pers_haninfo[\"psn_sector\"] = appln_pers_haninfo[\"psn_sector\"].fillna(\"UNKNOWN\")\n",
"\n",
"appln_pers_f = appln_pers_f.merge(appln_pers_haninfo, on=\"person_id\")"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 393,
"outputs": [
{
"data": {
"text/plain": "han_id\n3345915 6\nName: count, dtype: int64"
},
"execution_count": 393,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln_pers_haninfo[appln_pers_haninfo[\"han_name\"]==\"ZHEJIANG GEELY HOLDINGGROUP CO LTD\"][\"han_id\"].value_counts()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 394,
"outputs": [],
"source": [
"pers_sector_primary = pers.groupby(\"han_id\", as_index=False)[\"psn_sector\"].agg(\n",
" lambda x: pd.Series.mode(x)[0]).rename(columns={\"psn_sector\":\"psn_sector_primary\"})\n",
"appln_pers_f = appln_pers_f.merge(pers_sector_primary, on='han_id')"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 395,
"outputs": [],
"source": [
"tls_801 = pd.read_csv(r\"./EU_CH_scope/table_tls801.csv\", low_memory=False)\n",
"# tls_801.head()\n",
"scope_df = tls_801[((tls_801.eu_member==\"Y\")|\n",
" (tls_801.ctry_code == 'NO')|\n",
" (tls_801.ctry_code == 'CH')|\n",
" (tls_801.ctry_code == 'GB'))]\n",
"scope_countries = scope_df[\"ctry_code\"].unique()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 396,
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1055\n"
]
}
],
"source": [
"\n",
"\n",
"# appln_ch = appln_pers.groupby(\"appln_id\").filter(lambda gr: ((gr[\"person_ctry_code\"]==\"CN\").any()|\n",
"# (gr[\"appln_auth\"]==\"CN\")).any())\n",
"# appln_scope = appln_ch.groupby(\"appln_id\").filter(lambda gr: ((gr[\"person_ctry_code\"].isin(scope_countries)).any()|\n",
"# (gr[\"appln_auth\"].isin(scope_countries))).any())\n",
"\n",
"appln_ch = appln_pers_f.groupby(\"appln_id\").filter(lambda gr: (gr[\"person_ctry_code\"]==\"CN\").any())\n",
"appln_scope = appln_ch.groupby(\"appln_id\").filter(lambda gr: (gr[\"person_ctry_code\"].isin(scope_countries)).any())\n",
"\n",
"print(appln_scope[\"appln_id\"].nunique())"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 397,
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1055\n"
]
}
],
"source": [
"appln_pers_f = appln_scope[appln_scope[\"person_ctry_code\"].isin(list(scope_countries)+[\"CN\"])].copy()\n",
"print(appln_pers_f[\"appln_id\"].nunique())"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 398,
"outputs": [
{
"data": {
"text/plain": " appln_id appln_auth person_id invt_seq_nr applt_seq_nr \n76 410448968 DE 7067540 0 1 \\\n87 420386087 DE 7067540 0 1 \n88 420386089 DE 7067540 0 1 \n173 337088926 EP 21790 0 1 \n974 410512383 EP 220 0 1 \n... ... ... ... ... ... \n147073 549690891 EP 85841201 1 0 \n147074 549690895 EP 85841201 1 0 \n147075 549690901 EP 85841201 1 0 \n147076 549690897 EP 85841201 1 0 \n147077 549788919 EP 85774895 2 0 \n\n person_name person_ctry_code psn_sector han_id \n76 Evonik Degussa GmbH DE COMPANY 840063 \\\n87 Evonik Degussa GmbH DE COMPANY 840063 \n88 Evonik Degussa GmbH DE COMPANY 840063 \n173 Evonik Degussa GmbH DE COMPANY 840063 \n974 SIEMENS AKTIENGESELLSCHAFT DE COMPANY 2709504 \n... ... ... ... ... \n147073 JONSSON, Tony SE UNKNOWN 185841201 \n147074 JONSSON, Tony SE UNKNOWN 185841201 \n147075 JONSSON, Tony SE UNKNOWN 185841201 \n147076 JONSSON, Tony SE UNKNOWN 185841201 \n147077 TRAN NGUYEN, Johnny SE UNKNOWN 185774895 \n\n han_name psn_sector_primary \n76 EVONIK DEGUSSA GMBH COMPANY \n87 EVONIK DEGUSSA GMBH COMPANY \n88 EVONIK DEGUSSA GMBH COMPANY \n173 EVONIK DEGUSSA GMBH COMPANY \n974 SIEMENS AG COMPANY \n... ... ... \n147073 JONSSON, Tony UNKNOWN \n147074 JONSSON, Tony UNKNOWN \n147075 JONSSON, Tony UNKNOWN \n147076 JONSSON, Tony UNKNOWN \n147077 TRAN NGUYEN, Johnny UNKNOWN \n\n[4367 rows x 11 columns]",
"text/html": "<div>\n<style scoped>\n .dataframe tbody tr th:only-of-type {\n vertical-align: middle;\n }\n\n .dataframe tbody tr th {\n vertical-align: top;\n }\n\n .dataframe thead th {\n text-align: right;\n }\n</style>\n<table border=\"1\" class=\"dataframe\">\n <thead>\n <tr style=\"text-align: right;\">\n <th></th>\n <th>appln_id</th>\n <th>appln_auth</th>\n <th>person_id</th>\n <th>invt_seq_nr</th>\n <th>applt_seq_nr</th>\n <th>person_name</th>\n <th>person_ctry_code</th>\n <th>psn_sector</th>\n <th>han_id</th>\n <th>han_name</th>\n <th>psn_sector_primary</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>76</th>\n <td>410448968</td>\n <td>DE</td>\n <td>7067540</td>\n <td>0</td>\n <td>1</td>\n <td>Evonik Degussa GmbH</td>\n <td>DE</td>\n <td>COMPANY</td>\n <td>840063</td>\n <td>EVONIK DEGUSSA GMBH</td>\n <td>COMPANY</td>\n </tr>\n <tr>\n <th>87</th>\n <td>420386087</td>\n <td>DE</td>\n <td>7067540</td>\n <td>0</td>\n <td>1</td>\n <td>Evonik Degussa GmbH</td>\n <td>DE</td>\n <td>COMPANY</td>\n <td>840063</td>\n <td>EVONIK DEGUSSA GMBH</td>\n <td>COMPANY</td>\n </tr>\n <tr>\n <th>88</th>\n <td>420386089</td>\n <td>DE</td>\n <td>7067540</td>\n <td>0</td>\n <td>1</td>\n <td>Evonik Degussa GmbH</td>\n <td>DE</td>\n <td>COMPANY</td>\n <td>840063</td>\n <td>EVONIK DEGUSSA GMBH</td>\n <td>COMPANY</td>\n </tr>\n <tr>\n <th>173</th>\n <td>337088926</td>\n <td>EP</td>\n <td>21790</td>\n <td>0</td>\n <td>1</td>\n <td>Evonik Degussa GmbH</td>\n <td>DE</td>\n <td>COMPANY</td>\n <td>840063</td>\n <td>EVONIK DEGUSSA GMBH</td>\n <td>COMPANY</td>\n </tr>\n <tr>\n <th>974</th>\n <td>410512383</td>\n <td>EP</td>\n <td>220</td>\n <td>0</td>\n <td>1</td>\n <td>SIEMENS AKTIENGESELLSCHAFT</td>\n <td>DE</td>\n <td>COMPANY</td>\n <td>2709504</td>\n <td>SIEMENS AG</td>\n <td>COMPANY</td>\n </tr>\n <tr>\n <th>...</th>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n </tr>\n <tr>\n <th>147073</th>\n <td>549690891</td>\n <td>EP</td>\n <td>85841201</td>\n <td>1</td>\n <td>0</td>\n <td>JONSSON, Tony</td>\n <td>SE</td>\n <td>UNKNOWN</td>\n <td>185841201</td>\n <td>JONSSON, Tony</td>\n <td>UNKNOWN</td>\n </tr>\n <tr>\n <th>147074</th>\n <td>549690895</td>\n <td>EP</td>\n <td>85841201</td>\n <td>1</td>\n <td>0</td>\n <td>JONSSON, Tony</td>\n <td>SE</td>\n <td>UNKNOWN</td>\n <td>185841201</td>\n <td>JONSSON, Tony</td>\n <td>UNKNOWN</td>\n </tr>\n <tr>\n <th>147075</th>\n <td>549690901</td>\n <td>EP</td>\n <td>85841201</td>\n <td>1</td>\n <td>0</td>\n <td>JONSSON, Tony</td>\n <td>SE</td>\n <td>UNKNOWN</td>\n <td>185841201</td>\n <td>JONSSON, Tony</td>\n <td>UNKNOWN</td>\n </tr>\n <tr>\n <th>147076</th>\n <td>549690897</td>\n <td>EP</td>\n <td>85841201</td>\n <td>1</td>\n <td>0</td>\n <td>JONSSON, Tony</td>\n <td>SE</td>\n <td>UNKNOWN</td>\n <td>185841201</td>\n <td>JONSSON, Tony</td>\n <td>UNKNOWN</td>\n </tr>\n <tr>\n <th>147077</th>\n <td>549788919</td>\n <td>EP</td>\n <td>85774895</td>\n <td>2</td>\n <td>0</td>\n <td>TRAN NGUYEN, Johnny</td>\n <td>SE</td>\n <td>UNKNOWN</td>\n <td>185774895</td>\n <td>TRAN NGUYEN, Johnny</td>\n <td>UNKNOWN</td>\n </tr>\n </tbody>\n</table>\n<p>4367 rows × 11 columns</p>\n</div
},
"execution_count": 398,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln_pers_f"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 399,
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1055\n"
]
},
{
"data": {
"text/plain": " appln_id appln_auth appln_kind filing_year nb_applicants \n114926 405478585 EP A 2013 1 \\\n670680 532677899 EP A 2020 2 \n568605 520224479 EP A 2019 1 \n441101 483520394 FR A 2017 1 \n687085 554756101 DE A 2020 1 \n... ... ... ... ... ... \n235723 443704166 FR A 2015 3 \n670840 532706785 EP A 2020 2 \n415863 486019755 EP A 2017 1 \n608249 520115105 EP A 2019 1 \n753188 549690895 EP A 2021 2 \n\n nb_inventors \n114926 4 \n670680 2 \n568605 2 \n441101 2 \n687085 3 \n... ... \n235723 3 \n670840 2 \n415863 2 \n608249 4 \n753188 1 \n\n[100 rows x 6 columns]",
"text/html": "<div>\n<style scoped>\n .dataframe tbody tr th:only-of-type {\n vertical-align: middle;\n }\n\n .dataframe tbody tr th {\n vertical-align: top;\n }\n\n .dataframe thead th {\n text-align: right;\n }\n</style>\n<table border=\"1\" class=\"dataframe\">\n <thead>\n <tr style=\"text-align: right;\">\n <th></th>\n <th>appln_id</th>\n <th>appln_auth</th>\n <th>appln_kind</th>\n <th>filing_year</th>\n <th>nb_applicants</th>\n <th>nb_inventors</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>114926</th>\n <td>405478585</td>\n <td>EP</td>\n <td>A</td>\n <td>2013</td>\n <td>1</td>\n <td>4</td>\n </tr>\n <tr>\n <th>670680</th>\n <td>532677899</td>\n <td>EP</td>\n <td>A</td>\n <td>2020</td>\n <td>2</td>\n <td>2</td>\n </tr>\n <tr>\n <th>568605</th>\n <td>520224479</td>\n <td>EP</td>\n <td>A</td>\n <td>2019</td>\n <td>1</td>\n <td>2</td>\n </tr>\n <tr>\n <th>441101</th>\n <td>483520394</td>\n <td>FR</td>\n <td>A</td>\n <td>2017</td>\n <td>1</td>\n <td>2</td>\n </tr>\n <tr>\n <th>687085</th>\n <td>554756101</td>\n <td>DE</td>\n <td>A</td>\n <td>2020</td>\n <td>1</td>\n <td>3</td>\n </tr>\n <tr>\n <th>...</th>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n </tr>\n <tr>\n <th>235723</th>\n <td>443704166</td>\n <td>FR</td>\n <td>A</td>\n <td>2015</td>\n <td>3</td>\n <td>3</td>\n </tr>\n <tr>\n <th>670840</th>\n <td>532706785</td>\n <td>EP</td>\n <td>A</td>\n <td>2020</td>\n <td>2</td>\n <td>2</td>\n </tr>\n <tr>\n <th>415863</th>\n <td>486019755</td>\n <td>EP</td>\n <td>A</td>\n <td>2017</td>\n <td>1</td>\n <td>2</td>\n </tr>\n <tr>\n <th>608249</th>\n <td>520115105</td>\n <td>EP</td>\n <td>A</td>\n <td>2019</td>\n <td>1</td>\n <td>4</td>\n </tr>\n <tr>\n <th>753188</th>\n <td>549690895</td>\n <td>EP</td>\n <td>A</td>\n <td>2021</td>\n <td>2</td>\n <td>1</td>\n </tr>\n </tbody>\n</table>\n<p>100 rows × 6 columns</p>\n</div>"
},
"execution_count": 399,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln_f = pd.read_csv(f\"{fromdir}/first-filings-raw.csv\", header=None,\n",
1 year ago
" names=[\"appln_id\",\"appln_auth\",\"appln_kind\",\"filing_year\",\"nb_applicants\",'nb_inventors'])\n",
"\n",
"appln_f[\"filing_year\"] = appln_f[\"filing_year\"].astype(int)\n",
"\n",
"appln_f = appln_f[appln_f[\"filing_year\"]>2010]\n",
"\n",
"appln_f[\"appln_auth\"] = appln_f[\"appln_auth\"].str.replace(\"MA\",\"CN\")\n",
"\n",
"appln_f = appln_f[appln_f[\"appln_id\"].isin(appln_scope['appln_id'])]\n",
"print(appln_f[\"appln_id\"].nunique())\n",
"\n",
1 year ago
"appln_f.sample(100)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 399,
"outputs": [],
"source": [],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 399,
"outputs": [],
"source": [],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 400,
"outputs": [
{
"data": {
"text/plain": "appln_kind\nA 1059\nU 7\nName: count, dtype: int64"
},
"execution_count": 400,
"metadata": {},
"output_type": "execute_result"
1 year ago
}
],
"source": [
"appln_f[\"appln_kind\"].value_counts()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 401,
1 year ago
"outputs": [],
"source": [
"# Co-patents per year"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 430,
1 year ago
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"hovertemplate": "Year:%{x:d}<br>Number of co-publications:%{y:d}",
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+text+lines",
1 year ago
"name": "",
"orientation": "v",
"showlegend": false,
"text": [
48.0,
42.0,
64.0,
58.0,
83.0,
94.0,
148.0,
174.0,
151.0,
135.0,
58.0
1 year ago
],
"textfont": {
"size": 12
},
"textposition": "top center",
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x",
"y": [
48,
42,
64,
58,
83,
94,
148,
174,
151,
135,
58
1 year ago
],
"yaxis": "y",
"type": "scatter"
},
{
"hovertemplate": "Year:%{x:d}<br>Rel.growth in co-publications:%{y:.0%}",
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+text+lines",
1 year ago
"name": "",
"orientation": "v",
"showlegend": false,
"text": [
0.0,
-0.125,
0.3333333333333333,
0.20833333333333334,
0.7291666666666666,
0.9583333333333334,
2.0833333333333335,
2.625,
2.1458333333333335,
1.8125,
0.20833333333333334
1 year ago
],
"textfont": {
"size": 12
},
"textposition": "top center",
"texttemplate": "%{y:.0%}",
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x2",
"y": [
0.0,
-0.125,
0.3333333333333333,
0.20833333333333334,
0.7291666666666666,
0.9583333333333334,
2.0833333333333335,
2.625,
2.1458333333333335,
1.8125,
0.20833333333333334
1 year ago
],
"yaxis": "y2",
"type": "scatter"
}
],
"layout": {
"template": {
"data": {
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"xaxis": {
"anchor": "y",
"domain": [
0.0,
1.0
],
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
"mirror": true,
"ticks": "outside"
},
"yaxis": {
"anchor": "x",
"domain": [
0.625,
1.0
],
"categoryorder": "total ascending",
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
"mirror": true,
"ticks": "outside",
"range": [
0,
250
1 year ago
]
},
"xaxis2": {
"anchor": "y2",
"domain": [
0.0,
1.0
],
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
"mirror": true,
"ticks": "outside"
},
"yaxis2": {
"anchor": "x2",
"domain": [
0.0,
0.375
],
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
"mirror": true,
"ticks": "outside",
"zerolinecolor": "grey",
"tickformat": ".0%",
"range": [
-1,
3.5
1 year ago
]
},
"annotations": [
{
"font": {
"size": 16
},
"showarrow": false,
"text": "Co-patents per year",
"x": 0.5,
"xanchor": "center",
"xref": "paper",
"y": 1.0,
"yanchor": "bottom",
"yref": "paper"
},
{
"font": {
"size": 16
},
"showarrow": false,
"text": "Relative growth of co-patents",
"x": 0.5,
"xanchor": "center",
"xref": "paper",
"y": 0.375,
"yanchor": "bottom",
"yref": "paper"
}
],
"barmode": "relative",
"font": {
"family": "Montserrat"
}
},
"config": {
"displayModeBar": false,
"responsive": true,
"plotlyServerURL": "https://plotly.com"
}
},
"text/html": "<div> <div id=\"75ec3337-4e6d-4e58-a9c8-b65f37b2bb8e\" class=\"plotly-graph-div\" style=\"height:525px; width:100%;\"></div> <script type=\"text/javascript\"> require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"75ec3337-4e6d-4e58-a9c8-b65f37b2bb8e\")) { Plotly.newPlot( \"75ec3337-4e6d-4e58-a9c8-b65f37b2bb8e\", [{\"hovertemplate\":\"Year:%{x:d}<br>Number of co-publications:%{y:d}\",\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"},\"mode\":\"markers+text+lines\",\"name\":\"\",\"orientation\":\"v\",\"showlegend\":false,\"text\":[48.0,42.0,64.0,58.0,83.0,94.0,148.0,174.0,151.0,135.0,58.0],\"textfont\":{\"size\":12},\"textposition\":\"top center\",\"x\":[2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021],\"xaxis\":\"x\",\"y\":[48,42,64,58,83,94,148,174,151,135,58],\"yaxis\":\"y\",\"type\":\"scatter\"},{\"hovertemplate\":\"Year:%{x:d}<br>Rel.growth in co-publications:%{y:.0%}\",\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"},\"mode\":\"markers+text+lines\",\"name\":\"\",\"orientation\":\"v\",\"showlegend\":false,\"text\":[0.0,-0.125,0.3333333333333333,0.20833333333333334,0.7291666666666666,0.9583333333333334,2.0833333333333335,2.625,2.1458333333333335,1.8125,0.20833333333333334],\"textfont\":{\"size\":12},\"textposition\":\"top center\",\"texttemplate\":\"%{y:.0%}\",\"x\":[2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021],\"xaxis\":\"x2\",\"y\":[0.0,-0.125,0.3333333333333333,0.20833333333333334,0.7291666666666666,0.9583333333333334,2.0833333333333335,2.625,2.1458333333333335,1.8125,0.20833333333333334],\"yaxis\":\"y2\",\"type\":\"scatter\"}], {\"template\":{\"data\":{\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"barpolar\"}],\"bar\":[{\"error_x\":{\"color\":\"#2a3f5f\"},\"error_y\":{\"color\":\"#2a3f5f\"},\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"bar\"}],\"carpet\":[{\"aaxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"baxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"type\":\"carpet\"}],\"choropleth\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"choropleth\"}],\"contourcarpet\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"contourcarpet\"}],\"contour\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"contour\"}],\"heatmapgl\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"heatmapgl\"}],\"heatmap\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f9
1 year ago
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"data = (appln_f.groupby(['filing_year'])[record_col].nunique(dropna=False)\n",
" .reset_index()\n",
" .rename(columns={0:record_col}))\n",
"data[record_col+\"_relative_growth\"] = data[data[record_col]>0].sort_values(by=[\"filing_year\"], ascending=True)[record_col][0]\n",
"data[record_col+\"_relative_growth\"] = (data[record_col]-data[record_col+\"_relative_growth\"])/data[record_col+\"_relative_growth\"]\n",
"\n",
"data = data.sort_values(by =[\"filing_year\"], ascending=[True])\n",
"data[record_col+\"_cumsum\"] = (data[record_col].cumsum())\n",
"\n",
"year_output = px.line(data,x=\"filing_year\", y=record_col, markers=True, text=record_col)\n",
"year_output.update_traces(textposition='top center',textfont_size=12)\n",
"year_output.update_traces(hovertemplate='Year:%{x:d}<br>Number of co-publications:%{y:d}')\n",
"\n",
"year_rel_output = px.line(data,x=\"filing_year\", y=record_col+\"_relative_growth\", markers=True, text=record_col+\"_relative_growth\")\n",
"year_rel_output.update_traces(textposition='top center',textfont_size=12, texttemplate='%{y:.0%}')\n",
"year_rel_output.update_traces(hovertemplate='Year:%{x:d}<br>Rel.growth in co-publications:%{y:.0%}')\n",
"\n",
"figsuper = make_subplots(rows=2, cols=1, subplot_titles=[\"Co-patents per year\",\"Relative growth of co-patents\"],\n",
" specs=[\n",
" [{\"type\": \"xy\"}],\n",
" [{\"type\": \"xy\"}]\n",
" ])\n",
"\n",
"for trace in list(year_output.select_traces()):\n",
" figsuper.add_trace(trace,\n",
" row=1, col=1\n",
" )\n",
"\n",
"for trace in list(year_rel_output.select_traces()):\n",
" figsuper.add_trace(trace,\n",
" row=2, col=1\n",
" )\n",
"\n",
"figsuper.update_layout(yaxis={'categoryorder':'total ascending'}, barmode='relative')\n",
"figsuper.update_yaxes(\n",
" showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n",
" ticks=\"outside\")\n",
"figsuper.update_xaxes(\n",
" showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n",
" ticks=\"outside\")\n",
"figsuper.update_layout({'template':\"plotly\",\"font_family\":\"Montserrat\"})\n",
"figsuper['layout']['yaxis2'].update(zerolinecolor='grey',tickformat=\".0%\")\n",
"# for i in[\"xaxis\",\"xaxis2\"]:\n",
"# figsuper['layout'][f'{i}'][\"range\"] = [2010.8,2022.5]\n",
"#\n",
"figsuper['layout'][\"yaxis\"][\"range\"] = [0,250]\n",
"figsuper['layout'][\"yaxis2\"][\"range\"] = [-1,3.5]\n",
1 year ago
"#\n",
"# figsuper['layout']['yaxis'].update(tickformat=\".0f\")\n",
"# figsuper['layout']['yaxis3'].update(tickformat=\".0f\")\n",
"\n",
"figsuper.show(config= dict(displayModeBar = False, responsive = True),height=800,width=1600,scale = 4)\n",
"\n",
"figsuper.write_image(f\"{fromdir}/plots/overall_distr&trends.png\",height=900,width=900,scale = 4)"
1 year ago
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 440,
1 year ago
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"EP not found in ISO2\n"
]
},
{
"data": {
1 year ago
"application/vnd.plotly.v1+json": {
"data": [
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Austria",
"Austria",
"Austria",
"Austria",
"Austria",
"Austria",
"Austria",
"Austria",
"Austria",
"Austria",
"Austria"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x11",
1 year ago
"y": [
0.0,
1.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
2.0,
2.0,
1 year ago
0.0
],
"yaxis": "y11",
1 year ago
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x12",
1 year ago
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
1.0,
1.0
1 year ago
],
"yaxis": "y12",
1 year ago
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Czech Republic",
"Czech Republic",
"Czech Republic",
"Czech Republic",
"Czech Republic",
"Czech Republic",
"Czech Republic",
"Czech Republic",
"Czech Republic",
"Czech Republic",
"Czech Republic"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x13",
1 year ago
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
1.0,
2.0,
1.0,
0.0
1 year ago
],
"yaxis": "y13",
1 year ago
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x14",
1 year ago
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
2.0,
0.0,
1 year ago
0.0
],
"yaxis": "y14",
1 year ago
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"European Patent Office",
"European Patent Office",
"European Patent Office",
"European Patent Office",
"European Patent Office",
"European Patent Office",
"European Patent Office",
"European Patent Office",
"European Patent Office",
"European Patent Office",
"European Patent Office"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x15",
1 year ago
"y": [
17.0,
15.0,
16.0,
19.0,
28.0,
34.0,
56.0,
102.0,
109.0,
86.0,
33.0
1 year ago
],
"yaxis": "y15",
1 year ago
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Finland",
"Finland",
"Finland",
"Finland",
"Finland",
"Finland",
"Finland",
"Finland",
"Finland",
"Finland",
"Finland"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x6",
1 year ago
"y": [
3.0,
2.0,
1.0,
1.0,
3.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1 year ago
0.0
],
"yaxis": "y6",
1 year ago
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"France",
"France",
"France",
"France",
"France",
"France",
"France",
"France",
"France",
"France",
"France"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x7",
1 year ago
"y": [
10.0,
9.0,
14.0,
5.0,
13.0,
12.0,
13.0,
6.0,
11.0,
14.0,
6.0
1 year ago
],
"yaxis": "y7",
1 year ago
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Germany",
"Germany",
"Germany",
"Germany",
"Germany",
"Germany",
"Germany",
"Germany",
"Germany",
"Germany",
"Germany"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x8",
1 year ago
"y": [
14.0,
14.0,
31.0,
29.0,
24.0,
18.0,
30.0,
28.0,
19.0,
19.0,
15.0
1 year ago
],
"yaxis": "y8",
1 year ago
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg"
1 year ago
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x9",
1 year ago
"y": [
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
0.0,
2.0,
2.0
1 year ago
],
"yaxis": "y9",
1 year ago
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands"
1 year ago
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x10",
1 year ago
"y": [
0.0,
0.0,
1.0,
1.0,
0.0,
1.0,
7.0,
7.0,
1.0,
8.0,
1.0
1 year ago
],
"yaxis": "y10",
1 year ago
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal"
1 year ago
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x",
1 year ago
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1 year ago
0.0
],
"yaxis": "y",
1 year ago
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain"
1 year ago
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x2",
1 year ago
"y": [
4.0,
1.0,
0.0,
1.0,
3.0,
1 year ago
2.0,
3.0,
0.0,
1 year ago
1.0,
0.0,
0.0
],
"yaxis": "y2",
1 year ago
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden"
1 year ago
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x3",
1 year ago
"y": [
0.0,
0.0,
0.0,
0.0,
1.0,
1.0,
3.0,
1 year ago
1.0,
0.0,
1.0,
1 year ago
0.0
],
"yaxis": "y3",
1 year ago
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom"
1 year ago
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x4",
1 year ago
"y": [
0.0,
0.0,
1.0,
1.0,
10.0,
24.0,
36.0,
29.0,
4.0,
1.0,
1 year ago
0.0
],
"yaxis": "y4",
1 year ago
"type": "scatter"
}
],
"layout": {
"annotations": [
{
"showarrow": false,
"text": "Portugal",
"x": 0.09200000000000001,
"xanchor": "center",
"xref": "paper",
"y": 0.2866666666666666,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
1 year ago
},
{
"showarrow": false,
"text": "Spain",
"x": 0.29600000000000004,
"xanchor": "center",
"xref": "paper",
"y": 0.2866666666666666,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
1 year ago
},
{
"showarrow": false,
"text": "Sweden",
"x": 0.5,
"xanchor": "center",
"xref": "paper",
"y": 0.2866666666666666,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
1 year ago
},
{
"showarrow": false,
"text": "United Kingdom",
"x": 0.7040000000000002,
"xanchor": "center",
"xref": "paper",
"y": 0.2866666666666666,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
1 year ago
},
{
"showarrow": false,
"text": "Finland",
"x": 0.09200000000000001,
"xanchor": "center",
"xref": "paper",
"y": 0.6433333333333333,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
1 year ago
},
{
"showarrow": false,
"text": "France",
"x": 0.29600000000000004,
"xanchor": "center",
"xref": "paper",
"y": 0.6433333333333333,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
1 year ago
},
{
"showarrow": false,
"text": "Germany",
"x": 0.5,
"xanchor": "center",
"xref": "paper",
"y": 0.6433333333333333,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
1 year ago
},
{
"showarrow": false,
"text": "Luxembourg",
"x": 0.7040000000000002,
"xanchor": "center",
"xref": "paper",
"y": 0.6433333333333333,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
1 year ago
},
{
"showarrow": false,
"text": "Netherlands",
"x": 0.908,
"xanchor": "center",
"xref": "paper",
"y": 0.6433333333333333,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
1 year ago
},
{
"showarrow": false,
"text": "Austria",
"x": 0.09200000000000001,
"xanchor": "center",
"xref": "paper",
"y": 0.9999999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
1 year ago
},
{
"showarrow": false,
"text": "Belgium",
"x": 0.29600000000000004,
"xanchor": "center",
"xref": "paper",
"y": 0.9999999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
1 year ago
},
{
"showarrow": false,
"text": "Czech Republic",
"x": 0.5,
"xanchor": "center",
"xref": "paper",
"y": 0.9999999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
1 year ago
},
{
"showarrow": false,
"text": "Denmark",
"x": 0.7040000000000002,
"xanchor": "center",
"xref": "paper",
"y": 0.9999999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
1 year ago
},
{
"showarrow": false,
"text": "European Patent Office",
"x": 0.908,
1 year ago
"xanchor": "center",
"xref": "paper",
"y": 0.9999999999999999,
1 year ago
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
}
],
"font": {
"family": "Montserrat",
"size": 22
},
1 year ago
"legend": {
"tracegroupgap": 0
},
"template": {
"data": {
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"text": "Yearly output of co-patents by patent authority"
},
"xaxis": {
"anchor": "y",
"domain": [
0.0,
0.18400000000000002
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis": {
"anchor": "x",
"domain": [
0.0,
0.2866666666666666
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis2": {
"anchor": "y2",
"domain": [
0.20400000000000001,
0.388
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis2": {
"anchor": "x2",
"domain": [
0.0,
0.2866666666666666
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis3": {
"anchor": "y3",
"domain": [
0.40800000000000003,
0.5920000000000001
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis3": {
"anchor": "x3",
"domain": [
0.0,
0.2866666666666666
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis4": {
"anchor": "y4",
"domain": [
0.6120000000000001,
0.7960000000000002
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis4": {
"anchor": "x4",
"domain": [
0.0,
0.2866666666666666
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis5": {
"anchor": "y5",
"domain": [
0.8160000000000001,
1.0
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis5": {
"anchor": "x5",
"domain": [
0.0,
0.2866666666666666
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis6": {
"anchor": "y6",
"domain": [
0.0,
0.18400000000000002
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
1 year ago
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis6": {
"anchor": "x6",
"domain": [
0.35666666666666663,
0.6433333333333333
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis7": {
"anchor": "y7",
"domain": [
0.20400000000000001,
0.388
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis7": {
"anchor": "x7",
"domain": [
0.35666666666666663,
0.6433333333333333
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
1 year ago
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis8": {
"anchor": "y8",
"domain": [
0.40800000000000003,
0.5920000000000001
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis8": {
"anchor": "x8",
"domain": [
0.35666666666666663,
0.6433333333333333
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis9": {
"anchor": "y9",
"domain": [
0.6120000000000001,
0.7960000000000002
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis9": {
"anchor": "x9",
"domain": [
0.35666666666666663,
0.6433333333333333
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis10": {
"anchor": "y10",
"domain": [
0.8160000000000001,
1.0
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis10": {
"anchor": "x10",
"domain": [
0.35666666666666663,
0.6433333333333333
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis11": {
"anchor": "y11",
"domain": [
0.0,
0.18400000000000002
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis11": {
"anchor": "x11",
"domain": [
0.7133333333333333,
0.9999999999999999
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis12": {
"anchor": "y12",
"domain": [
0.20400000000000001,
0.388
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis12": {
"anchor": "x12",
"domain": [
0.7133333333333333,
0.9999999999999999
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis13": {
"anchor": "y13",
"domain": [
0.40800000000000003,
0.5920000000000001
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis13": {
"anchor": "x13",
"domain": [
0.7133333333333333,
0.9999999999999999
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
1 year ago
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis14": {
"anchor": "y14",
"domain": [
0.6120000000000001,
0.7960000000000002
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis14": {
"anchor": "x14",
"domain": [
0.7133333333333333,
0.9999999999999999
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis15": {
"anchor": "y15",
"domain": [
0.8160000000000001,
1.0
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis15": {
"anchor": "x15",
"domain": [
0.7133333333333333,
0.9999999999999999
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
}
},
"config": {
"plotlyServerURL": "https://plotly.com"
}
},
"text/html": "<div> <div id=\"b87c87b3-cee7-465b-a1b3-4f416385e429\" class=\"plotly-graph-div\" style=\"height:525px; width:100%;\"></div> <script type=\"text/javascript\"> require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"b87c87b3-cee7-465b-a1b3-4f416385e429\")) { Plotly.newPlot( \"b87c87b3-cee7-465b-a1b3-4f416385e429\", [{\"hovertemplate\":\"<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}\",\"hovertext\":[\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\"],\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"},\"mode\":\"markers+lines\",\"name\":\"\",\"orientation\":\"v\",\"showlegend\":false,\"x\":[2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021],\"xaxis\":\"x11\",\"y\":[0.0,1.0,0.0,0.0,1.0,0.0,0.0,0.0,2.0,2.0,0.0],\"yaxis\":\"y11\",\"type\":\"scatter\"},{\"hovertemplate\":\"<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}\",\"hovertext\":[\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\"],\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"},\"mode\":\"markers+lines\",\"name\":\"\",\"orientation\":\"v\",\"showlegend\":false,\"x\":[2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021],\"xaxis\":\"x12\",\"y\":[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0],\"yaxis\":\"y12\",\"type\":\"scatter\"},{\"hovertemplate\":\"<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}\",\"hovertext\":[\"Czech Republic\",\"Czech Republic\",\"Czech Republic\",\"Czech Republic\",\"Czech Republic\",\"Czech Republic\",\"Czech Republic\",\"Czech Republic\",\"Czech Republic\",\"Czech Republic\",\"Czech Republic\"],\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"},\"mode\":\"markers+lines\",\"name\":\"\",\"orientation\":\"v\",\"showlegend\":false,\"x\":[2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021],\"xaxis\":\"x13\",\"y\":[0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,2.0,1.0,0.0],\"yaxis\":\"y13\",\"type\":\"scatter\"},{\"hovertemplate\":\"<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}\",\"hovertext\":[\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\"],\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"},\"mode\":\"markers+lines\",\"name\":\"\",\"orientation\":\"v\",\"showlegend\":false,\"x\":[2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021],\"xaxis\":\"x14\",\"y\":[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,2.0,0.0,0.0],\"yaxis\":\"y14\",\"type\":\"scatter\"},{\"hovertemplate\":\"<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}\",\"hovertext\":[\"European Patent Office\",\"European Patent Office\",\"European Patent Office\",\"European Patent Office\",\"European Patent Office\",\"European Patent Office\",\"European Patent Office\",\"European Patent Office\",\"European Patent Office\",\"European Patent Office\",\"European Patent Office\"],\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"},\"mode\":\"markers+lines\",\"name\":\"\",\"orientation\":\"v\",\"showlegend\":false,\"x\":[2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021],\"xaxis\":\"x15\",\"y\":[17.0,15.0,16.0,19.0,28.0,34.0,56.0,102.0,109.0,86.0,33.0],\"yaxis\":\"y15\",\"type\":\"scatter\"},{\"hovertemplate\":\"<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}\",\"hovertext\":[\"Finland\",\"Finland\",\"Finland\",\"Finland\",\"Finland\",\"Finland\",\"Finland\",\"Finland\",\"Finland\",\"Finland\",\"Finland\"],\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"data = (appln_f.groupby(['filing_year',\"appln_auth\"])[record_col]\n",
" .nunique(dropna=False).unstack()\n",
" .fillna(0)\n",
" .stack()\n",
" .reset_index()\n",
" .rename(columns={0:record_col}))\n",
"\n",
"data[\"appln_auth\"].str.replace(\"MO\",\"CN\")\n",
"\n",
"data = data.merge(data[data[record_col]>0].sort_values(by=[\"filing_year\"], ascending=True).drop_duplicates(subset=\"appln_auth\"),\n",
" on=[\"appln_auth\"], suffixes=[None,\"_relative_growth\"])\n",
"data[record_col+\"_relative_growth\"] = (data[record_col]-data[record_col+\"_relative_growth\"])/data[record_col+\"_relative_growth\"]\n",
"data = data.sort_values(by =[\"appln_auth\",\"filing_year\"], ascending=[True,True])\n",
"data[record_col+\"_cumsum\"] = (data.groupby('appln_auth',as_index=False)[record_col].cumsum())\n",
"data[\"Country\"] = cc.pandas_convert(series=data[\"appln_auth\"], to='name_short')\n",
"data[\"Country\"] = data[\"Country\"].str.replace(\"not found\",\"European Patent Office\")\n",
"\n",
"\n",
"fig = px.line(data.sort_values(ascending=True, by='filing_year'),\n",
" y=record_col,\n",
" x='filing_year'\n",
" ,facet_col=\"Country\",facet_col_wrap=5,category_orders={\"Country\": sorted(data[\"Country\"].unique())},\n",
" markers=True,\n",
" labels={\n",
" record_col: 'Number of co-patents',\n",
" },\n",
" title=\"Yearly output of co-patents by patent authority\",hover_name= \"Country\")\n",
"fig.update_traces(hovertemplate='<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}')\n",
"fig.update_yaxes(\n",
" showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n",
" ticks=\"outside\")\n",
"fig.update_xaxes(\n",
" showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n",
" ticks=\"outside\")\n",
"fig.update_layout({'template':\"plotly\"},font_family=\"Montserrat\")\n",
"fig.update_yaxes(title='')\n",
"fig.update_xaxes(title='')\n",
"fig.for_each_annotation(lambda a: a.update(text=a.text.split(\"=\")[-1]))\n",
"# fig.show(config= dict(displayModeBar = False, responsive = True))\n",
"figsuper_ppt = go.Figure(fig)\n",
"\n",
"figsuper_ppt['layout'][\"font\"][\"size\"]=22\n",
"# figsuper['layout'][\"xaxis\"][\"range\"] = [20,2022.5]\n",
"for a in figsuper_ppt['layout'][\"annotations\"]:\n",
" a[\"font\"][\"size\"] = 22\n",
"\n",
"s=16\n",
"figsuper_ppt.update_yaxes(tickfont=dict(size=s))\n",
"figsuper_ppt.update_xaxes(tickfont=dict(size=s),tickangle=45)\n",
"figsuper_ppt.show(height=800,width=1600,scale = 4)\n",
"figsuper_ppt.write_image(f\"{fromdir}/plots/yearly_outputs.png\",height=800,width=1600,scale = 4)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 442,
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Austria",
"Austria",
"Austria",
"Austria",
"Austria",
"Austria",
"Austria",
"Austria",
"Austria",
"Austria",
"Austria"
1 year ago
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
1 year ago
},
"marker": {
"symbol": "circle"
1 year ago
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
],
"xaxis": "x11",
"y": [
-1.0,
0.0,
-1.0,
-1.0,
0.0,
-1.0,
-1.0,
-1.0,
1.0,
1.0,
-1.0
],
"yaxis": "y11",
"type": "scatter"
1 year ago
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium"
1 year ago
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
1 year ago
},
"marker": {
"symbol": "circle"
1 year ago
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x12",
"y": [
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
0.0,
0.0
],
"yaxis": "y12",
"type": "scatter"
1 year ago
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Czech Republic",
"Czech Republic",
"Czech Republic",
"Czech Republic",
"Czech Republic",
"Czech Republic",
"Czech Republic",
"Czech Republic",
"Czech Republic",
"Czech Republic",
"Czech Republic"
1 year ago
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
1 year ago
},
"marker": {
"symbol": "circle"
1 year ago
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
],
"xaxis": "x13",
"y": [
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
0.0,
1.0,
0.0,
-1.0
],
"yaxis": "y13",
"type": "scatter"
1 year ago
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark"
1 year ago
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
1 year ago
},
"marker": {
"symbol": "circle"
1 year ago
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x14",
"y": [
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
0.0,
-1.0,
-1.0
],
"yaxis": "y14",
"type": "scatter"
1 year ago
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"European Patent Office",
"European Patent Office",
"European Patent Office",
"European Patent Office",
"European Patent Office",
"European Patent Office",
"European Patent Office",
"European Patent Office",
"European Patent Office",
"European Patent Office",
"European Patent Office"
1 year ago
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
1 year ago
},
"marker": {
"symbol": "circle"
1 year ago
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x15",
"y": [
1 year ago
0.0,
-0.11764705882352941,
-0.058823529411764705,
0.11764705882352941,
0.6470588235294118,
1.0,
2.2941176470588234,
5.0,
5.411764705882353,
4.0588235294117645,
0.9411764705882353
1 year ago
],
"yaxis": "y15",
"type": "scatter"
1 year ago
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Finland",
"Finland",
"Finland",
"Finland",
"Finland",
"Finland",
"Finland",
"Finland",
"Finland",
"Finland",
"Finland"
1 year ago
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
1 year ago
},
"marker": {
"symbol": "circle"
1 year ago
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x6",
"y": [
0.0,
-0.3333333333333333,
-0.6666666666666666,
-0.6666666666666666,
0.0,
-0.6666666666666666,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0
],
"yaxis": "y6",
"type": "scatter"
1 year ago
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"France",
"France",
"France",
"France",
"France",
"France",
"France",
"France",
"France",
"France",
"France"
1 year ago
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
1 year ago
},
"marker": {
"symbol": "circle"
1 year ago
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x7",
"y": [
0.0,
-0.1,
0.4,
-0.5,
0.3,
0.2,
0.3,
-0.4,
0.1,
0.4,
-0.4
],
"yaxis": "y7",
"type": "scatter"
1 year ago
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Germany",
"Germany",
"Germany",
"Germany",
"Germany",
"Germany",
"Germany",
"Germany",
"Germany",
"Germany",
"Germany"
1 year ago
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
1 year ago
},
"marker": {
"symbol": "circle"
1 year ago
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x8",
"y": [
0.0,
0.0,
1.2142857142857142,
1.0714285714285714,
0.7142857142857143,
0.2857142857142857,
1.1428571428571428,
1.0,
0.35714285714285715,
0.35714285714285715,
0.07142857142857142
],
"yaxis": "y8",
"type": "scatter"
1 year ago
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg"
1 year ago
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
1 year ago
},
"marker": {
"symbol": "circle"
1 year ago
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x9",
1 year ago
"y": [
-1.0,
-1.0,
-1.0,
1 year ago
0.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
1.0,
1.0
1 year ago
],
"yaxis": "y9",
1 year ago
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands"
1 year ago
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x10",
1 year ago
"y": [
-1.0,
-1.0,
1 year ago
0.0,
0.0,
-1.0,
0.0,
6.0,
6.0,
0.0,
7.0,
0.0
1 year ago
],
"yaxis": "y10",
1 year ago
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal"
1 year ago
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x",
1 year ago
"y": [
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
1 year ago
0.0,
-1.0,
-1.0,
-1.0,
-1.0,
1 year ago
-1.0
],
"yaxis": "y",
1 year ago
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain"
1 year ago
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x2",
1 year ago
"y": [
0.0,
-0.75,
-1.0,
-0.75,
-0.25,
-0.5,
-0.25,
-1.0,
-0.75,
-1.0,
-1.0
],
"yaxis": "y2",
1 year ago
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden"
1 year ago
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x3",
1 year ago
"y": [
-1.0,
-1.0,
-1.0,
-1.0,
1 year ago
0.0,
0.0,
2.0,
1 year ago
0.0,
-1.0,
1 year ago
0.0,
-1.0
1 year ago
],
"yaxis": "y3",
1 year ago
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom"
1 year ago
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x4",
1 year ago
"y": [
-1.0,
-1.0,
1 year ago
0.0,
0.0,
9.0,
23.0,
35.0,
28.0,
3.0,
0.0,
1 year ago
-1.0
],
"yaxis": "y4",
1 year ago
"type": "scatter"
}
],
"layout": {
"annotations": [
{
"showarrow": false,
"text": "Portugal",
"x": 0.09200000000000001,
"xanchor": "center",
"xref": "paper",
"y": 0.2866666666666666,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
1 year ago
},
{
"showarrow": false,
"text": "Spain",
"x": 0.29600000000000004,
"xanchor": "center",
"xref": "paper",
"y": 0.2866666666666666,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
1 year ago
},
{
"showarrow": false,
"text": "Sweden",
"x": 0.5,
"xanchor": "center",
"xref": "paper",
"y": 0.2866666666666666,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
1 year ago
},
{
"showarrow": false,
"text": "United Kingdom",
"x": 0.7040000000000002,
"xanchor": "center",
"xref": "paper",
"y": 0.2866666666666666,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
1 year ago
},
{
"showarrow": false,
"text": "Finland",
"x": 0.09200000000000001,
"xanchor": "center",
"xref": "paper",
"y": 0.6433333333333333,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
1 year ago
},
{
"showarrow": false,
"text": "France",
"x": 0.29600000000000004,
"xanchor": "center",
"xref": "paper",
"y": 0.6433333333333333,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
1 year ago
},
{
"showarrow": false,
"text": "Germany",
"x": 0.5,
"xanchor": "center",
"xref": "paper",
"y": 0.6433333333333333,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
1 year ago
},
{
"showarrow": false,
"text": "Luxembourg",
"x": 0.7040000000000002,
"xanchor": "center",
"xref": "paper",
"y": 0.6433333333333333,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
1 year ago
},
{
"showarrow": false,
"text": "Netherlands",
"x": 0.908,
"xanchor": "center",
"xref": "paper",
"y": 0.6433333333333333,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
1 year ago
},
{
"showarrow": false,
"text": "Austria",
"x": 0.09200000000000001,
"xanchor": "center",
"xref": "paper",
"y": 0.9999999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
1 year ago
},
{
"showarrow": false,
"text": "Belgium",
"x": 0.29600000000000004,
"xanchor": "center",
"xref": "paper",
"y": 0.9999999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
1 year ago
},
{
"showarrow": false,
"text": "Czech Republic",
"x": 0.5,
"xanchor": "center",
"xref": "paper",
"y": 0.9999999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
1 year ago
},
{
"showarrow": false,
"text": "Denmark",
"x": 0.7040000000000002,
"xanchor": "center",
"xref": "paper",
"y": 0.9999999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
1 year ago
},
{
"showarrow": false,
"text": "European Patent Office",
"x": 0.908,
"xanchor": "center",
"xref": "paper",
"y": 0.9999999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
}
],
"font": {
"family": "Montserrat",
"size": 22
},
"legend": {
"tracegroupgap": 0
1 year ago
},
"template": {
"data": {
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
1 year ago
},
"title": {
"text": "Yearly rel. output of co-patents by patent authority"
1 year ago
},
"xaxis": {
"anchor": "y",
"domain": [
0.0,
0.18400000000000002
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
1 year ago
},
"tickfont": {
"size": 16
1 year ago
},
"tickangle": 45
},
"yaxis": {
"anchor": "x",
"domain": [
1 year ago
0.0,
0.2866666666666666
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
1 year ago
},
"xaxis2": {
"anchor": "y2",
"domain": [
0.20400000000000001,
0.388
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
1 year ago
},
"tickfont": {
"size": 16
1 year ago
},
"tickangle": 45
},
"yaxis2": {
"anchor": "x2",
"domain": [
1 year ago
0.0,
0.2866666666666666
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
1 year ago
},
"xaxis3": {
"anchor": "y3",
"domain": [
0.40800000000000003,
0.5920000000000001
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
1 year ago
},
"tickfont": {
"size": 16
1 year ago
},
"tickangle": 45
},
"yaxis3": {
"anchor": "x3",
"domain": [
1 year ago
0.0,
0.2866666666666666
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
1 year ago
},
"xaxis4": {
"anchor": "y4",
"domain": [
0.6120000000000001,
0.7960000000000002
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
1 year ago
},
"tickfont": {
"size": 16
1 year ago
},
"tickangle": 45
1 year ago
},
"yaxis4": {
"anchor": "x4",
"domain": [
0.0,
0.2866666666666666
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
1 year ago
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"xaxis5": {
"anchor": "y5",
"domain": [
0.8160000000000001,
1.0
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis5": {
"anchor": "x5",
"domain": [
1 year ago
0.0,
0.2866666666666666
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
1 year ago
},
"xaxis6": {
"anchor": "y6",
"domain": [
0.0,
0.18400000000000002
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
1 year ago
},
"tickfont": {
"size": 16
1 year ago
},
"tickangle": 45
},
"yaxis6": {
"anchor": "x6",
"domain": [
0.35666666666666663,
0.6433333333333333
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
1 year ago
},
"xaxis7": {
"anchor": "y7",
"domain": [
0.20400000000000001,
0.388
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
1 year ago
},
"tickfont": {
"size": 16
1 year ago
},
"tickangle": 45
},
"yaxis7": {
"anchor": "x7",
"domain": [
0.35666666666666663,
0.6433333333333333
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
1 year ago
},
"xaxis8": {
"anchor": "y8",
"domain": [
0.40800000000000003,
0.5920000000000001
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
1 year ago
},
"tickfont": {
"size": 16
1 year ago
},
"tickangle": 45
},
"yaxis8": {
"anchor": "x8",
"domain": [
0.35666666666666663,
0.6433333333333333
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
1 year ago
},
"xaxis9": {
"anchor": "y9",
"domain": [
0.6120000000000001,
0.7960000000000002
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
1 year ago
},
"tickfont": {
"size": 16
1 year ago
},
"tickangle": 45
},
"yaxis9": {
"anchor": "x9",
"domain": [
0.35666666666666663,
0.6433333333333333
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
1 year ago
},
"xaxis10": {
"anchor": "y10",
"domain": [
0.8160000000000001,
1.0
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
1 year ago
},
"tickfont": {
"size": 16
1 year ago
},
"tickangle": 45
},
"yaxis10": {
"anchor": "x10",
"domain": [
0.35666666666666663,
0.6433333333333333
1 year ago
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
1 year ago
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"xaxis11": {
"anchor": "y11",
"domain": [
0.0,
0.18400000000000002
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
1 year ago
},
"tickfont": {
"size": 16
1 year ago
},
"tickangle": 45
},
"yaxis11": {
"anchor": "x11",
"domain": [
0.7133333333333333,
0.9999999999999999
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
1 year ago
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"xaxis12": {
"anchor": "y12",
"domain": [
0.20400000000000001,
0.388
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
1 year ago
},
"tickfont": {
"size": 16
1 year ago
},
"tickangle": 45
},
"yaxis12": {
"anchor": "x12",
"domain": [
0.7133333333333333,
0.9999999999999999
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
1 year ago
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"xaxis13": {
"anchor": "y13",
"domain": [
0.40800000000000003,
0.5920000000000001
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
1 year ago
},
"tickfont": {
"size": 16
1 year ago
},
"tickangle": 45
},
"yaxis13": {
"anchor": "x13",
"domain": [
0.7133333333333333,
0.9999999999999999
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
1 year ago
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"xaxis14": {
"anchor": "y14",
"domain": [
0.6120000000000001,
0.7960000000000002
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
1 year ago
},
"tickfont": {
"size": 16
1 year ago
},
"tickangle": 45
},
"yaxis14": {
"anchor": "x14",
"domain": [
0.7133333333333333,
0.9999999999999999
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
1 year ago
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"xaxis15": {
"anchor": "y15",
"domain": [
0.8160000000000001,
1.0
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
1 year ago
},
"tickfont": {
"size": 16
1 year ago
},
"tickangle": 45
},
"yaxis15": {
"anchor": "x15",
"domain": [
0.7133333333333333,
0.9999999999999999
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
1 year ago
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
}
},
"config": {
"plotlyServerURL": "https://plotly.com"
}
},
"text/html": "<div> <div id=\"a2954aef-dd42-43a0-9428-0ec9fae980c8\" class=\"plotly-graph-div\" style=\"height:525px; width:100%;\"></div> <script type=\"text/javascript\"> require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"a2954aef-dd42-43a0-9428-0ec9fae980c8\")) { Plotly.newPlot( \"a2954aef-dd42-43a0-9428-0ec9fae980c8\", [{\"hovertemplate\":\"<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}\",\"hovertext\":[\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\"],\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"},\"mode\":\"markers+lines\",\"name\":\"\",\"orientation\":\"v\",\"showlegend\":false,\"x\":[2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021],\"xaxis\":\"x11\",\"y\":[-1.0,0.0,-1.0,-1.0,0.0,-1.0,-1.0,-1.0,1.0,1.0,-1.0],\"yaxis\":\"y11\",\"type\":\"scatter\"},{\"hovertemplate\":\"<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}\",\"hovertext\":[\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\"],\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"},\"mode\":\"markers+lines\",\"name\":\"\",\"orientation\":\"v\",\"showlegend\":false,\"x\":[2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021],\"xaxis\":\"x12\",\"y\":[-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,0.0,0.0],\"yaxis\":\"y12\",\"type\":\"scatter\"},{\"hovertemplate\":\"<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}\",\"hovertext\":[\"Czech Republic\",\"Czech Republic\",\"Czech Republic\",\"Czech Republic\",\"Czech Republic\",\"Czech Republic\",\"Czech Republic\",\"Czech Republic\",\"Czech Republic\",\"Czech Republic\",\"Czech Republic\"],\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"},\"mode\":\"markers+lines\",\"name\":\"\",\"orientation\":\"v\",\"showlegend\":false,\"x\":[2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021],\"xaxis\":\"x13\",\"y\":[-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,0.0,1.0,0.0,-1.0],\"yaxis\":\"y13\",\"type\":\"scatter\"},{\"hovertemplate\":\"<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}\",\"hovertext\":[\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\"],\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"},\"mode\":\"markers+lines\",\"name\":\"\",\"orientation\":\"v\",\"showlegend\":false,\"x\":[2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021],\"xaxis\":\"x14\",\"y\":[-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,0.0,-1.0,-1.0],\"yaxis\":\"y14\",\"type\":\"scatter\"},{\"hovertemplate\":\"<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}\",\"hovertext\":[\"European Patent Office\",\"European Patent Office\",\"European Patent Office\",\"European Patent Office\",\"European Patent Office\",\"European Patent Office\",\"European Patent Office\",\"European Patent Office\",\"European Patent Office\",\"European Patent Office\",\"European Patent Office\"],\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"},\"mode\":\"markers+lines\",\"name\":\"\",\"orientation\":\"v\",\"showlegend\":false,\"x\":[2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021],\"xaxis\":\"x15\",\"y\":[0.0,-0.11764705882352941,-0.058823529411764705,0.11764705882352941,0.6470588235294118,1.0,2.2941176470588234,5.0,5.411764705882353,4.0588235294117645,0.9411764705882353],\"yaxis\":\"y15\",\"type\":\"scatter\"},{\"hovertemplate\":\"<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}\",\"hovertext\":[\"Finland\",\"Finland\",\"Finland\",\"Finland\",\"Finland\",\"Finland\",\"Finland\",\"Finland
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = px.line(data.sort_values(ascending=True, by='filing_year'),\n",
" y=record_col+\"_relative_growth\",\n",
" x='filing_year'\n",
" ,facet_col=\"Country\",facet_col_wrap=5,category_orders={\"Country\": sorted(data[\"Country\"].unique())},\n",
" markers=True,\n",
" labels={\n",
" record_col+\"_relative_growth\": 'Relative growth of co-patents (%)',\n",
" },\n",
" title=\"Yearly rel. output of co-patents by patent authority\",hover_name= \"Country\")\n",
"fig.update_traces(hovertemplate='<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}')\n",
"fig.update_yaxes(\n",
" showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n",
" ticks=\"outside\")\n",
"fig.update_xaxes(\n",
" showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n",
" ticks=\"outside\")\n",
"fig.update_layout({'template':\"plotly\"},font_family=\"Montserrat\")\n",
"fig.update_yaxes(title='')\n",
"fig.update_xaxes(title='')\n",
"fig.for_each_annotation(lambda a: a.update(text=a.text.split(\"=\")[-1]))\n",
"# fig.show(config= dict(displayModeBar = False, responsive = True))\n",
"\n",
"figsuper_ppt = go.Figure(fig)\n",
"\n",
"figsuper_ppt['layout'][\"font\"][\"size\"]=22\n",
"for a in figsuper_ppt['layout'][\"annotations\"]:\n",
" a[\"font\"][\"size\"] = 22\n",
"\n",
"s=16\n",
"figsuper_ppt.update_yaxes(title='',zeroline=True, zerolinewidth=2, zerolinecolor='grey',tickformat=\".0%\")\n",
"figsuper_ppt.update_yaxes(tickfont=dict(size=s))\n",
"figsuper_ppt.update_xaxes(tickfont=dict(size=s),tickangle=45)\n",
"figsuper_ppt.show(height=800,width=1600,scale = 4)\n",
"figsuper_ppt.write_image(f\"{fromdir}/plots/yearly_rel_outputs.png\",height=800,width=1600,scale = 4)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 405,
"outputs": [],
"source": [],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 446,
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"EP not found in ISO2\n",
"European Patent Office not found in regex\n"
]
},
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "Country type=China<br>Number of co-patents=%{x}<br>Name=%{y}<extra></extra>",
"legendgroup": "China",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
1 year ago
}
},
"name": "China",
"offsetgroup": "China",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
252,
89,
83,
62,
13,
10,
9,
8,
8,
7,
7,
6,
5,
3,
3
],
"xaxis": "x",
"y": [
"NINGBO GEELY AUTOMOBILE R<br>D CO LTD (CHN)",
"TCL COMM LTD (CHN)",
"ZHEJIANG GEELY HOLDINGGROUP CO LTD (CHN)",
"HUAWEI TECH CO LTD (CHN)",
"CRRC QINGDAO SIFANG CO LTD (CHN)",
"BEIJING XIAOMI MOBILE SOFTWARE CO LTD (CHN)",
"ZF DRIVETECH SUZHOU CO LTD (CHN)",
"VENUS MEDTECH HANGZHOU INC (CHN)",
"ZHANGJIAGANG KANGDE XIN OPTRONICS MATERIAL CO LTD (CHN)",
"CNBM BENGBU DESIGN <br> RESEARCH INSTITUTE FOR GLASS IND CO LTD (CHN)",
"SHENZHEN GOODIX TECH CO LTD (CHN)",
"NOKIA SHANGHAI BELL CO LTD (CHN)",
"KEIPER SEATING MECHANISMS CO LTD (CHN)",
"HANERGY HOLDINGGROUP LTD (CHN)",
"SHANGHAI HENGXU MATERIALS CO LTD (CHN)"
],
"yaxis": "y",
"type": "bar"
}
],
"layout": {
"template": {
"data": {
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
1 year ago
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
1 year ago
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
1 year ago
}
}
},
"xaxis": {
"anchor": "y",
"domain": [
0.0,
1.0
],
"title": {
"text": "Number of co-patents"
1 year ago
},
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
"mirror": true,
"ticks": "outside"
},
"yaxis": {
"anchor": "x",
"domain": [
0.0,
1.0
],
"title": {
"text": "Name"
1 year ago
},
"categoryorder": "total ascending",
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
"mirror": true,
"ticks": "outside",
"tickfont": {
"size": 12
1 year ago
}
},
1 year ago
"legend": {
"title": {
"text": "Country type"
},
1 year ago
"tracegroupgap": 0
},
"margin": {
"t": 60
},
"barmode": "relative",
"font": {
"family": "Montserrat",
"size": 12
},
"yaxis2": {
"categoryorder": "total ascending",
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
"mirror": true,
"ticks": "outside"
},
"yaxis3": {
"categoryorder": "total ascending",
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
"mirror": true,
"ticks": "outside"
},
"uniformtext": {
"minsize": 10
}
},
"config": {
"displayModeBar": false,
"responsive": true,
"plotlyServerURL": "https://plotly.com"
}
},
"text/html": "<div> <div id=\"a8dbe105-0fcc-42cf-86de-7ce8a1eee871\" class=\"plotly-graph-div\" style=\"height:525px; width:100%;\"></div> <script type=\"text/javascript\"> require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"a8dbe105-0fcc-42cf-86de-7ce8a1eee871\")) { Plotly.newPlot( \"a8dbe105-0fcc-42cf-86de-7ce8a1eee871\", [{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Country type=China<br>Number of co-patents=%{x}<br>Name=%{y}<extra></extra>\",\"legendgroup\":\"China\",\"marker\":{\"color\":\"#EF553B\",\"pattern\":{\"shape\":\"\"}},\"name\":\"China\",\"offsetgroup\":\"China\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[252,89,83,62,13,10,9,8,8,7,7,6,5,3,3],\"xaxis\":\"x\",\"y\":[\"NINGBO GEELY AUTOMOBILE R<br>D CO LTD (CHN)\",\"TCL COMM LTD (CHN)\",\"ZHEJIANG GEELY HOLDINGGROUP CO LTD (CHN)\",\"HUAWEI TECH CO LTD (CHN)\",\"CRRC QINGDAO SIFANG CO LTD (CHN)\",\"BEIJING XIAOMI MOBILE SOFTWARE CO LTD (CHN)\",\"ZF DRIVETECH SUZHOU CO LTD (CHN)\",\"VENUS MEDTECH HANGZHOU INC (CHN)\",\"ZHANGJIAGANG KANGDE XIN OPTRONICS MATERIAL CO LTD (CHN)\",\"CNBM BENGBU DESIGN <br> RESEARCH INSTITUTE FOR GLASS IND CO LTD (CHN)\",\"SHENZHEN GOODIX TECH CO LTD (CHN)\",\"NOKIA SHANGHAI BELL CO LTD (CHN)\",\"KEIPER SEATING MECHANISMS CO LTD (CHN)\",\"HANERGY HOLDINGGROUP LTD (CHN)\",\"SHANGHAI HENGXU MATERIALS CO LTD (CHN)\"],\"yaxis\":\"y\",\"type\":\"bar\"}], {\"template\":{\"data\":{\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"barpolar\"}],\"bar\":[{\"error_x\":{\"color\":\"#2a3f5f\"},\"error_y\":{\"color\":\"#2a3f5f\"},\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"bar\"}],\"carpet\":[{\"aaxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"baxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"type\":\"carpet\"}],\"choropleth\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"choropleth\"}],\"contourcarpet\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"contourcarpet\"}],\"contour\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"contour\"}],\"heatmapgl\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"heatmapgl\"}],\"heatmap\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"heatmap\"}],\"histogram2dcontour\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.555555555555
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "Country type=EU<br>Number of co-patents=%{x}<br>Name=%{y}<extra></extra>",
"legendgroup": "EU",
"marker": {
"color": "#636EFA",
"pattern": {
"shape": ""
}
},
"name": "EU",
"offsetgroup": "EU",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
39,
24,
23,
14,
13,
13,
12,
11,
9,
9,
9,
8,
6,
6,
5
],
"xaxis": "x",
"y": [
"ROBERT BOSCH GMBH (DEU)",
"ARKEMA FR (FRA)",
"CNRS (FRA)",
"ZF FRIEDRICHSHAFEN AG (DEU)",
"CG RAIL CHINESISCH DEUTSCHES FORSCHUNGS <br> ENTWICKLUNGSZENTRUM FUR BAHN <br> VERKEHRSTECHNIK DRESDEN GMBH (DEU)",
"SIEMENS AG (DEU)",
"BAYERISCHE MOTOREN WERKE AG (DEU)",
"L OREAL (FRA)",
"SEB SA (FRA)",
"SEW EURODRIVE GMBH <br> CO KG (DEU)",
"SCHAEFFLER TECH AG<br>CO KG (DEU)",
"BOSTIK SA (FRA)",
"BASF SE (DEU)",
"BSH HAUSGERATE GMBH (DEU)",
"TELEFONICA SA (ESP)"
],
"yaxis": "y",
"type": "bar"
}
],
"layout": {
1 year ago
"template": {
"data": {
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
1 year ago
},
"xaxis": {
"anchor": "y",
1 year ago
"domain": [
0.0,
1.0
1 year ago
],
"title": {
"text": "Number of co-patents"
1 year ago
},
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
1 year ago
"mirror": true,
"ticks": "outside"
1 year ago
},
"yaxis": {
"anchor": "x",
1 year ago
"domain": [
0.0,
1 year ago
1.0
],
"title": {
"text": "Name"
1 year ago
},
"categoryorder": "total ascending",
1 year ago
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
"mirror": true,
1 year ago
"ticks": "outside",
"tickfont": {
"size": 12
1 year ago
}
},
"legend": {
1 year ago
"title": {
"text": "Country type"
1 year ago
},
"tracegroupgap": 0
1 year ago
},
"margin": {
"t": 60
},
"barmode": "relative",
"font": {
"family": "Montserrat",
"size": 12
},
"yaxis2": {
"categoryorder": "total ascending",
"showgrid": true,
"showline": true,
1 year ago
"linewidth": 1,
"linecolor": "black",
1 year ago
"mirror": true,
"ticks": "outside"
},
"yaxis3": {
"categoryorder": "total ascending",
1 year ago
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
"mirror": true,
"ticks": "outside"
},
"uniformtext": {
"minsize": 10
}
},
"config": {
"displayModeBar": false,
"responsive": true,
"plotlyServerURL": "https://plotly.com"
}
},
"text/html": "<div> <div id=\"d7490bc7-cba1-40ca-9576-018a955c00b1\" class=\"plotly-graph-div\" style=\"height:525px; width:100%;\"></div> <script type=\"text/javascript\"> require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"d7490bc7-cba1-40ca-9576-018a955c00b1\")) { Plotly.newPlot( \"d7490bc7-cba1-40ca-9576-018a955c00b1\", [{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Country type=EU<br>Number of co-patents=%{x}<br>Name=%{y}<extra></extra>\",\"legendgroup\":\"EU\",\"marker\":{\"color\":\"#636EFA\",\"pattern\":{\"shape\":\"\"}},\"name\":\"EU\",\"offsetgroup\":\"EU\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[39,24,23,14,13,13,12,11,9,9,9,8,6,6,5],\"xaxis\":\"x\",\"y\":[\"ROBERT BOSCH GMBH (DEU)\",\"ARKEMA FR (FRA)\",\"CNRS (FRA)\",\"ZF FRIEDRICHSHAFEN AG (DEU)\",\"CG RAIL CHINESISCH DEUTSCHES FORSCHUNGS <br> ENTWICKLUNGSZENTRUM FUR BAHN <br> VERKEHRSTECHNIK DRESDEN GMBH (DEU)\",\"SIEMENS AG (DEU)\",\"BAYERISCHE MOTOREN WERKE AG (DEU)\",\"L OREAL (FRA)\",\"SEB SA (FRA)\",\"SEW EURODRIVE GMBH <br> CO KG (DEU)\",\"SCHAEFFLER TECH AG<br>CO KG (DEU)\",\"BOSTIK SA (FRA)\",\"BASF SE (DEU)\",\"BSH HAUSGERATE GMBH (DEU)\",\"TELEFONICA SA (ESP)\"],\"yaxis\":\"y\",\"type\":\"bar\"}], {\"template\":{\"data\":{\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"barpolar\"}],\"bar\":[{\"error_x\":{\"color\":\"#2a3f5f\"},\"error_y\":{\"color\":\"#2a3f5f\"},\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"bar\"}],\"carpet\":[{\"aaxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"baxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"type\":\"carpet\"}],\"choropleth\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"choropleth\"}],\"contourcarpet\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"contourcarpet\"}],\"contour\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"contour\"}],\"heatmapgl\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"heatmapgl\"}],\"heatmap\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"heatmap\"}],\"histogram2dcontour\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"histogram2dcontour\"}
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "Sector=COMPANY<br>Number of co-patents=%{x}<br>Name=%{y}<extra></extra>",
"legendgroup": "COMPANY",
"marker": {
"color": "#FFA15A",
"pattern": {
"shape": ""
}
},
"name": "COMPANY",
"offsetgroup": "COMPANY",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
252,
89,
83,
62,
13,
10,
9,
8,
8,
7,
7,
6,
3,
3
],
"xaxis": "x",
"y": [
"NINGBO GEELY AUTOMOBILE R<br>D CO LTD (CHN)",
"TCL COMM LTD (CHN)",
"ZHEJIANG GEELY HOLDINGGROUP CO LTD (CHN)",
"HUAWEI TECH CO LTD (CHN)",
"CRRC QINGDAO SIFANG CO LTD (CHN)",
"BEIJING XIAOMI MOBILE SOFTWARE CO LTD (CHN)",
"ZF DRIVETECH SUZHOU CO LTD (CHN)",
"VENUS MEDTECH HANGZHOU INC (CHN)",
"ZHANGJIAGANG KANGDE XIN OPTRONICS MATERIAL CO LTD (CHN)",
"CNBM BENGBU DESIGN <br> RESEARCH INSTITUTE FOR GLASS IND CO LTD (CHN)",
"SHENZHEN GOODIX TECH CO LTD (CHN)",
"NOKIA SHANGHAI BELL CO LTD (CHN)",
"HANERGY HOLDINGGROUP LTD (CHN)",
"SHANGHAI HENGXU MATERIALS CO LTD (CHN)"
],
"yaxis": "y",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "Sector=UNKNOWN<br>Number of co-patents=%{x}<br>Name=%{y}<extra></extra>",
"legendgroup": "UNKNOWN",
"marker": {
"color": "#19d3f3",
"pattern": {
"shape": ""
}
},
"name": "UNKNOWN",
"offsetgroup": "UNKNOWN",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
5
],
"xaxis": "x",
"y": [
"KEIPER SEATING MECHANISMS CO LTD (CHN)"
],
"yaxis": "y",
"type": "bar"
}
],
"layout": {
"template": {
"data": {
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
1 year ago
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
1 year ago
}
},
"xaxis": {
"anchor": "y",
1 year ago
"domain": [
0.0,
1.0
1 year ago
],
"title": {
"text": "Number of co-patents"
1 year ago
},
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
1 year ago
"mirror": true,
"ticks": "outside"
1 year ago
},
"yaxis": {
"anchor": "x",
1 year ago
"domain": [
0.0,
1.0
1 year ago
],
"title": {
"text": "Name"
1 year ago
},
"categoryorder": "total ascending",
1 year ago
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
1 year ago
"mirror": true,
"ticks": "outside",
"tickfont": {
"size": 12
1 year ago
}
},
"legend": {
1 year ago
"title": {
"text": "Sector"
1 year ago
},
"tracegroupgap": 0
1 year ago
},
"margin": {
"t": 60
},
"barmode": "relative",
"font": {
"family": "Montserrat",
"size": 12
},
"yaxis2": {
"categoryorder": "total ascending",
"showgrid": true,
"showline": true,
1 year ago
"linewidth": 1,
"linecolor": "black",
1 year ago
"mirror": true,
"ticks": "outside"
},
"yaxis3": {
"categoryorder": "total ascending",
1 year ago
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
"mirror": true,
"ticks": "outside"
},
"uniformtext": {
"minsize": 10
}
},
"config": {
"displayModeBar": false,
"responsive": true,
"plotlyServerURL": "https://plotly.com"
}
},
"text/html": "<div> <div id=\"28f6de7c-1fd3-4638-96d0-6a89f0e6f20d\" class=\"plotly-graph-div\" style=\"height:525px; width:100%;\"></div> <script type=\"text/javascript\"> require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"28f6de7c-1fd3-4638-96d0-6a89f0e6f20d\")) { Plotly.newPlot( \"28f6de7c-1fd3-4638-96d0-6a89f0e6f20d\", [{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Sector=COMPANY<br>Number of co-patents=%{x}<br>Name=%{y}<extra></extra>\",\"legendgroup\":\"COMPANY\",\"marker\":{\"color\":\"#FFA15A\",\"pattern\":{\"shape\":\"\"}},\"name\":\"COMPANY\",\"offsetgroup\":\"COMPANY\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[252,89,83,62,13,10,9,8,8,7,7,6,3,3],\"xaxis\":\"x\",\"y\":[\"NINGBO GEELY AUTOMOBILE R<br>D CO LTD (CHN)\",\"TCL COMM LTD (CHN)\",\"ZHEJIANG GEELY HOLDINGGROUP CO LTD (CHN)\",\"HUAWEI TECH CO LTD (CHN)\",\"CRRC QINGDAO SIFANG CO LTD (CHN)\",\"BEIJING XIAOMI MOBILE SOFTWARE CO LTD (CHN)\",\"ZF DRIVETECH SUZHOU CO LTD (CHN)\",\"VENUS MEDTECH HANGZHOU INC (CHN)\",\"ZHANGJIAGANG KANGDE XIN OPTRONICS MATERIAL CO LTD (CHN)\",\"CNBM BENGBU DESIGN <br> RESEARCH INSTITUTE FOR GLASS IND CO LTD (CHN)\",\"SHENZHEN GOODIX TECH CO LTD (CHN)\",\"NOKIA SHANGHAI BELL CO LTD (CHN)\",\"HANERGY HOLDINGGROUP LTD (CHN)\",\"SHANGHAI HENGXU MATERIALS CO LTD (CHN)\"],\"yaxis\":\"y\",\"type\":\"bar\"},{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Sector=UNKNOWN<br>Number of co-patents=%{x}<br>Name=%{y}<extra></extra>\",\"legendgroup\":\"UNKNOWN\",\"marker\":{\"color\":\"#19d3f3\",\"pattern\":{\"shape\":\"\"}},\"name\":\"UNKNOWN\",\"offsetgroup\":\"UNKNOWN\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[5],\"xaxis\":\"x\",\"y\":[\"KEIPER SEATING MECHANISMS CO LTD (CHN)\"],\"yaxis\":\"y\",\"type\":\"bar\"}], {\"template\":{\"data\":{\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"barpolar\"}],\"bar\":[{\"error_x\":{\"color\":\"#2a3f5f\"},\"error_y\":{\"color\":\"#2a3f5f\"},\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"bar\"}],\"carpet\":[{\"aaxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"baxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"type\":\"carpet\"}],\"choropleth\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"choropleth\"}],\"contourcarpet\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"contourcarpet\"}],\"contour\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"contour\"}],\"heatmapgl\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"heatmapgl\"}],\"heatmap\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "Sector=COMPANY<br>Number of co-patents=%{x}<br>Name=%{y}<extra></extra>",
"legendgroup": "COMPANY",
"marker": {
"color": "#FFA15A",
"pattern": {
"shape": ""
}
1 year ago
},
"name": "COMPANY",
"offsetgroup": "COMPANY",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
39,
24,
14,
13,
13,
12,
11,
9,
9,
9,
8,
6,
6,
5
],
"xaxis": "x",
"y": [
"ROBERT BOSCH GMBH (DEU)",
"ARKEMA FR (FRA)",
"ZF FRIEDRICHSHAFEN AG (DEU)",
"CG RAIL CHINESISCH DEUTSCHES FORSCHUNGS <br> ENTWICKLUNGSZENTRUM FUR BAHN <br> VERKEHRSTECHNIK DRESDEN GMBH (DEU)",
"SIEMENS AG (DEU)",
"BAYERISCHE MOTOREN WERKE AG (DEU)",
"L OREAL (FRA)",
"SEB SA (FRA)",
"SEW EURODRIVE GMBH <br> CO KG (DEU)",
"SCHAEFFLER TECH AG<br>CO KG (DEU)",
"BOSTIK SA (FRA)",
"BASF SE (DEU)",
"BSH HAUSGERATE GMBH (DEU)",
"TELEFONICA SA (ESP)"
],
"yaxis": "y",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "Sector=GOV NON-PROFIT<br>Number of co-patents=%{x}<br>Name=%{y}<extra></extra>",
"legendgroup": "GOV NON-PROFIT",
"marker": {
"color": "#19d3f3",
"pattern": {
"shape": ""
}
},
"name": "GOV NON-PROFIT",
"offsetgroup": "GOV NON-PROFIT",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
23
],
"xaxis": "x",
"y": [
"CNRS (FRA)"
],
"yaxis": "y",
"type": "bar"
}
],
"layout": {
"template": {
"data": {
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
1 year ago
}
},
"xaxis": {
"anchor": "y",
1 year ago
"domain": [
0.0,
1 year ago
1.0
],
"title": {
"text": "Number of co-patents"
1 year ago
},
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
"mirror": true,
"ticks": "outside"
1 year ago
},
"yaxis": {
"anchor": "x",
1 year ago
"domain": [
0.0,
1.0
1 year ago
],
"title": {
"text": "Name"
1 year ago
},
"categoryorder": "total ascending",
1 year ago
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
"mirror": true,
1 year ago
"ticks": "outside",
"tickfont": {
"size": 12
1 year ago
}
},
"legend": {
1 year ago
"title": {
"text": "Sector"
1 year ago
},
"tracegroupgap": 0
1 year ago
},
"margin": {
"t": 60
},
"barmode": "relative",
"font": {
"family": "Montserrat",
"size": 12
},
"yaxis2": {
"categoryorder": "total ascending",
1 year ago
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
1 year ago
"mirror": true,
"ticks": "outside"
},
"yaxis3": {
"categoryorder": "total ascending",
1 year ago
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
1 year ago
"mirror": true,
"ticks": "outside"
},
"uniformtext": {
"minsize": 10
}
},
"config": {
"displayModeBar": false,
"responsive": true,
"plotlyServerURL": "https://plotly.com"
}
},
"text/html": "<div> <div id=\"112c6b3d-afde-465d-820e-2527e8762cb3\" class=\"plotly-graph-div\" style=\"height:525px; width:100%;\"></div> <script type=\"text/javascript\"> require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"112c6b3d-afde-465d-820e-2527e8762cb3\")) { Plotly.newPlot( \"112c6b3d-afde-465d-820e-2527e8762cb3\", [{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Sector=COMPANY<br>Number of co-patents=%{x}<br>Name=%{y}<extra></extra>\",\"legendgroup\":\"COMPANY\",\"marker\":{\"color\":\"#FFA15A\",\"pattern\":{\"shape\":\"\"}},\"name\":\"COMPANY\",\"offsetgroup\":\"COMPANY\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[39,24,14,13,13,12,11,9,9,9,8,6,6,5],\"xaxis\":\"x\",\"y\":[\"ROBERT BOSCH GMBH (DEU)\",\"ARKEMA FR (FRA)\",\"ZF FRIEDRICHSHAFEN AG (DEU)\",\"CG RAIL CHINESISCH DEUTSCHES FORSCHUNGS <br> ENTWICKLUNGSZENTRUM FUR BAHN <br> VERKEHRSTECHNIK DRESDEN GMBH (DEU)\",\"SIEMENS AG (DEU)\",\"BAYERISCHE MOTOREN WERKE AG (DEU)\",\"L OREAL (FRA)\",\"SEB SA (FRA)\",\"SEW EURODRIVE GMBH <br> CO KG (DEU)\",\"SCHAEFFLER TECH AG<br>CO KG (DEU)\",\"BOSTIK SA (FRA)\",\"BASF SE (DEU)\",\"BSH HAUSGERATE GMBH (DEU)\",\"TELEFONICA SA (ESP)\"],\"yaxis\":\"y\",\"type\":\"bar\"},{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Sector=GOV NON-PROFIT<br>Number of co-patents=%{x}<br>Name=%{y}<extra></extra>\",\"legendgroup\":\"GOV NON-PROFIT\",\"marker\":{\"color\":\"#19d3f3\",\"pattern\":{\"shape\":\"\"}},\"name\":\"GOV NON-PROFIT\",\"offsetgroup\":\"GOV NON-PROFIT\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[23],\"xaxis\":\"x\",\"y\":[\"CNRS (FRA)\"],\"yaxis\":\"y\",\"type\":\"bar\"}], {\"template\":{\"data\":{\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"barpolar\"}],\"bar\":[{\"error_x\":{\"color\":\"#2a3f5f\"},\"error_y\":{\"color\":\"#2a3f5f\"},\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"bar\"}],\"carpet\":[{\"aaxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"baxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"type\":\"carpet\"}],\"choropleth\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"choropleth\"}],\"contourcarpet\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"contourcarpet\"}],\"contour\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"contour\"}],\"heatmapgl\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"heatmapgl\"}],\"heatmap\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"# appln_pers_f = pd.read_csv(f\"{outdir}/first-filings-with-persons-raw.csv\", header=None,\n",
"# names=[\"appln_id\",\"appln_auth\",\"person_id\",\"invt_seq_nr\",\"applt_seq_nr\",'person_name',\"person_ctry_code\"])\n",
"\n",
"# appln_pers_haninfo = pd.read_csv(f\"{outdir}/tls_206_scope.csv\", usecols=[\"person_id\",\"han_id\",\"han_name\",\"psn_sector\"])\n",
"#\n",
"# appln_pers_f = appln_pers_f.merge(appln_pers_haninfo, on=\"person_id\")\n",
"#\n",
"# tls_801 = pd.read_csv(r\"./EU_CH_scope/table_tls801.csv\", low_memory=False)\n",
"# # tls_801.head()\n",
"# scope_df = tls_801[((tls_801.eu_member==\"Y\")|\n",
"# (tls_801.ctry_code == 'CN')|\n",
"# (tls_801.ctry_code == 'NO')|\n",
"# (tls_801.ctry_code == 'CH')|\n",
"# (tls_801.ctry_code == 'UK'))]\n",
"# scope_countries = scope_df[\"ctry_code\"].unique()\n",
"#\n",
"# appln_pers_f = appln_pers_f[appln_pers_f[\"person_ctry_code\"].isin(scope_countries)]\n",
"\n",
"for c in [\"person_ctry_code\",\"appln_auth\"]:\n",
" appln_pers_f[c+\"_fullname\"] = cc.pandas_convert(series=appln_pers_f[c], to='name_short')\n",
"\n",
"appln_pers_f[\"appln_auth_fullname\"] = appln_pers_f[\"appln_auth_fullname\"].str.replace(\"not found\",\"European Patent Office\")\n",
"appln_pers_f[\"person_ctry_ISO3\"] = cc.pandas_convert(series=appln_pers_f[\"person_ctry_code_fullname\"], to='ISO3')\n",
"appln_pers_f[\"person_ctry_type\"] = appln_pers_f[\"person_ctry_ISO3\"].apply(lambda x: \"China\" if x == \"CHN\" else \"Non-EU associate\" if x in [\"GBR\",\"CHE\",\"NOR\"] else \"EU\")\n",
"\n",
"appln_pers_f[\"auth_ISO3\"] = cc.pandas_convert(series=appln_pers_f[\"appln_auth_fullname\"], to='ISO3')\n",
"appln_pers_f[\"auth_ctry_type\"] = appln_pers_f[\"auth_ISO3\"].apply(lambda x: \"China\" if x == \"CHN\" else \"Non-EU associate\" if x in [\"GBR\",\"CHE\",\"NOR\"] else \"EU\" if x!='not found' else \"EPO\")\n",
"\n",
"# top 25\n",
"# - inventor\n",
"# - applicant\n",
"# in china, EU, EUextended\n",
"color_discrete_map= {'China': '#EF553B',\n",
" 'EU': '#636EFA',\n",
" 'Non-EU associate': '#00CC96',\n",
" 'EPO':'#9F2B68'}\n",
"\n",
"labeld_dict = dict({\n",
" record_col: 'Number of co-patents',\n",
" \"person_ctry_type\": \"Country type\",\n",
" \"psn_sector_primary\":\"Sector\",\n",
" \"han_label\": \"Name\",\n",
" \"Country_Type\":\"Country type\",\n",
" \"Eurovoc_Class\":\"Region\"\n",
" })\n",
"for trait in [\"person_ctry_type\",\"psn_sector_primary\"]:\n",
" for ctry in [\"China\",'EU']:\n",
" ctry_subset = appln_pers_f[appln_pers_f[\"person_ctry_type\"].str.contains(ctry)]\n",
" # for role in [\"invt\",\"applt\"]:\n",
" if True:\n",
" role = \"applt\"\n",
" pers_sub = ctry_subset[ctry_subset[role+\"_seq_nr\"]!=0]\n",
" data = (pers_sub\n",
" .groupby([\"han_id\",'han_name'],as_index=False)\n",
" .agg({'appln_id': 'nunique', 'person_ctry_ISO3': 'first',trait:\"first\"})\n",
" .sort_values(by=\"appln_id\", ascending=False)\n",
" .head(15))\n",
" data[\"han_label\"] = (data[\"han_name\"]\n",
" .str.upper()\n",
" .str.strip(\".\")\n",
" .str.replace(\"&\",\"<br>\")\n",
" + \" (\"+data[\"person_ctry_ISO3\"]+\")\")\n",
"\n",
" fig = px.bar(data, x=record_col, y=\"han_label\", color=trait,\n",
" color_discrete_map=color_discrete_map,text_auto=True,labels=labeld_dict)\n",
" fig.update_layout(font_family=\"Montserrat\",\n",
" yaxis={'categoryorder':'total ascending'})\n",
"\n",
" figsuper = fig\n",
" figsuper.update_layout(yaxis={'categoryorder':'total ascending'}, barmode='relative',yaxis2={'categoryorder':'total ascending'},yaxis3={'categoryorder':'total ascending'})\n",
" figsuper.update_yaxes(\n",
" showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n",
" ticks=\"outside\")\n",
" figsuper.update_xaxes(\n",
" showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n",
" ticks=\"outside\")\n",
" figsuper.update_layout({'template':\"plotly\",\"font_family\":\"Montserrat\"})\n",
"\n",
" figsuper['layout'][\"font\"][\"size\"]=12\n",
" for a in figsuper['layout'][\"annotations\"]:\n",
" a[\"font\"][\"size\"] = 14\n",
" figsuper[\"layout\"][\"yaxis\"][\"tickfont\"][\"size\"] = 12\n",
"\n",
" figsuper.update_layout(uniformtext_minsize=10)\n",
"\n",
" figsuper.show(config= dict(displayModeBar = False, responsive = True),height=800,width=1600,scale = 4)\n",
" figsuper.write_image(f\"{fromdir}/plots/top15_applt_{trait}_{ctry}.png\",height=900,width=1200,scale = 4)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 452,
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"C:\\Users\\radvanyi\\.conda\\envs\\MOME_BIGDATA\\lib\\site-packages\\pandas\\core\\internals\\blocks.py:329: RuntimeWarning:\n",
"\n",
"divide by zero encountered in log10\n",
"\n"
]
},
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"coloraxis": "coloraxis",
"name": "0",
"texttemplate": "%{text}",
"x": [
"Sweden",
"Germany",
"France",
"Austria",
"Netherlands",
"Finland",
"Spain",
"Belgium",
"Italy"
],
"y": [
"NINGBO GEELY AUTOMOBILE R&D CO LTD",
"TCL COMM LTD",
"ZHEJIANG GEELY HOLDINGGROUP CO LTD",
"HUAWEI TECH CO LTD",
"ZF DRIVETECH SUZHOU CO LTD",
"CRRC QINGDAO SIFANG CO LTD",
"BEIJING XIAOMI MOBILE SOFTWARE CO LTD",
"ZHANGJIAGANG KANGDE XIN OPTRONICS MATERIAL CO LTD",
"VENUS MEDTECH HANGZHOU INC",
"CNBM BENGBU DESIGN & RESEARCH INSTITUTE FOR GLASS IND CO LTD",
"SHENZHEN GOODIX TECH CO LTD",
"NOKIA SHANGHAI BELL CO LTD",
"KEIPER SEATING MECHANISMS CO LTD",
"HANERGY HOLDINGGROUP LTD",
"INKRON LTD",
"FOCUSLIGHT TECH INC",
"CHINA TRIUMPH INT ENGINEERING CO LTD",
"MICRO TECH NANJING CO LTD",
"ANHUI MEIZHI COMPRESSOR CO LTD",
"SHANGHAI HENGXU MATERIALS CO LTD"
],
"z": [
[
3.399673721481038,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
1.0
],
[
0.0,
0.0,
2.949390006644913,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
2.9190780923760737,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
1.9542425094393248,
2.681241237375587,
0.0,
0.0,
0.0,
1.0,
0.0,
1.6989700043360187,
0.0
],
[
0.0,
1.9542425094393248,
0.0,
1.9542425094393248,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
2.113943352306837,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
0.0,
2.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
0.0,
0.0,
0.0,
1.9030899869919435,
0.0,
1.0,
0.0,
0.0
],
[
0.0,
1.9030899869919435,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
1.845098040014257,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
1.845098040014257,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
1.0,
1.6989700043360187,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
1.6989700043360187,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
1.0,
1.4771212547196624,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
0.0,
0.0,
0.0,
0.0,
1.4771212547196624,
0.0,
0.0,
0.0
],
[
0.0,
1.4771212547196624,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
1.4771212547196624,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
1.4771212547196624,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
0.0,
0.0,
1.4771212547196624,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
1.4771212547196624,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
],
"type": "heatmap",
"xaxis": "x",
"yaxis": "y",
"hovertemplate": "Inventor (EU): %{x}<br>Applicant (CN): %{y}<br>color: %{z}<extra></extra>",
"text": [
[
251,
0,
0,
0,
0,
0,
0,
0,
1
],
[
0,
0,
89,
0,
0,
0,
0,
0,
0
],
[
83,
0,
0,
0,
0,
0,
0,
0,
0
],
[
9,
48,
0,
0,
0,
1,
0,
5,
0
],
[
0,
9,
0,
9,
0,
0,
0,
0,
0
],
[
0,
13,
0,
0,
0,
0,
0,
0,
0
],
[
0,
0,
10,
0,
0,
0,
0,
0,
0
],
[
0,
0,
0,
0,
8,
0,
1,
0,
0
],
[
0,
8,
0,
0,
0,
0,
0,
0,
0
],
[
0,
7,
0,
0,
0,
0,
0,
0,
0
],
[
0,
7,
0,
0,
0,
0,
0,
0,
0
],
[
0,
1,
5,
0,
0,
0,
0,
0,
0
],
[
0,
5,
0,
0,
0,
0,
0,
0,
0
],
[
1,
3,
0,
0,
0,
0,
0,
0,
0
],
[
0,
0,
0,
0,
0,
3,
0,
0,
0
],
[
0,
3,
0,
0,
0,
0,
0,
0,
0
],
[
0,
3,
0,
0,
0,
0,
0,
0,
0
],
[
0,
3,
0,
0,
0,
0,
0,
0,
0
],
[
0,
0,
0,
3,
0,
0,
0,
0,
0
],
[
0,
3,
0,
0,
0,
0,
0,
0,
0
]
]
}
],
"layout": {
"template": {
"data": {
"barpolar": [
{
"marker": {
"line": {
"color": "white",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "white",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "#C8D4E3",
"linecolor": "#C8D4E3",
"minorgridcolor": "#C8D4E3",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "#C8D4E3",
"linecolor": "#C8D4E3",
"minorgridcolor": "#C8D4E3",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
1 year ago
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "white",
"showlakes": true,
"showland": true,
"subunitcolor": "#C8D4E3"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "white",
"polar": {
"angularaxis": {
"gridcolor": "#EBF0F8",
"linecolor": "#EBF0F8",
"ticks": ""
},
"bgcolor": "white",
"radialaxis": {
"gridcolor": "#EBF0F8",
"linecolor": "#EBF0F8",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "white",
"gridcolor": "#DFE8F3",
"gridwidth": 2,
"linecolor": "#EBF0F8",
"showbackground": true,
"ticks": "",
"zerolinecolor": "#EBF0F8"
},
"yaxis": {
"backgroundcolor": "white",
"gridcolor": "#DFE8F3",
"gridwidth": 2,
"linecolor": "#EBF0F8",
"showbackground": true,
"ticks": "",
"zerolinecolor": "#EBF0F8"
},
"zaxis": {
"backgroundcolor": "white",
"gridcolor": "#DFE8F3",
"gridwidth": 2,
"linecolor": "#EBF0F8",
"showbackground": true,
"ticks": "",
"zerolinecolor": "#EBF0F8"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "#DFE8F3",
"linecolor": "#A2B1C6",
"ticks": ""
},
"baxis": {
"gridcolor": "#DFE8F3",
"linecolor": "#A2B1C6",
"ticks": ""
},
"bgcolor": "white",
"caxis": {
"gridcolor": "#DFE8F3",
"linecolor": "#A2B1C6",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "#EBF0F8",
"linecolor": "#EBF0F8",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "#EBF0F8",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "#EBF0F8",
"linecolor": "#EBF0F8",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "#EBF0F8",
"zerolinewidth": 2
}
1 year ago
}
},
"xaxis": {
"anchor": "y",
1 year ago
"domain": [
0.0,
1.0
1 year ago
],
"scaleanchor": "y",
"constrain": "domain",
1 year ago
"title": {
"text": "Inventor (EU)"
1 year ago
},
"showgrid": false,
"tickangle": 45,
"ticks": "outside",
"tickfont": {
"size": 16
}
1 year ago
},
"yaxis": {
"anchor": "x",
1 year ago
"domain": [
0.0,
1.0
1 year ago
],
"autorange": "reversed",
"constrain": "domain",
"title": {
"text": "Applicant (CN)"
},
"showgrid": false,
1 year ago
"ticks": "outside",
"tickfont": {
"size": 16
1 year ago
}
},
"coloraxis": {
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"colorbar": {
"thicknessmode": "pixels",
"thickness": 25,
"ticks": "outside",
"ticksuffix": " ",
"dtick": 20,
"outlinewidth": 1
1 year ago
},
"showscale": false
1 year ago
},
"margin": {
"t": 60
},
"title": {
"x": 0.5
},
"font": {
"family": "Montserrat",
"size": 16
},
"width": 1000,
"height": 1000
},
"config": {
"displayModeBar": false,
"responsive": true,
"plotlyServerURL": "https://plotly.com"
}
},
"text/html": "<div> <div id=\"8329ec48-a627-4741-b18b-6d5108cbfbf2\" class=\"plotly-graph-div\" style=\"height:1000px; width:1000px;\"></div> <script type=\"text/javascript\"> require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"8329ec48-a627-4741-b18b-6d5108cbfbf2\")) { Plotly.newPlot( \"8329ec48-a627-4741-b18b-6d5108cbfbf2\", [{\"coloraxis\":\"coloraxis\",\"name\":\"0\",\"texttemplate\":\"%{text}\",\"x\":[\"Sweden\",\"Germany\",\"France\",\"Austria\",\"Netherlands\",\"Finland\",\"Spain\",\"Belgium\",\"Italy\"],\"y\":[\"NINGBO GEELY AUTOMOBILE R&D CO LTD\",\"TCL COMM LTD\",\"ZHEJIANG GEELY HOLDINGGROUP CO LTD\",\"HUAWEI TECH CO LTD\",\"ZF DRIVETECH SUZHOU CO LTD\",\"CRRC QINGDAO SIFANG CO LTD\",\"BEIJING XIAOMI MOBILE SOFTWARE CO LTD\",\"ZHANGJIAGANG KANGDE XIN OPTRONICS MATERIAL CO LTD\",\"VENUS MEDTECH HANGZHOU INC\",\"CNBM BENGBU DESIGN & RESEARCH INSTITUTE FOR GLASS IND CO LTD\",\"SHENZHEN GOODIX TECH CO LTD\",\"NOKIA SHANGHAI BELL CO LTD\",\"KEIPER SEATING MECHANISMS CO LTD\",\"HANERGY HOLDINGGROUP LTD\",\"INKRON LTD\",\"FOCUSLIGHT TECH INC\",\"CHINA TRIUMPH INT ENGINEERING CO LTD\",\"MICRO TECH NANJING CO LTD\",\"ANHUI MEIZHI COMPRESSOR CO LTD\",\"SHANGHAI HENGXU MATERIALS CO LTD\"],\"z\":[[3.399673721481038,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0],[0.0,0.0,2.949390006644913,0.0,0.0,0.0,0.0,0.0,0.0],[2.9190780923760737,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[1.9542425094393248,2.681241237375587,0.0,0.0,0.0,1.0,0.0,1.6989700043360187,0.0],[0.0,1.9542425094393248,0.0,1.9542425094393248,0.0,0.0,0.0,0.0,0.0],[0.0,2.113943352306837,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[0.0,0.0,2.0,0.0,0.0,0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0,1.9030899869919435,0.0,1.0,0.0,0.0],[0.0,1.9030899869919435,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[0.0,1.845098040014257,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[0.0,1.845098040014257,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[0.0,1.0,1.6989700043360187,0.0,0.0,0.0,0.0,0.0,0.0],[0.0,1.6989700043360187,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[1.0,1.4771212547196624,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0,0.0,1.4771212547196624,0.0,0.0,0.0],[0.0,1.4771212547196624,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[0.0,1.4771212547196624,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[0.0,1.4771212547196624,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[0.0,0.0,0.0,1.4771212547196624,0.0,0.0,0.0,0.0,0.0],[0.0,1.4771212547196624,0.0,0.0,0.0,0.0,0.0,0.0,0.0]],\"type\":\"heatmap\",\"xaxis\":\"x\",\"yaxis\":\"y\",\"hovertemplate\":\"Inventor (EU): %{x}<br>Applicant (CN): %{y}<br>color: %{z}<extra></extra>\",\"text\":[[251,0,0,0,0,0,0,0,1],[0,0,89,0,0,0,0,0,0],[83,0,0,0,0,0,0,0,0],[9,48,0,0,0,1,0,5,0],[0,9,0,9,0,0,0,0,0],[0,13,0,0,0,0,0,0,0],[0,0,10,0,0,0,0,0,0],[0,0,0,0,8,0,1,0,0],[0,8,0,0,0,0,0,0,0],[0,7,0,0,0,0,0,0,0],[0,7,0,0,0,0,0,0,0],[0,1,5,0,0,0,0,0,0],[0,5,0,0,0,0,0,0,0],[1,3,0,0,0,0,0,0,0],[0,0,0,0,0,3,0,0,0],[0,3,0,0,0,0,0,0,0],[0,3,0,0,0,0,0,0,0],[0,3,0,0,0,0,0,0,0],[0,0,0,3,0,0,0,0,0],[0,3,0,0,0,0,0,0,0]]}], {\"template\":{\"data\":{\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"white\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"barpolar\"}],\"bar\":[{\"error_x\":{\"color\":\"#2a3f5f\"},\"error_y\":{\"color\":\"#2a3f5f\"},\"marker\":{\"line\":{\"color\":\"white\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"bar\"}],\"carpet\":[{\"aaxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"#C8D4E3\",\"linecolor\":\"#C8D4E3\",\"minorgridcolor\":\"#C8D4E3\",\"startlinecolor\":\"#2a3f5f\"},\"baxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"#C8D4E3\",\"linecolor\":\"#C8D4E3\",\"minorgridcolor\":\"#C8D4E3\",\"startlinecolor\":\"#2a3f5f\"},\"type\":\"carpet\"}],\"choropleth\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"choropleth\"}],\"contourcarpet\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"contourcarpet\"}],\"contour\":
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"applt_sub = appln_pers_f[((appln_pers_f[\"applt_seq_nr\"]!=0)&\n",
" (appln_pers_f[\"psn_sector_primary\"]!=\"INDIVIDUAL\"))]\n",
"invt_sub = appln_pers_f[appln_pers_f[\"invt_seq_nr\"]!=0]\n",
"\n",
"eu_applt_subset = applt_sub[~applt_sub[\"person_ctry_type\"].str.contains(\"China\")]\n",
"ch_applt_subset = applt_sub[applt_sub[\"person_ctry_type\"].str.contains(\"China\")]\n",
"\n",
"eu_invt_subset = invt_sub[~invt_sub[\"person_ctry_type\"].str.contains(\"China\")]\n",
"ch_invt_subset = invt_sub[invt_sub[\"person_ctry_type\"].str.contains(\"China\")]\n",
"\n",
"#\n",
"# patstat_applt_dipol = eu_invt_subset.merge(ch_applt_subset, on=record_col, suffixes=('_eu', '_ch'))\n",
"# patstat_applt_dipol.sample(100)\n",
"\n",
"patstat_applt_dipol = eu_applt_subset.merge(ch_applt_subset, on=record_col, suffixes=('_eu', '_ch'))\n",
"patstat_applt_inv_dipol = eu_invt_subset.merge(ch_applt_subset, on=record_col, suffixes=('_eu', '_ch'))\n",
"\n",
"# co_occur = pd.crosstab(patstat_applt_dipol['han_name_eu'], patstat_applt_dipol['han_name_ch'],\n",
"# values=patstat_applt_dipol[record_col], aggfunc='nunique').fillna(0).astype(int)\n",
"co_occur = pd.crosstab(patstat_applt_inv_dipol['person_ctry_code_fullname_eu'], patstat_applt_inv_dipol['han_name_ch'],\n",
" values=patstat_applt_inv_dipol[record_col], aggfunc='nunique').fillna(0).astype(int)\n",
"\n",
"\n",
"co_occur = co_occur.T\n",
"co_occur[\"sum\"] = co_occur.sum(axis=1)\n",
"co_occur = co_occur[co_occur.sum(0).sort_values(ascending=False).index]\n",
"\n",
"co_occur = (co_occur\n",
" .sort_values(by=\"sum\", ascending=False)\n",
" .head(20)\n",
" .drop(columns=\"sum\")\n",
" .replace(0,np.nan)\n",
" .dropna(axis=1,how=\"all\")\n",
" .replace(np.nan,0)\n",
" .astype(int))\n",
"\n",
"fig = px.imshow(np.nan_to_num(np.log10(co_occur)+1,neginf=0),#co_occur,\n",
" labels=dict(x=\"Inventor (EU)\", y=\"Applicant (CN)\", z=co_occur.values.astype(str)),# color=\"Co-patent\"),\n",
" x=list(co_occur.columns),\n",
" text_auto=True,\n",
" y=list(co_occur.index))\n",
"\n",
"\n",
"fig.update_layout(title_x=0.5,\n",
" width=1000, height=1000,\n",
" xaxis_showgrid=False,\n",
" yaxis_showgrid=False,\n",
" yaxis_autorange='reversed',\n",
" font_family=\"Montserrat\",\n",
" template='plotly_white',\n",
" coloraxis_colorbar=dict(\n",
" thicknessmode=\"pixels\", thickness=25,\n",
" ticks=\"outside\", ticksuffix=\" \",\n",
" dtick=20,outlinewidth=1,\n",
" ))\n",
"\n",
"# fig.update_traces(texttemplate='%{z}')\n",
"# fig.update_traces(z=co_occur.values)\n",
"# fig.update(data=[{'customdata': co_occur}])\n",
"# fig.update(data=[{'customdata': co_occur,\n",
"# 'hovertemplate': \"(x) %{x} product: %{customdata[0]}<br>(y) %{y} product: %{customdata[1]}<br>%{z}\"}])\n",
"# fig.update_traces(texttemplate='%{customdata}')\n",
"fig.update_traces(text=co_occur, texttemplate=\"%{text}\")\n",
"fig.update(layout_coloraxis_showscale=False)\n",
"fig.update_xaxes(tickangle= -45)\n",
"fig.update_yaxes(\n",
" ticks=\"outside\")\n",
"fig.update_xaxes(\n",
" ticks=\"outside\")\n",
"\n",
"figsuper_ppt = fig\n",
"figsuper_ppt['layout'][\"font\"][\"size\"]=16\n",
"for a in figsuper_ppt['layout'][\"annotations\"]:\n",
" a[\"font\"][\"size\"] = 16\n",
"\n",
"s=16\n",
"figsuper_ppt.update_yaxes(tickfont=dict(size=s))\n",
"figsuper_ppt.update_xaxes(tickfont=dict(size=s),tickangle=45)\n",
"\n",
"figsuper_ppt.show(config= dict(displayModeBar = False, responsive = True))\n",
"\n",
"figsuper_ppt.write_image(rf\"{fromdir}/plots/CN_applt_ctry.png\",height=900,width=1200,scale = 4)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 453,
"outputs": [],
"source": [
"patstat_applt_dipol_2 = (patstat_applt_dipol\n",
" .groupby([\"han_name_ch\",\"han_name_eu\"], as_index=False)\n",
" .agg({\"psn_sector_primary_ch\":\"first\",\n",
" \"psn_sector_primary_eu\":\"first\",\n",
" \"person_ctry_ISO3_eu\":\"first\",\n",
" record_col:\"nunique\"})\n",
" .sort_values(by=record_col, ascending=False)\n",
" .head(-1))\n",
"patstat_applt_dipol_2[\"applt_eu_label\"] = (patstat_applt_dipol_2[\"han_name_eu\"]\n",
" +\" (\"\n",
" +patstat_applt_dipol_2[\"person_ctry_ISO3_eu\"]\n",
" +\"; \"\n",
" +patstat_applt_dipol_2[\"psn_sector_primary_eu\"]\n",
" +\")\")\n",
"\n",
"patstat_applt_dipol_2[\"applt_ch_label\"] = (patstat_applt_dipol_2[\"han_name_ch\"]\n",
" +\" (\"\n",
" +patstat_applt_dipol_2[\"psn_sector_primary_ch\"]\n",
" +\")\")\n",
"\n",
"patstat_applt_dipol_2[[\"applt_ch_label\",\"applt_eu_label\",\"appln_id\"]].to_excel(rf\"{fromdir}/plots/applt_table.xlsx\", index=False)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 456,
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "Country type=EU<br>Percent of related co-patents=%{x}<br>Inventor's country=%{y}<extra></extra>",
"legendgroup": "EU",
"marker": {
"color": "#636EFA",
"pattern": {
"shape": ""
}
1 year ago
},
"name": "EU",
"offsetgroup": "EU",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
0.026590693257359924,
0.027540360873694207,
0.005698005698005698,
0.003798670465337132,
0.012345679012345678,
0.2222222222222222,
0.3380816714150047,
0.001899335232668566,
0.002849002849002849,
9.49667616334283E-4,
0.020892687559354226,
9.49667616334283E-4,
0.023741690408357077,
0.003798670465337132,
9.49667616334283E-4,
9.49667616334283E-4,
0.02564102564102564,
0.26020892687559355
],
"xaxis": "x",
"y": [
"Austria",
"Belgium",
"Czech Republic",
"Denmark",
"Finland",
"France",
"Germany",
"Greece",
"Hungary",
"Ireland",
"Italy",
"Luxembourg",
"Netherlands",
"Poland",
"Portugal",
"Romania",
"Spain",
"Sweden"
],
"yaxis": "y",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "Country type=China<br>Percent of related co-patents=%{x}<br>Inventor's country=%{y}<extra></extra>",
"legendgroup": "China",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "China",
"offsetgroup": "China",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
0.5042735042735043
],
"xaxis": "x",
"y": [
"China"
],
"yaxis": "y",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "Country type=Non-EU associate<br>Percent of related co-patents=%{x}<br>Inventor's country=%{y}<extra></extra>",
"legendgroup": "Non-EU associate",
"marker": {
"color": "#00CC96",
"pattern": {
"shape": ""
}
},
"name": "Non-EU associate",
"offsetgroup": "Non-EU associate",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
9.49667616334283E-4,
0.010446343779677113
],
"xaxis": "x",
"y": [
"Norway",
"Switzerland"
],
"yaxis": "y",
"type": "bar"
}
],
"layout": {
"template": {
"data": {
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
1 year ago
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
1 year ago
},
"xaxis": {
"anchor": "y",
1 year ago
"domain": [
0.0,
1.0
1 year ago
],
"title": {
"text": "Percent of related co-patents"
1 year ago
},
"tickformat": ".1%",
1 year ago
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
1 year ago
"mirror": true,
"ticks": "outside"
1 year ago
},
"yaxis": {
"anchor": "x",
1 year ago
"domain": [
0.0,
1.0
1 year ago
],
"title": {
"text": "Inventor's country"
1 year ago
},
"categoryorder": "total ascending",
1 year ago
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
"mirror": true,
1 year ago
"ticks": "outside",
"tickfont": {
"size": 14
1 year ago
}
},
"legend": {
1 year ago
"title": {
"text": "Country type"
1 year ago
},
"tracegroupgap": 0
1 year ago
},
"margin": {
"t": 60
},
"barmode": "relative",
"font": {
"family": "Montserrat",
"size": 14
},
"yaxis2": {
"categoryorder": "total ascending",
1 year ago
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
1 year ago
"mirror": true,
"ticks": "outside"
},
"yaxis3": {
"categoryorder": "total ascending",
1 year ago
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
1 year ago
"mirror": true,
"ticks": "outside"
},
"uniformtext": {
"minsize": 10
}
},
"config": {
"plotlyServerURL": "https://plotly.com"
}
},
"text/html": "<div> <div id=\"daa85f48-1969-42f9-85ed-31d2b1f2777c\" class=\"plotly-graph-div\" style=\"height:525px; width:100%;\"></div> <script type=\"text/javascript\"> require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"daa85f48-1969-42f9-85ed-31d2b1f2777c\")) { Plotly.newPlot( \"daa85f48-1969-42f9-85ed-31d2b1f2777c\", [{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Country type=EU<br>Percent of related co-patents=%{x}<br>Inventor's country=%{y}<extra></extra>\",\"legendgroup\":\"EU\",\"marker\":{\"color\":\"#636EFA\",\"pattern\":{\"shape\":\"\"}},\"name\":\"EU\",\"offsetgroup\":\"EU\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[0.026590693257359924,0.027540360873694207,0.005698005698005698,0.003798670465337132,0.012345679012345678,0.2222222222222222,0.3380816714150047,0.001899335232668566,0.002849002849002849,0.000949667616334283,0.020892687559354226,0.000949667616334283,0.023741690408357077,0.003798670465337132,0.000949667616334283,0.000949667616334283,0.02564102564102564,0.26020892687559355],\"xaxis\":\"x\",\"y\":[\"Austria\",\"Belgium\",\"Czech Republic\",\"Denmark\",\"Finland\",\"France\",\"Germany\",\"Greece\",\"Hungary\",\"Ireland\",\"Italy\",\"Luxembourg\",\"Netherlands\",\"Poland\",\"Portugal\",\"Romania\",\"Spain\",\"Sweden\"],\"yaxis\":\"y\",\"type\":\"bar\"},{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Country type=China<br>Percent of related co-patents=%{x}<br>Inventor's country=%{y}<extra></extra>\",\"legendgroup\":\"China\",\"marker\":{\"color\":\"#EF553B\",\"pattern\":{\"shape\":\"\"}},\"name\":\"China\",\"offsetgroup\":\"China\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[0.5042735042735043],\"xaxis\":\"x\",\"y\":[\"China\"],\"yaxis\":\"y\",\"type\":\"bar\"},{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Country type=Non-EU associate<br>Percent of related co-patents=%{x}<br>Inventor's country=%{y}<extra></extra>\",\"legendgroup\":\"Non-EU associate\",\"marker\":{\"color\":\"#00CC96\",\"pattern\":{\"shape\":\"\"}},\"name\":\"Non-EU associate\",\"offsetgroup\":\"Non-EU associate\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[0.000949667616334283,0.010446343779677113],\"xaxis\":\"x\",\"y\":[\"Norway\",\"Switzerland\"],\"yaxis\":\"y\",\"type\":\"bar\"}], {\"template\":{\"data\":{\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"barpolar\"}],\"bar\":[{\"error_x\":{\"color\":\"#2a3f5f\"},\"error_y\":{\"color\":\"#2a3f5f\"},\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"bar\"}],\"carpet\":[{\"aaxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"baxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"type\":\"carpet\"}],\"choropleth\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"choropleth\"}],\"contourcarpet\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"contourcarpet\"}],\"contour\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"contour\"}],\"heatmapgl\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "Country type=EU<br>Percent of related co-patents=%{x}<br>Applicant's country=%{y}<extra></extra>",
"legendgroup": "EU",
"marker": {
"color": "#636EFA",
"pattern": {
"shape": ""
}
1 year ago
},
"name": "EU",
"offsetgroup": "EU",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
0.003872216844143272,
0.007744433688286544,
9.68054211035818E-4,
0.002904162633107454,
0.001936108422071636,
0.013552758954501452,
0.14908034849951599,
0.2575024201355276,
0.00484027105517909,
0.00484027105517909,
0.003872216844143272,
0.011616650532429816,
9.68054211035818E-4,
0.021297192642787996,
0.00968054211035818
],
"xaxis": "x",
"y": [
"Austria",
"Belgium",
"Cyprus",
"Czech Republic",
"Denmark",
"Finland",
"France",
"Germany",
"Ireland",
"Italy",
"Luxembourg",
"Netherlands",
"Portugal",
"Spain",
"Sweden"
],
"yaxis": "y",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "Country type=China<br>Percent of related co-patents=%{x}<br>Applicant's country=%{y}<extra></extra>",
"legendgroup": "China",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "China",
"offsetgroup": "China",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
0.5575992255566312
],
"xaxis": "x",
"y": [
"China"
],
"yaxis": "y",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "Country type=Non-EU associate<br>Percent of related co-patents=%{x}<br>Applicant's country=%{y}<extra></extra>",
"legendgroup": "Non-EU associate",
"marker": {
"color": "#00CC96",
"pattern": {
"shape": ""
}
},
"name": "Non-EU associate",
"offsetgroup": "Non-EU associate",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
9.68054211035818E-4,
0.018393030009680542
],
"xaxis": "x",
"y": [
"Norway",
"Switzerland"
],
"yaxis": "y",
"type": "bar"
}
],
"layout": {
"template": {
"data": {
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
1 year ago
}
},
"xaxis": {
"anchor": "y",
1 year ago
"domain": [
0.0,
1 year ago
1.0
],
"title": {
"text": "Percent of related co-patents"
1 year ago
},
"tickformat": ".1%",
1 year ago
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
1 year ago
"mirror": true,
"ticks": "outside"
1 year ago
},
"yaxis": {
"anchor": "x",
1 year ago
"domain": [
0.0,
1 year ago
1.0
],
"title": {
"text": "Applicant's country"
1 year ago
},
"categoryorder": "total ascending",
1 year ago
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
1 year ago
"mirror": true,
"ticks": "outside",
"tickfont": {
"size": 14
1 year ago
}
},
"legend": {
1 year ago
"title": {
"text": "Country type"
1 year ago
},
"tracegroupgap": 0
1 year ago
},
"margin": {
"t": 60
},
"barmode": "relative",
"font": {
"family": "Montserrat",
"size": 14
},
"yaxis2": {
"categoryorder": "total ascending",
"showgrid": true,
"showline": true,
1 year ago
"linewidth": 1,
"linecolor": "black",
1 year ago
"mirror": true,
"ticks": "outside"
},
"yaxis3": {
"categoryorder": "total ascending",
1 year ago
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
"mirror": true,
"ticks": "outside"
},
"uniformtext": {
"minsize": 10
}
},
"config": {
"plotlyServerURL": "https://plotly.com"
}
},
"text/html": "<div> <div id=\"94d4747f-34a3-4ff1-b3c0-e7ce20d1c918\" class=\"plotly-graph-div\" style=\"height:525px; width:100%;\"></div> <script type=\"text/javascript\"> require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"94d4747f-34a3-4ff1-b3c0-e7ce20d1c918\")) { Plotly.newPlot( \"94d4747f-34a3-4ff1-b3c0-e7ce20d1c918\", [{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Country type=EU<br>Percent of related co-patents=%{x}<br>Applicant's country=%{y}<extra></extra>\",\"legendgroup\":\"EU\",\"marker\":{\"color\":\"#636EFA\",\"pattern\":{\"shape\":\"\"}},\"name\":\"EU\",\"offsetgroup\":\"EU\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[0.003872216844143272,0.007744433688286544,0.000968054211035818,0.002904162633107454,0.001936108422071636,0.013552758954501452,0.14908034849951599,0.2575024201355276,0.00484027105517909,0.00484027105517909,0.003872216844143272,0.011616650532429816,0.000968054211035818,0.021297192642787996,0.00968054211035818],\"xaxis\":\"x\",\"y\":[\"Austria\",\"Belgium\",\"Cyprus\",\"Czech Republic\",\"Denmark\",\"Finland\",\"France\",\"Germany\",\"Ireland\",\"Italy\",\"Luxembourg\",\"Netherlands\",\"Portugal\",\"Spain\",\"Sweden\"],\"yaxis\":\"y\",\"type\":\"bar\"},{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Country type=China<br>Percent of related co-patents=%{x}<br>Applicant's country=%{y}<extra></extra>\",\"legendgroup\":\"China\",\"marker\":{\"color\":\"#EF553B\",\"pattern\":{\"shape\":\"\"}},\"name\":\"China\",\"offsetgroup\":\"China\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[0.5575992255566312],\"xaxis\":\"x\",\"y\":[\"China\"],\"yaxis\":\"y\",\"type\":\"bar\"},{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Country type=Non-EU associate<br>Percent of related co-patents=%{x}<br>Applicant's country=%{y}<extra></extra>\",\"legendgroup\":\"Non-EU associate\",\"marker\":{\"color\":\"#00CC96\",\"pattern\":{\"shape\":\"\"}},\"name\":\"Non-EU associate\",\"offsetgroup\":\"Non-EU associate\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[0.000968054211035818,0.018393030009680542],\"xaxis\":\"x\",\"y\":[\"Norway\",\"Switzerland\"],\"yaxis\":\"y\",\"type\":\"bar\"}], {\"template\":{\"data\":{\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"barpolar\"}],\"bar\":[{\"error_x\":{\"color\":\"#2a3f5f\"},\"error_y\":{\"color\":\"#2a3f5f\"},\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"bar\"}],\"carpet\":[{\"aaxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"baxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"type\":\"carpet\"}],\"choropleth\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"choropleth\"}],\"contourcarpet\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"contourcarpet\"}],\"contour\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"contour\"}],\"heatmapgl\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "Authority type=EU<br>Percent of related co-patents=%{x}<br>Application authority=%{y}<extra></extra>",
"legendgroup": "EU",
"marker": {
"color": "#636EFA",
"pattern": {
"shape": ""
}
},
"name": "EU",
"offsetgroup": "EU",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
0.005687203791469194,
0.0018957345971563982,
0.0037914691943127963,
0.0018957345971563982,
0.01042654028436019,
0.10710900473933649,
0.22843601895734597,
0.004739336492890996,
0.025592417061611375,
9.478672985781991E-4,
0.014218009478672985,
0.006635071090047393
],
"xaxis": "x",
"y": [
"Austria",
"Belgium",
"Czech Republic",
"Denmark",
"Finland",
"France",
"Germany",
"Luxembourg",
"Netherlands",
"Portugal",
"Spain",
"Sweden"
],
"yaxis": "y",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "Authority type=EPO<br>Percent of related co-patents=%{x}<br>Application authority=%{y}<extra></extra>",
"legendgroup": "EPO",
"marker": {
"color": "#7F00FF",
"pattern": {
"shape": ""
}
},
"name": "EPO",
"offsetgroup": "EPO",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
0.4881516587677725
],
"xaxis": "x",
"y": [
"European Patent Office"
],
"yaxis": "y",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "Authority type=Non-EU associate<br>Percent of related co-patents=%{x}<br>Application authority=%{y}<extra></extra>",
"legendgroup": "Non-EU associate",
"marker": {
"color": "#00CC96",
"pattern": {
"shape": ""
}
},
"name": "Non-EU associate",
"offsetgroup": "Non-EU associate",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
0.1004739336492891
],
"xaxis": "x",
"y": [
"United Kingdom"
],
"yaxis": "y",
"type": "bar"
}
],
"layout": {
"template": {
"data": {
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
1 year ago
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
1 year ago
}
},
"xaxis": {
"anchor": "y",
1 year ago
"domain": [
0.0,
1.0
1 year ago
],
"title": {
"text": "Percent of related co-patents"
1 year ago
},
"tickformat": ".1%",
1 year ago
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
1 year ago
"mirror": true,
"ticks": "outside"
1 year ago
},
"yaxis": {
"anchor": "x",
1 year ago
"domain": [
0.0,
1 year ago
1.0
],
"title": {
"text": "Application authority"
},
"categoryorder": "total ascending",
1 year ago
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
"mirror": true,
1 year ago
"ticks": "outside",
"tickfont": {
"size": 14
1 year ago
}
},
"legend": {
1 year ago
"title": {
"text": "Authority type"
1 year ago
},
"tracegroupgap": 0
1 year ago
},
"margin": {
"t": 60
},
"barmode": "relative",
"font": {
"family": "Montserrat",
"size": 14
},
"yaxis2": {
"categoryorder": "total ascending",
"showgrid": true,
"showline": true,
1 year ago
"linewidth": 1,
"linecolor": "black",
1 year ago
"mirror": true,
"ticks": "outside"
},
"yaxis3": {
"categoryorder": "total ascending",
1 year ago
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
"mirror": true,
"ticks": "outside"
1 year ago
},
"uniformtext": {
"minsize": 10
}
},
"config": {
"plotlyServerURL": "https://plotly.com"
}
},
"text/html": "<div> <div id=\"c8172d43-c654-4900-962f-a68cc3b9817c\" class=\"plotly-graph-div\" style=\"height:525px; width:100%;\"></div> <script type=\"text/javascript\"> require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"c8172d43-c654-4900-962f-a68cc3b9817c\")) { Plotly.newPlot( \"c8172d43-c654-4900-962f-a68cc3b9817c\", [{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Authority type=EU<br>Percent of related co-patents=%{x}<br>Application authority=%{y}<extra></extra>\",\"legendgroup\":\"EU\",\"marker\":{\"color\":\"#636EFA\",\"pattern\":{\"shape\":\"\"}},\"name\":\"EU\",\"offsetgroup\":\"EU\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[0.005687203791469194,0.0018957345971563982,0.0037914691943127963,0.0018957345971563982,0.01042654028436019,0.10710900473933649,0.22843601895734597,0.004739336492890996,0.025592417061611375,0.0009478672985781991,0.014218009478672985,0.006635071090047393],\"xaxis\":\"x\",\"y\":[\"Austria\",\"Belgium\",\"Czech Republic\",\"Denmark\",\"Finland\",\"France\",\"Germany\",\"Luxembourg\",\"Netherlands\",\"Portugal\",\"Spain\",\"Sweden\"],\"yaxis\":\"y\",\"type\":\"bar\"},{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Authority type=EPO<br>Percent of related co-patents=%{x}<br>Application authority=%{y}<extra></extra>\",\"legendgroup\":\"EPO\",\"marker\":{\"color\":\"#7F00FF\",\"pattern\":{\"shape\":\"\"}},\"name\":\"EPO\",\"offsetgroup\":\"EPO\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[0.4881516587677725],\"xaxis\":\"x\",\"y\":[\"European Patent Office\"],\"yaxis\":\"y\",\"type\":\"bar\"},{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Authority type=Non-EU associate<br>Percent of related co-patents=%{x}<br>Application authority=%{y}<extra></extra>\",\"legendgroup\":\"Non-EU associate\",\"marker\":{\"color\":\"#00CC96\",\"pattern\":{\"shape\":\"\"}},\"name\":\"Non-EU associate\",\"offsetgroup\":\"Non-EU associate\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[0.1004739336492891],\"xaxis\":\"x\",\"y\":[\"United Kingdom\"],\"yaxis\":\"y\",\"type\":\"bar\"}], {\"template\":{\"data\":{\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"barpolar\"}],\"bar\":[{\"error_x\":{\"color\":\"#2a3f5f\"},\"error_y\":{\"color\":\"#2a3f5f\"},\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"bar\"}],\"carpet\":[{\"aaxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"baxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"type\":\"carpet\"}],\"choropleth\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"choropleth\"}],\"contourcarpet\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"contourcarpet\"}],\"contour\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"contour\"}],\"heatmapgl\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed795
1 year ago
},
"metadata": {},
"output_type": "display_data"
1 year ago
}
],
"source": [
"# percent of publications related to\n",
"# -authority country\n",
"# -inventor country\n",
"# -applicant country\n",
"\n",
"color_discrete_map= {'China': '#EF553B',\n",
" 'EU': '#636EFA',\n",
" 'Non-EU associate': '#00CC96',\n",
" 'EPO':'#7F00FF'}#CC8899\n",
"\n",
"\n",
"labeld_dict = dict({\n",
" record_col+\"_percent\": 'Percent of related co-patents',\n",
" \"person_ctry_code_fullname\": \"Country\",\n",
" \"person_ctry_type\": \"Country type\",\n",
" \"appln_auth_fullname\": \"Application authority\",\n",
" \"auth_ctry_type\": \"Authority type\",\n",
" \"Country_Type\":\"Country type\",\n",
" \"Eurovoc_Class\":\"Region\"\n",
" })\n",
"\n",
"for c in [\"person_ctry_code\",\"appln_auth\"]:\n",
" pers_sub = appln_pers_f\n",
" if c == \"person_ctry_code\":\n",
" for role in [\"invt\",\"applt\"]:\n",
" pers_sub = appln_pers_f[appln_pers_f[role+\"_seq_nr\"]!=0]\n",
" role_name = {\"invt\":\"Inventor's\", \"applt\":\"Applicant's\"}.get(role)\n",
" labeld_dict[\"person_ctry_code_fullname\"] = role_name+\" country\"\n",
"\n",
"\n",
" data = (pers_sub.groupby(c+\"_fullname\",as_index=False).agg({'appln_id': 'nunique', 'person_ctry_ISO3': 'first',\"person_ctry_type\":\"first\"}))\n",
" data[record_col+\"_percent\"] = data[record_col]/pers_sub[record_col].nunique()\n",
" fig = px.bar(data, x=record_col+\"_percent\", y=c+\"_fullname\",color_discrete_map=color_discrete_map,text_auto=True,color=\"person_ctry_type\",\n",
" labels = labeld_dict)\n",
" fig.update_layout(xaxis_tickformat='.1%',font_family=\"Montserrat\",\n",
" yaxis={'categoryorder':'total ascending'},)\n",
" figsuper = fig\n",
" figsuper.update_layout(yaxis={'categoryorder':'total ascending'}, barmode='relative',yaxis2={'categoryorder':'total ascending'},yaxis3={'categoryorder':'total ascending'})\n",
" figsuper.update_yaxes(\n",
" showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n",
" ticks=\"outside\")\n",
" figsuper.update_xaxes(\n",
" showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n",
" ticks=\"outside\")\n",
" figsuper.update_layout({'template':\"plotly\",\"font_family\":\"Montserrat\"})\n",
"\n",
" figsuper['layout'][\"font\"][\"size\"]=14\n",
" for a in figsuper['layout'][\"annotations\"]:\n",
" a[\"font\"][\"size\"] = 14\n",
" figsuper[\"layout\"][\"yaxis\"][\"tickfont\"][\"size\"] = 14\n",
"\n",
" figsuper.update_layout(uniformtext_minsize=10)\n",
" figsuper.write_image(rf\"{fromdir}/plots/{role}_loc_ctry.png\",height=900,width=1200,scale = 4)\n",
" figsuper.show()\n",
" else:\n",
" data = pers_sub.groupby(c+\"_fullname\",as_index=False).agg({'appln_id': 'nunique', 'auth_ISO3': 'first',\"auth_ctry_type\":\"first\"})\n",
" data[record_col+\"_percent\"] = data[record_col]/pers_sub[record_col].nunique()\n",
" fig = px.bar(data, x=record_col+\"_percent\", y=c+\"_fullname\",color_discrete_map=color_discrete_map,text_auto=True,color=\"auth_ctry_type\",\n",
" labels = labeld_dict)\n",
" fig.update_layout(xaxis_tickformat='.1%',font_family=\"Montserrat\",\n",
" yaxis={'categoryorder':'total ascending'},)\n",
" figsuper = fig\n",
" figsuper.update_layout(yaxis={'categoryorder':'total ascending'}, barmode='relative',yaxis2={'categoryorder':'total ascending'},yaxis3={'categoryorder':'total ascending'})\n",
" figsuper.update_yaxes(\n",
" showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n",
" ticks=\"outside\")\n",
" figsuper.update_xaxes(\n",
" showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n",
" ticks=\"outside\")\n",
" figsuper.update_layout({'template':\"plotly\",\"font_family\":\"Montserrat\"})\n",
"\n",
" figsuper['layout'][\"font\"][\"size\"]=14\n",
" for a in figsuper['layout'][\"annotations\"]:\n",
" a[\"font\"][\"size\"] = 14\n",
" figsuper[\"layout\"][\"yaxis\"][\"tickfont\"][\"size\"] = 14\n",
"\n",
" figsuper.update_layout(uniformtext_minsize=10)\n",
" figsuper.write_image(rf\"{fromdir}/plots/auth_loc_ctry.png\",height=900,width=1200,scale = 4)\n",
" figsuper.show()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 420,
"outputs": [],
"source": [],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 420,
"outputs": [],
"source": [],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 420,
"outputs": [],
"source": [],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 457,
"outputs": [],
"source": [
"appln_ipc_f = pd.read_csv(f\"{fromdir}/first-filings-with-IPC-raw.csv\", header=None,\n",
" names=[\"appln_id\",\"appln_auth\",\"appln_kind\",\"filing_year\",\"nb_applicants\",'nb_inventors',\n",
" 'ipc_class_symbol','ipc_class_level'])\n",
"\n",
"appln_ipc_f = appln_ipc_f[appln_ipc_f[\"filing_year\"]>2010]\n",
"appln_ipc_f = appln_ipc_f[appln_ipc_f[\"appln_id\"].isin(appln_f[\"appln_id\"])]\n",
"\n",
"appln_ipc_f[\"cpc_id\"] = appln_ipc_f[\"ipc_class_symbol\"].str.replace(\" \",\"\")\n",
"appln_ipc_f[\"ipc_class\"] = appln_ipc_f[\"ipc_class_symbol\"].str.replace(\" \",\"\").str[0]\n",
"appln_ipc_f[\"ipc_classname\"] = appln_ipc_f[\"ipc_class\"].replace({\"A\":\"Human necessities\",\n",
" \"B\":\"Performing operations; transporting\",\n",
" \"B\":\"Operations; transporting\",\n",
" \"C\":\"Chemistry; metallurgy\",\n",
" \"D\":\"Textiles; paper\",\n",
" \"E\":\"Fixed constructions\",\n",
" \"F\":\"Mechanical engineering; lightning; heating; weapons; blasting\",\n",
" \"F\":\"Engineering\",\n",
" \"G\":\"Physics\",\n",
" \"H\":\"Electricity\"})\n",
"\n",
"appln_ipc_f[\"ipc_class\"] = appln_ipc_f[\"ipc_class\"]+\"-\"+appln_ipc_f[\"ipc_classname\"]"
1 year ago
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 458,
"outputs": [],
"source": [
"group = 'ipc_class'\n",
"data = appln_ipc_f.groupby(group, as_index=False)[record_col].nunique().sort_values(ascending=False, by=record_col)\n",
"\n",
"fig = px.bar(data.sort_values(by=group), x=record_col, y=group, color=group,barmode='relative',text_auto=True,\n",
" labels={\n",
" record_col: 'Number of co-publications',\n",
" group: \"\",\n",
" },\n",
" title=\"Distribution of Domains\", template='plotly')\n",
"fig.update_layout(showlegend=False, xaxis_tickformat='d',font_family=\"Montserrat\")\n",
"fig.update_traces(hovertemplate='%{x:d}')\n",
"fig.update_traces(textfont_size=12, textangle=0, textposition=\"outside\", cliponaxis=True)\n",
"fig.add_shape(\n",
" # Rectangle with reference to the plot\n",
" type=\"rect\",\n",
" xref=\"paper\",\n",
" yref=\"paper\",\n",
" x0=0,\n",
" y0=0,\n",
" x1=1.0,\n",
" y1=1.0,\n",
" line=dict(\n",
" color=\"black\",\n",
" width=0.5,\n",
" )\n",
" )\n",
"fig.update_layout(yaxis={'categoryorder':'total ascending'})\n",
"fig.update_yaxes(\n",
" showgrid=True,\n",
" ticks=\"outside\")\n",
"fig.update_xaxes(\n",
" showgrid=True,\n",
" ticks=\"outside\")\n",
"dom_distr = go.Figure(fig)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 459,
"outputs": [],
"source": [
"data = (appln_ipc_f.groupby(['filing_year','ipc_class'])[record_col].nunique(dropna=False).unstack()\n",
" .fillna(0)\n",
" .stack()\n",
" .reset_index()\n",
" .rename(columns={0:record_col}))\n",
"data = data.merge(data[data[record_col]>0].sort_values(by=[\"filing_year\"], ascending=True).drop_duplicates(subset='ipc_class'),\n",
" on='ipc_class', suffixes=[None,\"_relative_growth\"])\n",
"data[record_col+\"_relative_growth\"] = (data[record_col]-data[record_col+\"_relative_growth\"])/data[record_col+\"_relative_growth\"]\n",
"\n",
"data = data.sort_values(by =[\"ipc_class\",\"filing_year\"], ascending=[True,True])\n",
"data[record_col+\"_cumsum\"] = (data.groupby('ipc_class',as_index=False)[record_col].cumsum())\n"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 460,
"outputs": [],
"source": [
"group = ['filing_year','ipc_class']\n",
"fig = px.line(data.sort_values(ascending=[True,True], by=[group[0],group[-1]]),y=record_col,x=group[0], color=group[-1], markers=True, labels={\n",
" record_col: 'Number of co-publications',\n",
" group[-1]: \"Domain\",\n",
" },\n",
" title=\"Yearly output of co-publications\", template='plotly')\n",
"fig.update_traces(hovertemplate='%{y:d}')\n",
"fig.update_layout(hovermode='x unified')\n",
"fig.add_shape(\n",
" # Rectangle with reference to the plot\n",
" type=\"rect\",\n",
" xref=\"paper\",\n",
" yref=\"paper\",\n",
" x0=0,\n",
" y0=0,\n",
" x1=1.0,\n",
" y1=1.0,\n",
" line=dict(\n",
" color=\"black\",\n",
" width=0.5,\n",
" )\n",
" )\n",
"fig.update_yaxes(\n",
" showgrid=True,\n",
" ticks=\"outside\")\n",
"fig.update_xaxes(\n",
" showgrid=True,\n",
" ticks=\"outside\")\n",
"\n",
"year_output_by_domain = go.Figure(fig)\n",
"\n",
"fig = px.line(data.sort_values(ascending=[True,True], by=[group[0],group[-1]]),y=record_col+\"_relative_growth\",x=group[0], color=group[-1], markers=True, labels={\n",
" record_col+\"_relative_growth\": 'Rel. growth<br>in co-publications (%)',\n",
" group[-1]: \"Domain\",\n",
" },\n",
" title=\"Relative growth in the output of co-publications\", template='plotly')\n",
"\n",
"fig.update_layout(hovermode='x unified',yaxis_tickformat='.0f%',font_family=\"Montserrat\")\n",
"fig.update_traces(hovertemplate='%{y:.0f}00%')\n",
"fig.add_shape(\n",
" # Rectangle with reference to the plot\n",
" type=\"rect\",\n",
" xref=\"paper\",\n",
" yref=\"paper\",\n",
" x0=0,\n",
" y0=0,\n",
" x1=1.0,\n",
" y1=1.0,\n",
" line=dict(\n",
" color=\"black\",\n",
" width=0.5,\n",
" )\n",
" )\n",
"fig.update_yaxes(\n",
" showgrid=True,\n",
" ticks=\"outside\")\n",
"fig.update_xaxes(\n",
" showgrid=True,\n",
" ticks=\"outside\")\n",
"\n",
"rel_output_by_domain = go.Figure(fig)\n",
"\n",
"\n",
"fig = px.area(data.sort_values(ascending=[True,True], by=[group[0],group[-1]]),y=record_col+\"_cumsum\",x=group[0], color=group[-1],line_group=group[-1],\n",
" labels={\n",
" record_col+\"_cumsum\": 'Cumulative number of co-publications',\n",
" group[-1]: \"Domain\",\n",
" },\n",
" title=\"Cumulative number of co-publications\", template='plotly')\n",
"fig.update_traces(hovertemplate='%{y:d}')\n",
"fig.update_layout(hovermode='x unified')\n",
"fig.add_shape(\n",
" # Rectangle with reference to the plot\n",
" type=\"rect\",\n",
" xref=\"paper\",\n",
" yref=\"paper\",\n",
" x0=0,\n",
" y0=0,\n",
" x1=1.0,\n",
" y1=1.0,\n",
" line=dict(\n",
" color=\"black\",\n",
" width=0.5,\n",
" )\n",
" )\n",
"fig.update_yaxes(\n",
" showgrid=True,\n",
" ticks=\"outside\")\n",
"fig.update_xaxes(\n",
" showgrid=True,\n",
" ticks=\"outside\")\n",
"\n",
"cumsum_by_domain = go.Figure(fig)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 463,
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"alignmentgroup": "True",
"cliponaxis": true,
"hovertemplate": "%{x:d}",
"legendgroup": "A-Human necessities",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "A-Human necessities",
"offsetgroup": "A-Human necessities",
"orientation": "h",
"showlegend": false,
"textangle": 0,
"textfont": {
"size": 12
},
"textposition": "outside",
"texttemplate": "%{x}",
"x": [
99
],
"xaxis": "x",
"y": [
"A-Human necessities"
],
"yaxis": "y",
"type": "bar"
},
{
"alignmentgroup": "True",
"cliponaxis": true,
"hovertemplate": "%{x:d}",
"legendgroup": "B-Operations; transporting",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "B-Operations; transporting",
"offsetgroup": "B-Operations; transporting",
"orientation": "h",
"showlegend": false,
"textangle": 0,
"textfont": {
"size": 12
},
"textposition": "outside",
"texttemplate": "%{x}",
"x": [
341
],
"xaxis": "x",
"y": [
"B-Operations; transporting"
1 year ago
],
"yaxis": "y",
"type": "bar"
},
{
"alignmentgroup": "True",
"cliponaxis": true,
"hovertemplate": "%{x:d}",
"legendgroup": "C-Chemistry; metallurgy",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "C-Chemistry; metallurgy",
"offsetgroup": "C-Chemistry; metallurgy",
"orientation": "h",
"showlegend": false,
"textangle": 0,
"textfont": {
"size": 12
},
"textposition": "outside",
"texttemplate": "%{x}",
"x": [
145
1 year ago
],
"xaxis": "x",
"y": [
"C-Chemistry; metallurgy"
],
"yaxis": "y",
"type": "bar"
},
{
"alignmentgroup": "True",
"cliponaxis": true,
"hovertemplate": "%{x:d}",
"legendgroup": "D-Textiles; paper",
"marker": {
"color": "#ab63fa",
"pattern": {
"shape": ""
}
},
"name": "D-Textiles; paper",
"offsetgroup": "D-Textiles; paper",
"orientation": "h",
"showlegend": false,
"textangle": 0,
"textfont": {
"size": 12
},
"textposition": "outside",
"texttemplate": "%{x}",
"x": [
14
1 year ago
],
"xaxis": "x",
"y": [
"D-Textiles; paper"
],
"yaxis": "y",
"type": "bar"
},
{
"alignmentgroup": "True",
"cliponaxis": true,
"hovertemplate": "%{x:d}",
"legendgroup": "E-Fixed constructions",
"marker": {
"color": "#FFA15A",
"pattern": {
"shape": ""
}
},
"name": "E-Fixed constructions",
"offsetgroup": "E-Fixed constructions",
"orientation": "h",
"showlegend": false,
"textangle": 0,
"textfont": {
"size": 12
},
"textposition": "outside",
"texttemplate": "%{x}",
"x": [
49
1 year ago
],
"xaxis": "x",
"y": [
"E-Fixed constructions"
],
"yaxis": "y",
"type": "bar"
},
{
"alignmentgroup": "True",
"cliponaxis": true,
"hovertemplate": "%{x:d}",
"legendgroup": "F-Engineering",
"marker": {
"color": "#19d3f3",
"pattern": {
"shape": ""
}
},
"name": "F-Engineering",
"offsetgroup": "F-Engineering",
"orientation": "h",
"showlegend": false,
"textangle": 0,
"textfont": {
"size": 12
},
"textposition": "outside",
"texttemplate": "%{x}",
"x": [
148
1 year ago
],
"xaxis": "x",
"y": [
"F-Engineering"
],
"yaxis": "y",
"type": "bar"
},
{
"alignmentgroup": "True",
"cliponaxis": true,
"hovertemplate": "%{x:d}",
"legendgroup": "G-Physics",
"marker": {
"color": "#FF6692",
"pattern": {
"shape": ""
}
},
"name": "G-Physics",
"offsetgroup": "G-Physics",
"orientation": "h",
"showlegend": false,
"textangle": 0,
"textfont": {
"size": 12
},
"textposition": "outside",
"texttemplate": "%{x}",
"x": [
231
1 year ago
],
"xaxis": "x",
"y": [
"G-Physics"
],
"yaxis": "y",
"type": "bar"
},
{
"alignmentgroup": "True",
"cliponaxis": true,
"hovertemplate": "%{x:d}",
"legendgroup": "H-Electricity",
"marker": {
"color": "#B6E880",
"pattern": {
"shape": ""
}
},
"name": "H-Electricity",
"offsetgroup": "H-Electricity",
"orientation": "h",
"showlegend": false,
"textangle": 0,
"textfont": {
"size": 12
},
"textposition": "outside",
"texttemplate": "%{x}",
"x": [
328
1 year ago
],
"xaxis": "x",
"y": [
"H-Electricity"
],
"yaxis": "y",
"type": "bar"
},
{
"fillpattern": {
"shape": ""
},
"hovertemplate": "%{y:d}",
"legendgroup": "A-Human necessities",
"line": {
"color": "#636efa"
},
"marker": {
"symbol": "circle"
},
"mode": "lines",
"name": "A-Human necessities",
"orientation": "v",
"showlegend": false,
1 year ago
"stackgroup": "1",
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x2",
"y": [
7.0,
10.0,
25.0,
33.0,
43.0,
53.0,
66.0,
75.0,
90.0,
94.0,
99.0
1 year ago
],
"yaxis": "y2",
"type": "scatter"
},
{
"fillpattern": {
"shape": ""
},
"hovertemplate": "%{y:d}",
"legendgroup": "B-Operations; transporting",
"line": {
"color": "#EF553B"
},
"marker": {
"symbol": "circle"
},
"mode": "lines",
"name": "B-Operations; transporting",
"orientation": "v",
"showlegend": false,
1 year ago
"stackgroup": "1",
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x2",
"y": [
15.0,
23.0,
38.0,
52.0,
65.0,
85.0,
126.0,
186.0,
258.0,
317.0,
341.0
1 year ago
],
"yaxis": "y2",
"type": "scatter"
},
{
"fillpattern": {
"shape": ""
},
"hovertemplate": "%{y:d}",
"legendgroup": "C-Chemistry; metallurgy",
"line": {
"color": "#00cc96"
},
"marker": {
"symbol": "circle"
},
"mode": "lines",
"name": "C-Chemistry; metallurgy",
"orientation": "v",
"showlegend": false,
1 year ago
"stackgroup": "1",
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x2",
"y": [
9.0,
20.0,
33.0,
42.0,
52.0,
62.0,
78.0,
87.0,
111.0,
136.0,
145.0
1 year ago
],
"yaxis": "y2",
"type": "scatter"
},
{
"fillpattern": {
"shape": ""
},
"hovertemplate": "%{y:d}",
"legendgroup": "D-Textiles; paper",
"line": {
"color": "#ab63fa"
},
"marker": {
"symbol": "circle"
},
"mode": "lines",
"name": "D-Textiles; paper",
"orientation": "v",
"showlegend": false,
1 year ago
"stackgroup": "1",
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x2",
"y": [
1.0,
1.0,
1.0,
2.0,
5.0,
6.0,
9.0,
11.0,
13.0,
14.0,
14.0
1 year ago
],
"yaxis": "y2",
"type": "scatter"
},
{
"fillpattern": {
"shape": ""
},
"hovertemplate": "%{y:d}",
"legendgroup": "E-Fixed constructions",
"line": {
"color": "#FFA15A"
},
"marker": {
"symbol": "circle"
},
"mode": "lines",
"name": "E-Fixed constructions",
"orientation": "v",
"showlegend": false,
1 year ago
"stackgroup": "1",
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x2",
"y": [
2.0,
4.0,
4.0,
5.0,
6.0,
9.0,
13.0,
23.0,
30.0,
44.0,
49.0
1 year ago
],
"yaxis": "y2",
"type": "scatter"
},
{
"fillpattern": {
"shape": ""
},
"hovertemplate": "%{y:d}",
"legendgroup": "F-Engineering",
"line": {
"color": "#19d3f3"
},
"marker": {
"symbol": "circle"
},
"mode": "lines",
"name": "F-Engineering",
"orientation": "v",
"showlegend": false,
1 year ago
"stackgroup": "1",
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x2",
"y": [
7.0,
10.0,
26.0,
32.0,
39.0,
46.0,
62.0,
88.0,
115.0,
141.0,
148.0
1 year ago
],
"yaxis": "y2",
"type": "scatter"
},
{
"fillpattern": {
"shape": ""
},
"hovertemplate": "%{y:d}",
"legendgroup": "G-Physics",
"line": {
"color": "#FF6692"
},
"marker": {
"symbol": "circle"
},
"mode": "lines",
"name": "G-Physics",
"orientation": "v",
"showlegend": false,
1 year ago
"stackgroup": "1",
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x2",
"y": [
5.0,
17.0,
29.0,
44.0,
69.0,
87.0,
110.0,
147.0,
185.0,
215.0,
231.0
1 year ago
],
"yaxis": "y2",
"type": "scatter"
},
{
"fillpattern": {
"shape": ""
},
"hovertemplate": "%{y:d}",
"legendgroup": "H-Electricity",
"line": {
"color": "#B6E880"
},
"marker": {
"symbol": "circle"
},
"mode": "lines",
"name": "H-Electricity",
"orientation": "v",
"showlegend": false,
1 year ago
"stackgroup": "1",
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x2",
"y": [
14.0,
28.0,
38.0,
55.0,
90.0,
133.0,
204.0,
268.0,
291.0,
317.0,
328.0
1 year ago
],
"yaxis": "y2",
"type": "scatter"
},
{
"hovertemplate": "%{y:d}",
"legendgroup": "A-Human necessities",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "A-Human necessities",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x3",
"y": [
7.0,
3.0,
15.0,
8.0,
10.0,
10.0,
13.0,
9.0,
15.0,
4.0,
5.0
1 year ago
],
"yaxis": "y3",
"type": "scatter"
},
{
"hovertemplate": "%{y:d}",
"legendgroup": "B-Operations; transporting",
"line": {
"color": "#EF553B",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "B-Operations; transporting",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x3",
"y": [
15.0,
8.0,
15.0,
14.0,
13.0,
20.0,
41.0,
60.0,
72.0,
59.0,
24.0
1 year ago
],
"yaxis": "y3",
"type": "scatter"
},
{
"hovertemplate": "%{y:d}",
"legendgroup": "C-Chemistry; metallurgy",
"line": {
"color": "#00cc96",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "C-Chemistry; metallurgy",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x3",
"y": [
9.0,
11.0,
13.0,
9.0,
10.0,
10.0,
16.0,
9.0,
24.0,
25.0,
9.0
1 year ago
],
"yaxis": "y3",
"type": "scatter"
},
{
"hovertemplate": "%{y:d}",
"legendgroup": "D-Textiles; paper",
"line": {
"color": "#ab63fa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "D-Textiles; paper",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x3",
"y": [
1.0,
0.0,
0.0,
1.0,
3.0,
1.0,
3.0,
2.0,
2.0,
1.0,
1 year ago
0.0
],
"yaxis": "y3",
"type": "scatter"
},
{
"hovertemplate": "%{y:d}",
"legendgroup": "E-Fixed constructions",
"line": {
"color": "#FFA15A",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "E-Fixed constructions",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x3",
"y": [
2.0,
2.0,
0.0,
1.0,
1.0,
3.0,
4.0,
10.0,
7.0,
14.0,
5.0
1 year ago
],
"yaxis": "y3",
"type": "scatter"
},
{
"hovertemplate": "%{y:d}",
"legendgroup": "F-Engineering",
"line": {
"color": "#19d3f3",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "F-Engineering",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x3",
"y": [
7.0,
3.0,
16.0,
6.0,
7.0,
7.0,
16.0,
26.0,
27.0,
26.0,
7.0
1 year ago
],
"yaxis": "y3",
"type": "scatter"
},
{
"hovertemplate": "%{y:d}",
"legendgroup": "G-Physics",
"line": {
"color": "#FF6692",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "G-Physics",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x3",
"y": [
5.0,
12.0,
12.0,
15.0,
25.0,
18.0,
23.0,
37.0,
38.0,
30.0,
16.0
1 year ago
],
"yaxis": "y3",
"type": "scatter"
},
{
"hovertemplate": "%{y:d}",
"legendgroup": "H-Electricity",
"line": {
"color": "#B6E880",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "H-Electricity",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x3",
"y": [
14.0,
14.0,
10.0,
17.0,
35.0,
43.0,
71.0,
64.0,
23.0,
26.0,
11.0
1 year ago
],
"yaxis": "y3",
"type": "scatter"
},
{
"hovertemplate": "%{y:.0f}00%",
"legendgroup": "A-Human necessities",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "A-Human necessities",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x4",
"y": [
0.0,
-0.5714285714285714,
1.1428571428571428,
0.14285714285714285,
0.42857142857142855,
0.42857142857142855,
0.8571428571428571,
0.2857142857142857,
1.1428571428571428,
-0.42857142857142855,
-0.2857142857142857
1 year ago
],
"yaxis": "y4",
"type": "scatter"
},
{
"hovertemplate": "%{y:.0f}00%",
"legendgroup": "B-Operations; transporting",
"line": {
"color": "#EF553B",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "B-Operations; transporting",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x4",
"y": [
0.0,
-0.4666666666666667,
0.0,
-0.06666666666666667,
-0.13333333333333333,
0.3333333333333333,
1.7333333333333334,
3.0,
3.8,
2.933333333333333,
0.6
1 year ago
],
"yaxis": "y4",
"type": "scatter"
},
{
"hovertemplate": "%{y:.0f}00%",
"legendgroup": "C-Chemistry; metallurgy",
"line": {
"color": "#00cc96",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "C-Chemistry; metallurgy",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x4",
"y": [
0.0,
0.2222222222222222,
0.4444444444444444,
0.0,
0.1111111111111111,
0.1111111111111111,
0.7777777777777778,
0.0,
1.6666666666666667,
1.7777777777777777,
0.0
1 year ago
],
"yaxis": "y4",
"type": "scatter"
},
{
"hovertemplate": "%{y:.0f}00%",
"legendgroup": "D-Textiles; paper",
"line": {
"color": "#ab63fa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "D-Textiles; paper",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x4",
"y": [
0.0,
-1.0,
-1.0,
0.0,
2.0,
0.0,
2.0,
1.0,
1.0,
0.0,
1 year ago
-1.0
],
"yaxis": "y4",
"type": "scatter"
},
{
"hovertemplate": "%{y:.0f}00%",
"legendgroup": "E-Fixed constructions",
"line": {
"color": "#FFA15A",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "E-Fixed constructions",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x4",
"y": [
0.0,
0.0,
-1.0,
-0.5,
-0.5,
0.5,
1.0,
4.0,
2.5,
6.0,
1.5
1 year ago
],
"yaxis": "y4",
"type": "scatter"
},
{
"hovertemplate": "%{y:.0f}00%",
"legendgroup": "F-Engineering",
"line": {
"color": "#19d3f3",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "F-Engineering",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x4",
"y": [
0.0,
-0.5714285714285714,
1.2857142857142858,
-0.14285714285714285,
0.0,
0.0,
1.2857142857142858,
2.7142857142857144,
2.857142857142857,
2.7142857142857144,
0.0
1 year ago
],
"yaxis": "y4",
"type": "scatter"
},
{
"hovertemplate": "%{y:.0f}00%",
"legendgroup": "G-Physics",
"line": {
"color": "#FF6692",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "G-Physics",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x4",
"y": [
0.0,
1.4,
1.4,
2.0,
4.0,
2.6,
3.6,
6.4,
6.6,
5.0,
2.2
1 year ago
],
"yaxis": "y4",
"type": "scatter"
},
{
"hovertemplate": "%{y:.0f}00%",
"legendgroup": "H-Electricity",
"line": {
"color": "#B6E880",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "H-Electricity",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021
1 year ago
],
"xaxis": "x4",
"y": [
0.0,
0.0,
-0.2857142857142857,
0.21428571428571427,
1.5,
2.0714285714285716,
4.071428571428571,
3.5714285714285716,
0.6428571428571429,
0.8571428571428571,
-0.21428571428571427
1 year ago
],
"yaxis": "y4",
"type": "scatter"
}
],
"layout": {
"template": {
"data": {
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "contour"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "heatmap"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
],
"sequentialminus": [
[
0.0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1.0,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"xaxis": {
"anchor": "y",
"domain": [
0.0,
0.45
],
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
"mirror": true,
"ticks": "outside",
"tickformat": ".0f",
"range": [
0,
400
1 year ago
]
},
"yaxis": {
"anchor": "x",
"domain": [
0.625,
1.0
],
"categoryorder": "total ascending",
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
"mirror": true,
"ticks": "outside"
},
"xaxis2": {
"anchor": "y2",
"domain": [
0.55,
1.0
],
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
"mirror": true,
"ticks": "outside",
"range": [
2010.8,
2022.2
]
},
"yaxis2": {
"anchor": "x2",
"domain": [
0.625,
1.0
],
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
"mirror": true,
"ticks": "outside",
"tickformat": ".0f"
},
"xaxis3": {
"anchor": "y3",
"domain": [
0.0,
0.45
],
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
"mirror": true,
"ticks": "outside",
"range": [
2010.8,
2022.2
]
},
"yaxis3": {
"anchor": "x3",
"domain": [
0.0,
0.375
],
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
"mirror": true,
"ticks": "outside"
},
"xaxis4": {
"anchor": "y4",
"domain": [
0.55,
1.0
],
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
"mirror": true,
"ticks": "outside",
"range": [
2010.8,
2022.2
]
},
"yaxis4": {
"anchor": "x4",
"domain": [
0.0,
0.375
],
"showgrid": true,
"showline": true,
"linewidth": 1,
"linecolor": "black",
"mirror": true,
"ticks": "outside",
"zeroline": true,
"zerolinewidth": 0.5,
"zerolinecolor": "grey",
"tickformat": ".0%"
},
"annotations": [
{
"font": {
"size": 14
},
"showarrow": false,
"text": "Distribution of IPC classes",
"x": 0.225,
"xanchor": "center",
"xref": "paper",
"y": 1.0,
"yanchor": "bottom",
"yref": "paper"
},
{
"font": {
"size": 14
},
"showarrow": false,
"text": "Cumulative sum of related co-patents",
"x": 0.775,
"xanchor": "center",
"xref": "paper",
"y": 1.0,
"yanchor": "bottom",
"yref": "paper"
},
{
"font": {
"size": 14
},
"showarrow": false,
"text": "Related co-patents per year",
"x": 0.225,
"xanchor": "center",
"xref": "paper",
"y": 0.375,
"yanchor": "bottom",
"yref": "paper"
},
{
"font": {
"size": 14
},
"showarrow": false,
"text": "Relative growth of co-patents",
"x": 0.775,
"xanchor": "center",
"xref": "paper",
"y": 0.375,
"yanchor": "bottom",
"yref": "paper"
}
],
"barmode": "relative",
"font": {
"family": "Montserrat",
"size": 14
1 year ago
}
},
"config": {
"displayModeBar": false,
"responsive": true,
"plotlyServerURL": "https://plotly.com"
}
},
"text/html": "<div> <div id=\"8cab11f8-edc4-41b0-b7d8-949efd888973\" class=\"plotly-graph-div\" style=\"height:525px; width:100%;\"></div> <script type=\"text/javascript\"> require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"8cab11f8-edc4-41b0-b7d8-949efd888973\")) { Plotly.newPlot( \"8cab11f8-edc4-41b0-b7d8-949efd888973\", [{\"alignmentgroup\":\"True\",\"cliponaxis\":true,\"hovertemplate\":\"%{x:d}\",\"legendgroup\":\"A-Human necessities\",\"marker\":{\"color\":\"#636efa\",\"pattern\":{\"shape\":\"\"}},\"name\":\"A-Human necessities\",\"offsetgroup\":\"A-Human necessities\",\"orientation\":\"h\",\"showlegend\":false,\"textangle\":0,\"textfont\":{\"size\":12},\"textposition\":\"outside\",\"texttemplate\":\"%{x}\",\"x\":[99],\"xaxis\":\"x\",\"y\":[\"A-Human necessities\"],\"yaxis\":\"y\",\"type\":\"bar\"},{\"alignmentgroup\":\"True\",\"cliponaxis\":true,\"hovertemplate\":\"%{x:d}\",\"legendgroup\":\"B-Operations; transporting\",\"marker\":{\"color\":\"#EF553B\",\"pattern\":{\"shape\":\"\"}},\"name\":\"B-Operations; transporting\",\"offsetgroup\":\"B-Operations; transporting\",\"orientation\":\"h\",\"showlegend\":false,\"textangle\":0,\"textfont\":{\"size\":12},\"textposition\":\"outside\",\"texttemplate\":\"%{x}\",\"x\":[341],\"xaxis\":\"x\",\"y\":[\"B-Operations; transporting\"],\"yaxis\":\"y\",\"type\":\"bar\"},{\"alignmentgroup\":\"True\",\"cliponaxis\":true,\"hovertemplate\":\"%{x:d}\",\"legendgroup\":\"C-Chemistry; metallurgy\",\"marker\":{\"color\":\"#00cc96\",\"pattern\":{\"shape\":\"\"}},\"name\":\"C-Chemistry; metallurgy\",\"offsetgroup\":\"C-Chemistry; metallurgy\",\"orientation\":\"h\",\"showlegend\":false,\"textangle\":0,\"textfont\":{\"size\":12},\"textposition\":\"outside\",\"texttemplate\":\"%{x}\",\"x\":[145],\"xaxis\":\"x\",\"y\":[\"C-Chemistry; metallurgy\"],\"yaxis\":\"y\",\"type\":\"bar\"},{\"alignmentgroup\":\"True\",\"cliponaxis\":true,\"hovertemplate\":\"%{x:d}\",\"legendgroup\":\"D-Textiles; paper\",\"marker\":{\"color\":\"#ab63fa\",\"pattern\":{\"shape\":\"\"}},\"name\":\"D-Textiles; paper\",\"offsetgroup\":\"D-Textiles; paper\",\"orientation\":\"h\",\"showlegend\":false,\"textangle\":0,\"textfont\":{\"size\":12},\"textposition\":\"outside\",\"texttemplate\":\"%{x}\",\"x\":[14],\"xaxis\":\"x\",\"y\":[\"D-Textiles; paper\"],\"yaxis\":\"y\",\"type\":\"bar\"},{\"alignmentgroup\":\"True\",\"cliponaxis\":true,\"hovertemplate\":\"%{x:d}\",\"legendgroup\":\"E-Fixed constructions\",\"marker\":{\"color\":\"#FFA15A\",\"pattern\":{\"shape\":\"\"}},\"name\":\"E-Fixed constructions\",\"offsetgroup\":\"E-Fixed constructions\",\"orientation\":\"h\",\"showlegend\":false,\"textangle\":0,\"textfont\":{\"size\":12},\"textposition\":\"outside\",\"texttemplate\":\"%{x}\",\"x\":[49],\"xaxis\":\"x\",\"y\":[\"E-Fixed constructions\"],\"yaxis\":\"y\",\"type\":\"bar\"},{\"alignmentgroup\":\"True\",\"cliponaxis\":true,\"hovertemplate\":\"%{x:d}\",\"legendgroup\":\"F-Engineering\",\"marker\":{\"color\":\"#19d3f3\",\"pattern\":{\"shape\":\"\"}},\"name\":\"F-Engineering\",\"offsetgroup\":\"F-Engineering\",\"orientation\":\"h\",\"showlegend\":false,\"textangle\":0,\"textfont\":{\"size\":12},\"textposition\":\"outside\",\"texttemplate\":\"%{x}\",\"x\":[148],\"xaxis\":\"x\",\"y\":[\"F-Engineering\"],\"yaxis\":\"y\",\"type\":\"bar\"},{\"alignmentgroup\":\"True\",\"cliponaxis\":true,\"hovertemplate\":\"%{x:d}\",\"legendgroup\":\"G-Physics\",\"marker\":{\"color\":\"#FF6692\",\"pattern\":{\"shape\":\"\"}},\"name\":\"G-Physics\",\"offsetgroup\":\"G-Physics\",\"orientation\":\"h\",\"showlegend\":false,\"textangle\":0,\"textfont\":{\"size\":12},\"textposition\":\"outside\",\"texttemplate\":\"%{x}\",\"x\":[231],\"xaxis\":\"x\",\"y\":[\"G-Physics\"],\"yaxis\":\"y\",\"type\":\"bar\"},{\"alignmentgroup\":\"True\",\"cliponaxis\":true,\"hovertemplate\":\"%{x:d}\",\"legendgroup\":\"H-Electricity\",\"marker\":
1 year ago
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"from plotly.subplots import make_subplots\n",
"import plotly.graph_objects as go\n",
1 year ago
"\n",
"# dom_distr\n",
"# year_output_by_domain\n",
"# rel_output_by_domain\n",
"# cumsum_by_domain\n",
"\n",
"figsuper = make_subplots(rows=2, cols=2, subplot_titles=[\"Distribution of IPC classes\",\"Cumulative sum of related co-patents\",\n",
" \"Related co-patents per year\",\"Relative growth of co-patents\"])\n",
"\n",
"\n",
"for trace in list(dom_distr.select_traces()):\n",
" trace.showlegend=False\n",
" # trace.barmode\n",
" figsuper.add_trace(trace,\n",
" row=1, col=1\n",
" )\n",
"\n",
"for trace in list(cumsum_by_domain.select_traces()):\n",
" trace.showlegend=False\n",
" figsuper.add_trace(trace,\n",
" row=1, col=2\n",
" )\n",
"\n",
"for trace in list(year_output_by_domain.select_traces()):\n",
" trace.showlegend=False\n",
" figsuper.add_trace(trace,\n",
" row=2, col=1\n",
" )\n",
"\n",
"for trace in list(rel_output_by_domain.select_traces()):\n",
" trace.showlegend=False\n",
" figsuper.add_trace(trace,\n",
" row=2, col=2\n",
" )\n",
"\n",
"\n",
"figsuper.update_layout(yaxis={'categoryorder':'total ascending'}, barmode='relative')\n",
"figsuper.update_yaxes(\n",
" showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n",
" ticks=\"outside\")\n",
"figsuper.update_xaxes(\n",
" showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n",
" ticks=\"outside\")\n",
"\n",
"figsuper.update_layout({'template':\"plotly\",\"font_family\":\"Montserrat\"})\n",
"figsuper['layout']['xaxis1'].update(tickformat=\".0f\")\n",
"figsuper['layout']['yaxis2'].update(tickformat=\".0f\")\n",
"figsuper['layout']['yaxis4'].update(zeroline=True, zerolinewidth=0.5, zerolinecolor='grey',tickformat=\".0%\")\n",
"figsuper['layout'][f'xaxis'][\"range\"] = [0,400]\n",
"for i in range(2,5):\n",
" figsuper['layout'][f'xaxis{i}'][\"range\"] = [2010.8,2022.2]\n",
"figsuper['layout'][\"font\"][\"size\"]=14\n",
"for a in figsuper['layout'][\"annotations\"]:\n",
" a[\"font\"][\"size\"] = 14\n",
"figsuper.show(config= dict(displayModeBar = False, responsive = True),height=800,width=1600,scale = 4)\n",
"figsuper.write_image(rf\"{fromdir}/plots/ipc_classes.png\",height=900,width=1600,scale = 4)"
1 year ago
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 425,
1 year ago
"outputs": [],
"source": [],
"metadata": {
"collapsed": false
}
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.6"
}
},
"nbformat": 4,
"nbformat_minor": 0
}