{
"cells": [
{
"cell_type": "code",
"execution_count": 12,
"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",
"import math\n"
]
},
{
"cell_type": "code",
"execution_count": 13,
"outputs": [
{
"data": {
"text/html": " \n "
},
"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",
"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"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 14,
"outputs": [],
"source": [
"outdir=\"EU_CH_scope\"\n",
"\n",
"appln = pd.read_csv(f\"{outdir}/tls_201_scope.csv\")"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 15,
"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",
"cpc_def = pd.read_csv(\"CPC_data/cpc_defs.csv\", low_memory=False)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 106,
"outputs": [
{
"data": {
"text/plain": " person_id person_name \n27780 38752029 BOTH HENDRIK \\\n42972 47186505 Zhang, Richard S. \n39368 45225635 Roche Diagnostics Operations, Inc. \n17349 13164592 LI, QINGHUA \n38005 44432440 YANG, CHENGGUAN \n17354 13164808 JAVAHERIAN, KASHI \n48330 48886066 KRAUSE FALK \n25002 24615058 BUTLER, HANS \n70951 54647336 Schmieder, Wolfgang \n8906 11399816 De Boer, Dirk Kornelis Gerhardus \n\n person_name_orig_lg person_address person_ctry_code \n27780 BOTH HENDRIK NaN NL \\\n42972 Zhang, Richard S. Shanghai CN \n39368 Roche Diagnostics Operations, Inc. Indiana,IN US \n17349 LI, QINGHUA NaN US \n38005 YANG, CHENGGUAN NaN CN \n17354 JAVAHERIAN, KASHI NaN US \n48330 KRAUSE FALK NaN DE \n25002 BUTLER, HANS NaN NL \n70951 Schmieder, Wolfgang Baden-Wurtemberg DE \n8906 De Boer, Dirk Kornelis Gerhardus Den Bosch NL \n\n nuts nuts_level doc_std_name_id doc_std_name \n27780 NL 0 695378 BOTH HENDRIK \\\n42972 NaN 9 414822 HARBOURT CYRUS DAVID \n39368 NaN 9 167898 WANG XIAOBO \n17349 NaN 9 77857 LI QINGHUA \n38005 NaN 9 19222547 YANG CHENGGUAN \n17354 NaN 9 245041 JAVAHERIAN KASHI \n48330 DE 0 597644 KRAUSE FALK \n25002 NL 0 103820 BUTLER HANS \n70951 DE 0 19636429 MERUVA JAYAPRAKASH \n8906 NL 0 1980622 DE BOER DIRK KORNELIS GERHARDUS \n\n psn_id psn_name psn_level psn_sector \n27780 3219299 BOTH HENDRIK 0 UNKNOWN \\\n42972 37071034 ZHANG RICHARD S. 1 INDIVIDUAL \n39368 27413631 ROCHE DIAGNOSTICS OPERATIONS 2 COMPANY \n17349 19316195 LI QINGHUA 1 INDIVIDUAL \n38005 36198377 YANG, CHENGGUAN 1 INDIVIDUAL \n17354 14769626 JAVAHERIAN, KASHI 1 INDIVIDUAL \n48330 17940076 KRAUSE FALK 0 UNKNOWN \n25002 3827604 BUTLER, HANS 1 INDIVIDUAL \n70951 28724833 SCHMIEDER, WOLFGANG 0 UNKNOWN \n8906 6348065 DE BOER, DIRK KORNELIS GERHARDUS 1 INDIVIDUAL \n\n han_id han_name han_harmonized \n27780 138752029 BOTH HENDRIK 0 \n42972 147186505 Zhang, Richard S. 0 \n39368 2461595 ROCHE DIAGNOSTICS OPERATIONS INC 2 \n17349 4304276 LI QINGHUA 1 \n38005 144432440 YANG, CHENGGUAN 0 \n17354 113164808 JAVAHERIAN, KASHI 0 \n48330 148886066 KRAUSE FALK 0 \n25002 124615058 BUTLER, HANS 0 \n70951 154647336 Schmieder, Wolfgang 0 \n8906 111399816 De Boer, Dirk Kornelis Gerhardus 0 ",
"text/html": "
\n\n
\n \n \n | \n person_id | \n person_name | \n person_name_orig_lg | \n person_address | \n person_ctry_code | \n nuts | \n nuts_level | \n doc_std_name_id | \n doc_std_name | \n psn_id | \n psn_name | \n psn_level | \n psn_sector | \n han_id | \n han_name | \n han_harmonized | \n
\n \n \n \n 27780 | \n 38752029 | \n BOTH HENDRIK | \n BOTH HENDRIK | \n NaN | \n NL | \n NL | \n 0 | \n 695378 | \n BOTH HENDRIK | \n 3219299 | \n BOTH HENDRIK | \n 0 | \n UNKNOWN | \n 138752029 | \n BOTH HENDRIK | \n 0 | \n
\n \n 42972 | \n 47186505 | \n Zhang, Richard S. | \n Zhang, Richard S. | \n Shanghai | \n CN | \n NaN | \n 9 | \n 414822 | \n HARBOURT CYRUS DAVID | \n 37071034 | \n ZHANG RICHARD S. | \n 1 | \n INDIVIDUAL | \n 147186505 | \n Zhang, Richard S. | \n 0 | \n
\n \n 39368 | \n 45225635 | \n Roche Diagnostics Operations, Inc. | \n Roche Diagnostics Operations, Inc. | \n Indiana,IN | \n US | \n NaN | \n 9 | \n 167898 | \n WANG XIAOBO | \n 27413631 | \n ROCHE DIAGNOSTICS OPERATIONS | \n 2 | \n COMPANY | \n 2461595 | \n ROCHE DIAGNOSTICS OPERATIONS INC | \n 2 | \n
\n \n 17349 | \n 13164592 | \n LI, QINGHUA | \n LI, QINGHUA | \n NaN | \n US | \n NaN | \n 9 | \n 77857 | \n LI QINGHUA | \n 19316195 | \n LI QINGHUA | \n 1 | \n INDIVIDUAL | \n 4304276 | \n LI QINGHUA | \n 1 | \n
\n \n 38005 | \n 44432440 | \n YANG, CHENGGUAN | \n YANG, CHENGGUAN | \n NaN | \n CN | \n NaN | \n 9 | \n 19222547 | \n YANG CHENGGUAN | \n 36198377 | \n YANG, CHENGGUAN | \n 1 | \n INDIVIDUAL | \n 144432440 | \n YANG, CHENGGUAN | \n 0 | \n
\n \n 17354 | \n 13164808 | \n JAVAHERIAN, KASHI | \n JAVAHERIAN, KASHI | \n NaN | \n US | \n NaN | \n 9 | \n 245041 | \n JAVAHERIAN KASHI | \n 14769626 | \n JAVAHERIAN, KASHI | \n 1 | \n INDIVIDUAL | \n 113164808 | \n JAVAHERIAN, KASHI | \n 0 | \n
\n \n 48330 | \n 48886066 | \n KRAUSE FALK | \n KRAUSE FALK | \n NaN | \n DE | \n DE | \n 0 | \n 597644 | \n KRAUSE FALK | \n 17940076 | \n KRAUSE FALK | \n 0 | \n UNKNOWN | \n 148886066 | \n KRAUSE FALK | \n 0 | \n
\n \n 25002 | \n 24615058 | \n BUTLER, HANS | \n BUTLER, HANS | \n NaN | \n NL | \n NL | \n 0 | \n 103820 | \n BUTLER HANS | \n 3827604 | \n BUTLER, HANS | \n 1 | \n INDIVIDUAL | \n 124615058 | \n BUTLER, HANS | \n 0 | \n
\n \n 70951 | \n 54647336 | \n Schmieder, Wolfgang | \n Schmieder, Wolfgang | \n Baden-Wurtemberg | \n DE | \n DE | \n 0 | \n 19636429 | \n MERUVA JAYAPRAKASH | \n 28724833 | \n SCHMIEDER, WOLFGANG | \n 0 | \n UNKNOWN | \n 154647336 | \n Schmieder, Wolfgang | \n 0 | \n
\n \n 8906 | \n 11399816 | \n De Boer, Dirk Kornelis Gerhardus | \n De Boer, Dirk Kornelis Gerhardus | \n Den Bosch | \n NL | \n NL | \n 0 | \n 1980622 | \n DE BOER DIRK KORNELIS GERHARDUS | \n 6348065 | \n DE BOER, DIRK KORNELIS GERHARDUS | \n 1 | \n INDIVIDUAL | \n 111399816 | \n De Boer, Dirk Kornelis Gerhardus | \n 0 | \n
\n \n
\n
"
},
"execution_count": 106,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"pers.sample(10)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 27,
"outputs": [
{
"data": {
"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 NECESSITIES \\\n1 HUMAN NECESSITIES \n2 HUMAN NECESSITIES \n3 HUMAN NECESSITIES \n4 HUMAN NECESSITIES \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_1 \n0 NaN \\\n1 AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTI... \n2 AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTI... \n3 AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTI... \n4 AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTI... \n... ... \n260486 TECHNICAL SUBJECTS COVERED BY FORMER USPC \n260487 TECHNICAL SUBJECTS COVERED BY FORMER USPC \n260488 TECHNICAL SUBJECTS COVERED BY FORMER USPC \n260489 TECHNICAL SUBJECTS COVERED BY FORMER USPC \n260490 NaN \n\n tax_level_2 \n0 NaN \\\n1 NaN \n2 SOIL WORKING IN AGRICULTURE OR FORESTRY; PARTS... \n3 SOIL WORKING IN AGRICULTURE OR FORESTRY; PARTS... \n4 SOIL WORKING IN AGRICULTURE OR FORESTRY; PARTS... \n... ... \n260486 TECHNICAL SUBJECTS COVERED BY FORMER US CLASSI... \n260487 TECHNICAL SUBJECTS COVERED BY FORMER US CLASSI... \n260488 TECHNICAL SUBJECTS COVERED BY FORMER US CLASSI... \n260489 TECHNICAL SUBJECTS COVERED BY FORMER US CLASSI... \n260490 NaN \n\n tax_level_3 tax_level_4 \n0 NaN NaN \\\n1 NaN NaN \n2 NaN NaN \n3 Hand tools (edge trimmers for lawns A01G3/06 ... NaN \n4 Spades; Shovels {(hand-operated dredgers E02F3... NaN \n... ... ... \n260486 Tool transfer to or from matrix Indexing matrix \n260487 Tool transfer to or from matrix Rotary disc \n260488 Tool transfer to or from matrix Chain or belt \n260489 Miscellaneous NaN \n260490 NaN NaN \n\n tax_level_5 tax_level_6 tax_level_7 data_scope \n0 NaN NaN NaN False \n1 NaN NaN NaN False \n2 NaN NaN NaN False \n3 NaN NaN NaN False \n4 NaN NaN NaN False \n... ... ... ... ... \n260486 NaN NaN NaN False \n260487 NaN NaN NaN False \n260488 NaN NaN NaN False \n260489 NaN NaN NaN False \n260490 NaN NaN NaN False \n\n[260491 rows x 20 columns]",
"text/html": "\n\n
\n \n \n | \n cpc_id | \n cpc_name | \n section | \n class | \n subclass | \n group | \n main_group | \n cpc_version | \n version https://git-lfs.github.com/spec/v1 | \n cpc_taxonomy | \n cpc_fullname | \n tax_level_0 | \n tax_level_1 | \n tax_level_2 | \n tax_level_3 | \n tax_level_4 | \n tax_level_5 | \n tax_level_6 | \n tax_level_7 | \n data_scope | \n
\n \n \n \n 0 | \n A | \n HUMAN NECESSITIES | \n A | \n NaN | \n NaN | \n NaN | \n NaN | \n 2023 | \n NaN | \n [('A', 'HUMAN NECESSITIES')] | \n HUMAN NECESSITIES | \n HUMAN NECESSITIES | \n NaN | \n NaN | \n NaN | \n NaN | \n NaN | \n NaN | \n NaN | \n False | \n
\n \n 1 | \n A01 | \n AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTI... | \n A | \n 1.0 | \n NaN | \n NaN | \n NaN | \n 2023 | \n NaN | \n [('A', 'HUMAN NECESSITIES'), ('A01', 'AGRICULT... | \n HUMAN NECESSITIES<>AGRICULTURE; FORESTRY; ANIM... | \n HUMAN NECESSITIES | \n AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTI... | \n NaN | \n NaN | \n NaN | \n NaN | \n NaN | \n NaN | \n False | \n
\n \n 2 | \n A01B | \n SOIL WORKING IN AGRICULTURE OR FORESTRY; PARTS... | \n A | \n 1.0 | \n B | \n NaN | \n NaN | \n 2023 | \n NaN | \n [('A', 'HUMAN NECESSITIES'), ('A01', 'AGRICULT... | \n HUMAN NECESSITIES<>AGRICULTURE; FORESTRY; ANIM... | \n HUMAN NECESSITIES | \n AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTI... | \n SOIL WORKING IN AGRICULTURE OR FORESTRY; PARTS... | \n NaN | \n NaN | \n NaN | \n NaN | \n NaN | \n False | \n
\n \n 3 | \n A01B1/00 | \n Hand tools (edge trimmers for lawns A01G3/06 ... | \n A | \n 1.0 | \n B | \n 1.0 | \n 0.0 | \n 2023 | \n NaN | \n [('A', 'HUMAN NECESSITIES'), ('A01', 'AGRICULT... | \n HUMAN NECESSITIES<>AGRICULTURE; FORESTRY; ANIM... | \n HUMAN NECESSITIES | \n AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTI... | \n SOIL WORKING IN AGRICULTURE OR FORESTRY; PARTS... | \n Hand tools (edge trimmers for lawns A01G3/06 ... | \n NaN | \n NaN | \n NaN | \n NaN | \n False | \n
\n \n 4 | \n A01B1/02 | \n Spades; Shovels {(hand-operated dredgers E02F3... | \n A | \n 1.0 | \n B | \n 1.0 | \n 2.0 | \n 2023 | \n NaN | \n [('A', 'HUMAN NECESSITIES'), ('A01', 'AGRICULT... | \n HUMAN NECESSITIES<>AGRICULTURE; FORESTRY; ANIM... | \n HUMAN NECESSITIES | \n AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTI... | \n SOIL WORKING IN AGRICULTURE OR FORESTRY; PARTS... | \n Spades; Shovels {(hand-operated dredgers E02F3... | \n NaN | \n NaN | \n NaN | \n NaN | \n False | \n
\n \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n
\n \n 260486 | \n Y10T483/1873 | \n Indexing matrix | \n Y | \n 10.0 | \n T | \n 483.0 | \n 1873.0 | \n 2023 | \n NaN | \n [('Y', 'GENERAL TAGGING OF NEW TECHNOLOGICAL D... | \n GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPME... | \n GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPME... | \n TECHNICAL SUBJECTS COVERED BY FORMER USPC | \n TECHNICAL SUBJECTS COVERED BY FORMER US CLASSI... | \n Tool transfer to or from matrix | \n Indexing matrix | \n NaN | \n NaN | \n NaN | \n False | \n
\n \n 260487 | \n Y10T483/1882 | \n Rotary disc | \n Y | \n 10.0 | \n T | \n 483.0 | \n 1882.0 | \n 2023 | \n NaN | \n [('Y', 'GENERAL TAGGING OF NEW TECHNOLOGICAL D... | \n GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPME... | \n GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPME... | \n TECHNICAL SUBJECTS COVERED BY FORMER USPC | \n TECHNICAL SUBJECTS COVERED BY FORMER US CLASSI... | \n Tool transfer to or from matrix | \n Rotary disc | \n NaN | \n NaN | \n NaN | \n False | \n
\n \n 260488 | \n Y10T483/1891 | \n Chain or belt | \n Y | \n 10.0 | \n T | \n 483.0 | \n 1891.0 | \n 2023 | \n NaN | \n [('Y', 'GENERAL TAGGING OF NEW TECHNOLOGICAL D... | \n GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPME... | \n GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPME... | \n TECHNICAL SUBJECTS COVERED BY FORMER USPC | \n TECHNICAL SUBJECTS COVERED BY FORMER US CLASSI... | \n Tool transfer to or from matrix | \n Chain or belt | \n NaN | \n NaN | \n NaN | \n False | \n
\n \n 260489 | \n Y10T483/19 | \n Miscellaneous | \n Y | \n 10.0 | \n T | \n 483.0 | \n 19.0 | \n 2023 | \n NaN | \n [('Y', 'GENERAL TAGGING OF NEW TECHNOLOGICAL D... | \n GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPME... | \n GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPME... | \n TECHNICAL SUBJECTS COVERED BY FORMER USPC | \n TECHNICAL SUBJECTS COVERED BY FORMER US CLASSI... | \n Miscellaneous | \n NaN | \n NaN | \n NaN | \n NaN | \n False | \n
\n \n 260490 | \n NaN | \n NaN | \n NaN | \n NaN | \n NaN | \n NaN | \n NaN | \n 2022 | \n oid sha256:f138d6bdf2939ba576b96b633d81366123b... | \n [] | \n NaN | \n NaN | \n NaN | \n NaN | \n NaN | \n NaN | \n NaN | \n NaN | \n NaN | \n False | \n
\n \n
\n
260491 rows × 20 columns
\n
"
},
"execution_count": 27,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"cpc_def"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 28,
"outputs": [
{
"data": {
"text/plain": " appln_id cpc_class_symbol\n461523 550229597 C08G 18/6674\n511948 569882441 C08K 5/06\n67828 414454432 G06F 21/105\n83905 418994277 H04B 7/0452\n393107 530331540 H04N 19/70\n406153 534165470 C07K2317/52\n253473 490601228 D06M2200/50\n256305 491586869 G01G 11/003\n279783 497310121 A61K 39/3955\n432151 541221711 G01N 15/1012",
"text/html": "\n\n
\n \n \n | \n appln_id | \n cpc_class_symbol | \n
\n \n \n \n 461523 | \n 550229597 | \n C08G 18/6674 | \n
\n \n 511948 | \n 569882441 | \n C08K 5/06 | \n
\n \n 67828 | \n 414454432 | \n G06F 21/105 | \n
\n \n 83905 | \n 418994277 | \n H04B 7/0452 | \n
\n \n 393107 | \n 530331540 | \n H04N 19/70 | \n
\n \n 406153 | \n 534165470 | \n C07K2317/52 | \n
\n \n 253473 | \n 490601228 | \n D06M2200/50 | \n
\n \n 256305 | \n 491586869 | \n G01G 11/003 | \n
\n \n 279783 | \n 497310121 | \n A61K 39/3955 | \n
\n \n 432151 | \n 541221711 | \n G01N 15/1012 | \n
\n \n
\n
"
},
"execution_count": 28,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln_cpc.sample(10)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 16,
"outputs": [
{
"data": {
"text/plain": "325243"
},
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"len(appln_pers)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 17,
"outputs": [
{
"data": {
"text/plain": "65136"
},
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"len(appln)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 18,
"outputs": [],
"source": [
"# Number of collaborative applications\n"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 39,
"outputs": [],
"source": [
"record_col = \"appln_id\""
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 19,
"outputs": [
{
"data": {
"text/plain": "'C:\\\\Users\\\\radvanyi\\\\PycharmProjects\\\\ZSI_analytics\\\\PATSTAT'"
},
"execution_count": 19,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"os.getcwd()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 20,
"outputs": [
{
"data": {
"text/plain": "count 65136.000000\nmean 2016.312546\nstd 3.189059\nmin 2011.000000\n25% 2013.000000\n50% 2017.000000\n75% 2019.000000\nmax 2023.000000\nName: appln_filing_year, dtype: float64"
},
"execution_count": 20,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln[\"appln_filing_year\"].describe()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 61,
"outputs": [
{
"data": {
"text/plain": " appln_id appln_auth appln_kind filing_year nb_applicants \n445321 902305835 EP A 2017 0 \\\n480488 515101583 CN A 2018 2 \n307745 458113107 CN A 2016 1 \n352956 449856958 EP A 2016 1 \n452231 510599290 CN A 2018 1 \n... ... ... ... ... ... \n424840 496723291 CN A 2017 1 \n84346 378450888 GB A 2012 1 \n736784 576111604 CN A 2021 1 \n617397 528722596 CN A 2019 1 \n65667 411664922 DE A 2012 1 \n\n nb_inventors \n445321 0 \n480488 5 \n307745 3 \n352956 4 \n452231 3 \n... ... \n424840 1 \n84346 0 \n736784 3 \n617397 1 \n65667 1 \n\n[100 rows x 6 columns]",
"text/html": "\n\n
\n \n \n | \n appln_id | \n appln_auth | \n appln_kind | \n filing_year | \n nb_applicants | \n nb_inventors | \n
\n \n \n \n 445321 | \n 902305835 | \n EP | \n A | \n 2017 | \n 0 | \n 0 | \n
\n \n 480488 | \n 515101583 | \n CN | \n A | \n 2018 | \n 2 | \n 5 | \n
\n \n 307745 | \n 458113107 | \n CN | \n A | \n 2016 | \n 1 | \n 3 | \n
\n \n 352956 | \n 449856958 | \n EP | \n A | \n 2016 | \n 1 | \n 4 | \n
\n \n 452231 | \n 510599290 | \n CN | \n A | \n 2018 | \n 1 | \n 3 | \n
\n \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n
\n \n 424840 | \n 496723291 | \n CN | \n A | \n 2017 | \n 1 | \n 1 | \n
\n \n 84346 | \n 378450888 | \n GB | \n A | \n 2012 | \n 1 | \n 0 | \n
\n \n 736784 | \n 576111604 | \n CN | \n A | \n 2021 | \n 1 | \n 3 | \n
\n \n 617397 | \n 528722596 | \n CN | \n A | \n 2019 | \n 1 | \n 1 | \n
\n \n 65667 | \n 411664922 | \n DE | \n A | \n 2012 | \n 1 | \n 1 | \n
\n \n
\n
100 rows × 6 columns
\n
"
},
"execution_count": 61,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"outdir=\"first_round\"\n",
"\n",
"appln_f = pd.read_csv(f\"{outdir}/first-filings-raw.csv\", header=None,\n",
" 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.sample(100)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 40,
"outputs": [
{
"data": {
"text/plain": "appln_kind\nA 735889\nU 37157\nF 9\nD 3\nName: count, dtype: int64"
},
"execution_count": 40,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln_f[\"appln_kind\"].value_counts()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"# Co-patents per year"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 62,
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"hovertemplate": "Year:%{x:d}
Number of co-publications:%{y:d}",
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "text+markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"text": [
52293.0,
52911.0,
57065.0,
59627.0,
66787.0,
72521.0,
79736.0,
83326.0,
88838.0,
94178.0,
54385.0,
101.0
],
"textfont": {
"size": 12
},
"textposition": "top center",
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x",
"y": [
52293,
52911,
57065,
59627,
66787,
72521,
79736,
83326,
88838,
94178,
54385,
101
],
"yaxis": "y",
"type": "scatter"
},
{
"hovertemplate": "Year:%{x:d}
Rel.growth in co-publications:%{y:.0%}",
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "text+markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"text": [
0.0,
0.011818025357122367,
0.091255043696097,
0.14024821677853633,
0.27716902835943624,
0.3868204157344195,
0.5247929933260665,
0.5934446293002887,
0.6988507065955291,
0.8009676247298874,
0.04000535444514562,
-0.9980685751439007
],
"textfont": {
"size": 12
},
"textposition": "top center",
"texttemplate": "%{y:.0%}",
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x2",
"y": [
0.0,
0.011818025357122367,
0.091255043696097,
0.14024821677853633,
0.27716902835943624,
0.3868204157344195,
0.5247929933260665,
0.5934446293002887,
0.6988507065955291,
0.8009676247298874,
0.04000535444514562,
-0.9980685751439007
],
"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,
150000
]
},
"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,
1.5
]
},
"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": ""
},
"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}
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}
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,150000]\n",
"figsuper['layout'][\"yaxis2\"][\"range\"] = [-1,1.5]\n",
"#\n",
"# figsuper['layout']['yaxis'].update(tickformat=\".0f\")\n",
"# figsuper['layout']['yaxis3'].update(tickformat=\".0f\")\n",
"\n",
"figsuper.show(config= dict(displayModeBar = False, responsive = True))"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 63,
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"EP not found in ISO2\n"
]
},
{
"data": {
"text/plain": " filing_year appln_auth appln_id filing_year_relative_growth \n0 2011 AT 705.0 2011 \\\n1 2012 AT 607.0 2011 \n2 2013 AT 673.0 2011 \n3 2014 AT 658.0 2011 \n4 2015 AT 710.0 2011 \n.. ... ... ... ... \n355 2018 SK 16.0 2011 \n356 2019 SK 15.0 2011 \n357 2020 SK 22.0 2011 \n358 2021 SK 14.0 2011 \n359 2022 SK 0.0 2011 \n\n appln_id_relative_growth appln_id_cumsum Country \n0 0.000000 705.0 Austria \n1 -0.139007 1312.0 Austria \n2 -0.045390 1985.0 Austria \n3 -0.066667 2643.0 Austria \n4 0.007092 3353.0 Austria \n.. ... ... ... \n355 -0.407407 191.0 Slovakia \n356 -0.444444 206.0 Slovakia \n357 -0.185185 228.0 Slovakia \n358 -0.481481 242.0 Slovakia \n359 -1.000000 242.0 Slovakia \n\n[360 rows x 7 columns]",
"text/html": "\n\n
\n \n \n | \n filing_year | \n appln_auth | \n appln_id | \n filing_year_relative_growth | \n appln_id_relative_growth | \n appln_id_cumsum | \n Country | \n
\n \n \n \n 0 | \n 2011 | \n AT | \n 705.0 | \n 2011 | \n 0.000000 | \n 705.0 | \n Austria | \n
\n \n 1 | \n 2012 | \n AT | \n 607.0 | \n 2011 | \n -0.139007 | \n 1312.0 | \n Austria | \n
\n \n 2 | \n 2013 | \n AT | \n 673.0 | \n 2011 | \n -0.045390 | \n 1985.0 | \n Austria | \n
\n \n 3 | \n 2014 | \n AT | \n 658.0 | \n 2011 | \n -0.066667 | \n 2643.0 | \n Austria | \n
\n \n 4 | \n 2015 | \n AT | \n 710.0 | \n 2011 | \n 0.007092 | \n 3353.0 | \n Austria | \n
\n \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n
\n \n 355 | \n 2018 | \n SK | \n 16.0 | \n 2011 | \n -0.407407 | \n 191.0 | \n Slovakia | \n
\n \n 356 | \n 2019 | \n SK | \n 15.0 | \n 2011 | \n -0.444444 | \n 206.0 | \n Slovakia | \n
\n \n 357 | \n 2020 | \n SK | \n 22.0 | \n 2011 | \n -0.185185 | \n 228.0 | \n Slovakia | \n
\n \n 358 | \n 2021 | \n SK | \n 14.0 | \n 2011 | \n -0.481481 | \n 242.0 | \n Slovakia | \n
\n \n 359 | \n 2022 | \n SK | \n 0.0 | \n 2011 | \n -1.000000 | \n 242.0 | \n Slovakia | \n
\n \n
\n
360 rows × 7 columns
\n
"
},
"execution_count": 63,
"metadata": {},
"output_type": "execute_result"
}
],
"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",
"data"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 68,
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Austria",
"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,
2022
],
"xaxis": "x25",
"y": [
705.0,
607.0,
673.0,
658.0,
710.0,
635.0,
613.0,
613.0,
621.0,
630.0,
349.0,
0.0
],
"yaxis": "y25",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Belgium",
"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,
2022
],
"xaxis": "x26",
"y": [
124.0,
168.0,
199.0,
147.0,
141.0,
199.0,
177.0,
211.0,
160.0,
205.0,
149.0,
0.0
],
"yaxis": "y26",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Bulgaria",
"Bulgaria",
"Bulgaria",
"Bulgaria",
"Bulgaria",
"Bulgaria",
"Bulgaria",
"Bulgaria",
"Bulgaria",
"Bulgaria",
"Bulgaria",
"Bulgaria"
],
"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,
2022
],
"xaxis": "x27",
"y": [
31.0,
44.0,
28.0,
38.0,
27.0,
20.0,
37.0,
24.0,
28.0,
28.0,
8.0,
0.0
],
"yaxis": "y27",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"China",
"China",
"China",
"China",
"China",
"China",
"China",
"China",
"China",
"China",
"China",
"China"
],
"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,
2022
],
"xaxis": "x28",
"y": [
13197.0,
14537.0,
17119.0,
18866.0,
25362.0,
30388.0,
36860.0,
40586.0,
46934.0,
52936.0,
29489.0,
100.0
],
"yaxis": "y28",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Croatia",
"Croatia",
"Croatia",
"Croatia",
"Croatia",
"Croatia",
"Croatia",
"Croatia",
"Croatia",
"Croatia",
"Croatia",
"Croatia"
],
"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,
2022
],
"xaxis": "x29",
"y": [
13.0,
29.0,
19.0,
12.0,
11.0,
15.0,
15.0,
16.0,
12.0,
7.0,
2.0,
0.0
],
"yaxis": "y29",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Cyprus",
"Cyprus",
"Cyprus",
"Cyprus",
"Cyprus",
"Cyprus",
"Cyprus",
"Cyprus",
"Cyprus",
"Cyprus",
"Cyprus",
"Cyprus"
],
"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,
2022
],
"xaxis": "x30",
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0
],
"yaxis": "y30",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
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",
"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,
2022
],
"xaxis": "x19",
"y": [
121.0,
146.0,
154.0,
141.0,
166.0,
130.0,
117.0,
111.0,
121.0,
146.0,
79.0,
1.0
],
"yaxis": "y19",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Denmark",
"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,
2022
],
"xaxis": "x20",
"y": [
577.0,
518.0,
515.0,
562.0,
673.0,
730.0,
657.0,
599.0,
626.0,
571.0,
339.0,
0.0
],
"yaxis": "y20",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Estonia",
"Estonia",
"Estonia",
"Estonia",
"Estonia",
"Estonia",
"Estonia",
"Estonia",
"Estonia",
"Estonia",
"Estonia",
"Estonia"
],
"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,
2022
],
"xaxis": "x21",
"y": [
13.0,
3.0,
9.0,
6.0,
2.0,
9.0,
3.0,
2.0,
1.0,
4.0,
1.0,
0.0
],
"yaxis": "y21",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
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",
"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,
2022
],
"xaxis": "x22",
"y": [
8665.0,
8790.0,
9790.0,
10312.0,
10745.0,
11146.0,
11663.0,
12094.0,
12732.0,
13041.0,
7771.0,
0.0
],
"yaxis": "y22",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Finland",
"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,
2022
],
"xaxis": "x23",
"y": [
680.0,
676.0,
656.0,
566.0,
485.0,
530.0,
597.0,
592.0,
598.0,
694.0,
459.0,
0.0
],
"yaxis": "y23",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"France",
"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,
2022
],
"xaxis": "x24",
"y": [
5349.0,
5421.0,
5685.0,
5753.0,
5867.0,
5637.0,
5678.0,
5568.0,
5420.0,
4910.0,
2940.0,
0.0
],
"yaxis": "y24",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Germany",
"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,
2022
],
"xaxis": "x13",
"y": [
13955.0,
13173.0,
12867.0,
13269.0,
13276.0,
13601.0,
14104.0,
13517.0,
12612.0,
11284.0,
7030.0,
0.0
],
"yaxis": "y13",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Greece",
"Greece",
"Greece",
"Greece",
"Greece",
"Greece",
"Greece",
"Greece",
"Greece",
"Greece",
"Greece",
"Greece"
],
"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,
2022
],
"xaxis": "x14",
"y": [
45.0,
50.0,
52.0,
48.0,
60.0,
67.0,
52.0,
83.0,
62.0,
67.0,
60.0,
0.0
],
"yaxis": "y14",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Hungary",
"Hungary",
"Hungary",
"Hungary",
"Hungary",
"Hungary",
"Hungary",
"Hungary",
"Hungary",
"Hungary",
"Hungary",
"Hungary"
],
"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,
2022
],
"xaxis": "x15",
"y": [
117.0,
101.0,
106.0,
89.0,
118.0,
100.0,
87.0,
88.0,
89.0,
75.0,
59.0,
0.0
],
"yaxis": "y15",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland"
],
"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,
2022
],
"xaxis": "x16",
"y": [
74.0,
82.0,
43.0,
32.0,
40.0,
27.0,
31.0,
37.0,
26.0,
21.0,
11.0,
0.0
],
"yaxis": "y16",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Italy",
"Italy",
"Italy",
"Italy",
"Italy",
"Italy",
"Italy",
"Italy",
"Italy",
"Italy",
"Italy",
"Italy"
],
"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,
2022
],
"xaxis": "x17",
"y": [
775.0,
715.0,
733.0,
715.0,
728.0,
798.0,
800.0,
768.0,
748.0,
860.0,
573.0,
0.0
],
"yaxis": "y17",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Latvia",
"Latvia",
"Latvia",
"Latvia",
"Latvia",
"Latvia",
"Latvia",
"Latvia",
"Latvia",
"Latvia",
"Latvia",
"Latvia"
],
"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,
2022
],
"xaxis": "x18",
"y": [
13.0,
14.0,
13.0,
2.0,
5.0,
2.0,
1.0,
0.0,
3.0,
9.0,
6.0,
0.0
],
"yaxis": "y18",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania"
],
"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,
2022
],
"xaxis": "x7",
"y": [
8.0,
18.0,
14.0,
12.0,
4.0,
1.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0
],
"yaxis": "y7",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg"
],
"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,
2022
],
"xaxis": "x8",
"y": [
51.0,
61.0,
60.0,
82.0,
119.0,
178.0,
141.0,
140.0,
142.0,
203.0,
111.0,
0.0
],
"yaxis": "y8",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands"
],
"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,
2022
],
"xaxis": "x9",
"y": [
660.0,
692.0,
713.0,
749.0,
829.0,
802.0,
799.0,
785.0,
875.0,
939.0,
572.0,
0.0
],
"yaxis": "y9",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland"
],
"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,
2022
],
"xaxis": "x10",
"y": [
174.0,
219.0,
181.0,
195.0,
228.0,
178.0,
141.0,
175.0,
155.0,
163.0,
87.0,
0.0
],
"yaxis": "y10",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal"
],
"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,
2022
],
"xaxis": "x11",
"y": [
46.0,
60.0,
69.0,
49.0,
52.0,
61.0,
60.0,
52.0,
48.0,
47.0,
22.0,
0.0
],
"yaxis": "y11",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania"
],
"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,
2022
],
"xaxis": "x12",
"y": [
26.0,
19.0,
24.0,
25.0,
24.0,
24.0,
26.0,
24.0,
23.0,
17.0,
13.0,
0.0
],
"yaxis": "y12",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Slovakia",
"Slovakia",
"Slovakia",
"Slovakia",
"Slovakia",
"Slovakia",
"Slovakia",
"Slovakia",
"Slovakia",
"Slovakia",
"Slovakia",
"Slovakia"
],
"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,
2022
],
"xaxis": "x",
"y": [
27.0,
26.0,
36.0,
19.0,
18.0,
26.0,
23.0,
16.0,
15.0,
22.0,
14.0,
0.0
],
"yaxis": "y",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Slovenia",
"Slovenia",
"Slovenia",
"Slovenia",
"Slovenia",
"Slovenia",
"Slovenia",
"Slovenia",
"Slovenia",
"Slovenia",
"Slovenia",
"Slovenia"
],
"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,
2022
],
"xaxis": "x2",
"y": [
81.0,
66.0,
69.0,
49.0,
21.0,
31.0,
50.0,
29.0,
36.0,
29.0,
17.0,
0.0
],
"yaxis": "y2",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain"
],
"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,
2022
],
"xaxis": "x3",
"y": [
1091.0,
986.0,
941.0,
933.0,
863.0,
779.0,
750.0,
762.0,
695.0,
739.0,
443.0,
0.0
],
"yaxis": "y3",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden"
],
"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,
2022
],
"xaxis": "x4",
"y": [
885.0,
1025.0,
1070.0,
964.0,
980.0,
1080.0,
1047.0,
1041.0,
982.0,
1023.0,
682.0,
0.0
],
"yaxis": "y4",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland"
],
"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,
2022
],
"xaxis": "x5",
"y": [
356.0,
310.0,
294.0,
288.0,
298.0,
245.0,
242.0,
269.0,
243.0,
282.0,
172.0,
0.0
],
"yaxis": "y5",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
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",
"United Kingdom"
],
"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,
2022
],
"xaxis": "x6",
"y": [
4434.0,
4355.0,
4933.0,
5046.0,
4935.0,
5082.0,
4965.0,
5124.0,
4831.0,
5224.0,
2927.0,
0.0
],
"yaxis": "y6",
"type": "scatter"
}
],
"layout": {
"annotations": [
{
"showarrow": false,
"text": "Slovakia",
"x": 0.075,
"xanchor": "center",
"xref": "paper",
"y": 0.144,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Slovenia",
"x": 0.24499999999999997,
"xanchor": "center",
"xref": "paper",
"y": 0.144,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Spain",
"x": 0.415,
"xanchor": "center",
"xref": "paper",
"y": 0.144,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Sweden",
"x": 0.585,
"xanchor": "center",
"xref": "paper",
"y": 0.144,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Switzerland",
"x": 0.7549999999999999,
"xanchor": "center",
"xref": "paper",
"y": 0.144,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "United Kingdom",
"x": 0.925,
"xanchor": "center",
"xref": "paper",
"y": 0.144,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Lithuania",
"x": 0.075,
"xanchor": "center",
"xref": "paper",
"y": 0.358,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Luxembourg",
"x": 0.24499999999999997,
"xanchor": "center",
"xref": "paper",
"y": 0.358,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Netherlands",
"x": 0.415,
"xanchor": "center",
"xref": "paper",
"y": 0.358,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Poland",
"x": 0.585,
"xanchor": "center",
"xref": "paper",
"y": 0.358,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Portugal",
"x": 0.7549999999999999,
"xanchor": "center",
"xref": "paper",
"y": 0.358,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Romania",
"x": 0.925,
"xanchor": "center",
"xref": "paper",
"y": 0.358,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Germany",
"x": 0.075,
"xanchor": "center",
"xref": "paper",
"y": 0.572,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Greece",
"x": 0.24499999999999997,
"xanchor": "center",
"xref": "paper",
"y": 0.572,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Hungary",
"x": 0.415,
"xanchor": "center",
"xref": "paper",
"y": 0.572,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Ireland",
"x": 0.585,
"xanchor": "center",
"xref": "paper",
"y": 0.572,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Italy",
"x": 0.7549999999999999,
"xanchor": "center",
"xref": "paper",
"y": 0.572,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Latvia",
"x": 0.925,
"xanchor": "center",
"xref": "paper",
"y": 0.572,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Czech Republic",
"x": 0.075,
"xanchor": "center",
"xref": "paper",
"y": 0.7859999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Denmark",
"x": 0.24499999999999997,
"xanchor": "center",
"xref": "paper",
"y": 0.7859999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Estonia",
"x": 0.415,
"xanchor": "center",
"xref": "paper",
"y": 0.7859999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "European Patent Office",
"x": 0.585,
"xanchor": "center",
"xref": "paper",
"y": 0.7859999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Finland",
"x": 0.7549999999999999,
"xanchor": "center",
"xref": "paper",
"y": 0.7859999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "France",
"x": 0.925,
"xanchor": "center",
"xref": "paper",
"y": 0.7859999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Austria",
"x": 0.075,
"xanchor": "center",
"xref": "paper",
"y": 1.0,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Belgium",
"x": 0.24499999999999997,
"xanchor": "center",
"xref": "paper",
"y": 1.0,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Bulgaria",
"x": 0.415,
"xanchor": "center",
"xref": "paper",
"y": 1.0,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "China",
"x": 0.585,
"xanchor": "center",
"xref": "paper",
"y": 1.0,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Croatia",
"x": 0.7549999999999999,
"xanchor": "center",
"xref": "paper",
"y": 1.0,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Cyprus",
"x": 0.925,
"xanchor": "center",
"xref": "paper",
"y": 1.0,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
}
],
"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.15
],
"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.144
],
"linecolor": "black",
"linewidth": 1,
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis2": {
"anchor": "y2",
"domain": [
0.16999999999999998,
0.31999999999999995
],
"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.144
],
"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.33999999999999997,
0.49
],
"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.144
],
"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.51,
0.66
],
"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.144
],
"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.6799999999999999,
0.83
],
"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.144
],
"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.85,
1.0
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis6": {
"anchor": "x6",
"domain": [
0.0,
0.144
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis7": {
"anchor": "y7",
"domain": [
0.0,
0.15
],
"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.214,
0.358
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis8": {
"anchor": "y8",
"domain": [
0.16999999999999998,
0.31999999999999995
],
"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.214,
0.358
],
"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.33999999999999997,
0.49
],
"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.214,
0.358
],
"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.51,
0.66
],
"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.214,
0.358
],
"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.6799999999999999,
0.83
],
"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.214,
0.358
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis12": {
"anchor": "y12",
"domain": [
0.85,
1.0
],
"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.214,
0.358
],
"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.0,
0.15
],
"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.428,
0.572
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis14": {
"anchor": "y14",
"domain": [
0.16999999999999998,
0.31999999999999995
],
"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.428,
0.572
],
"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.33999999999999997,
0.49
],
"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.428,
0.572
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis16": {
"anchor": "y16",
"domain": [
0.51,
0.66
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis16": {
"anchor": "x16",
"domain": [
0.428,
0.572
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis17": {
"anchor": "y17",
"domain": [
0.6799999999999999,
0.83
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis17": {
"anchor": "x17",
"domain": [
0.428,
0.572
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis18": {
"anchor": "y18",
"domain": [
0.85,
1.0
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis18": {
"anchor": "x18",
"domain": [
0.428,
0.572
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis19": {
"anchor": "y19",
"domain": [
0.0,
0.15
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis19": {
"anchor": "x19",
"domain": [
0.6419999999999999,
0.7859999999999999
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis20": {
"anchor": "y20",
"domain": [
0.16999999999999998,
0.31999999999999995
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis20": {
"anchor": "x20",
"domain": [
0.6419999999999999,
0.7859999999999999
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis21": {
"anchor": "y21",
"domain": [
0.33999999999999997,
0.49
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis21": {
"anchor": "x21",
"domain": [
0.6419999999999999,
0.7859999999999999
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis22": {
"anchor": "y22",
"domain": [
0.51,
0.66
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis22": {
"anchor": "x22",
"domain": [
0.6419999999999999,
0.7859999999999999
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis23": {
"anchor": "y23",
"domain": [
0.6799999999999999,
0.83
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis23": {
"anchor": "x23",
"domain": [
0.6419999999999999,
0.7859999999999999
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis24": {
"anchor": "y24",
"domain": [
0.85,
1.0
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis24": {
"anchor": "x24",
"domain": [
0.6419999999999999,
0.7859999999999999
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis25": {
"anchor": "y25",
"domain": [
0.0,
0.15
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis25": {
"anchor": "x25",
"domain": [
0.856,
1.0
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis26": {
"anchor": "y26",
"domain": [
0.16999999999999998,
0.31999999999999995
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis26": {
"anchor": "x26",
"domain": [
0.856,
1.0
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis27": {
"anchor": "y27",
"domain": [
0.33999999999999997,
0.49
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis27": {
"anchor": "x27",
"domain": [
0.856,
1.0
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis28": {
"anchor": "y28",
"domain": [
0.51,
0.66
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis28": {
"anchor": "x28",
"domain": [
0.856,
1.0
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis29": {
"anchor": "y29",
"domain": [
0.6799999999999999,
0.83
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis29": {
"anchor": "x29",
"domain": [
0.856,
1.0
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis30": {
"anchor": "y30",
"domain": [
0.85,
1.0
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis30": {
"anchor": "x30",
"domain": [
0.856,
1.0
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"font": {
"size": 22
}
},
"config": {
"plotlyServerURL": "https://plotly.com"
}
},
"text/html": ""
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"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=6,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='%{hovertext}
%{x}
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\"})\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",
"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()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 67,
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Austria",
"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,
2022
],
"xaxis": "x25",
"y": [
0.0,
-0.13900709219858157,
-0.04539007092198582,
-0.06666666666666667,
0.0070921985815602835,
-0.09929078014184398,
-0.13049645390070921,
-0.13049645390070921,
-0.11914893617021277,
-0.10638297872340426,
-0.5049645390070922,
-1.0
],
"yaxis": "y25",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Belgium",
"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,
2022
],
"xaxis": "x26",
"y": [
0.0,
0.3548387096774194,
0.6048387096774194,
0.18548387096774194,
0.13709677419354838,
0.6048387096774194,
0.4274193548387097,
0.7016129032258065,
0.2903225806451613,
0.6532258064516129,
0.20161290322580644,
-1.0
],
"yaxis": "y26",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Bulgaria",
"Bulgaria",
"Bulgaria",
"Bulgaria",
"Bulgaria",
"Bulgaria",
"Bulgaria",
"Bulgaria",
"Bulgaria",
"Bulgaria",
"Bulgaria",
"Bulgaria"
],
"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,
2022
],
"xaxis": "x27",
"y": [
0.0,
0.41935483870967744,
-0.0967741935483871,
0.22580645161290322,
-0.12903225806451613,
-0.3548387096774194,
0.1935483870967742,
-0.22580645161290322,
-0.0967741935483871,
-0.0967741935483871,
-0.7419354838709677,
-1.0
],
"yaxis": "y27",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"China",
"China",
"China",
"China",
"China",
"China",
"China",
"China",
"China",
"China",
"China",
"China"
],
"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,
2022
],
"xaxis": "x28",
"y": [
0.0,
0.10153822838523907,
0.2971887550200803,
0.4295673259074032,
0.9218004091839054,
1.3026445404258544,
1.7930590285670986,
2.075395923315905,
2.5564143365916494,
3.011214670000758,
1.2345229976509813,
-0.9924225202697583
],
"yaxis": "y28",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Croatia",
"Croatia",
"Croatia",
"Croatia",
"Croatia",
"Croatia",
"Croatia",
"Croatia",
"Croatia",
"Croatia",
"Croatia",
"Croatia"
],
"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,
2022
],
"xaxis": "x29",
"y": [
0.0,
1.2307692307692308,
0.46153846153846156,
-0.07692307692307693,
-0.15384615384615385,
0.15384615384615385,
0.15384615384615385,
0.23076923076923078,
-0.07692307692307693,
-0.46153846153846156,
-0.8461538461538461,
-1.0
],
"yaxis": "y29",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Cyprus",
"Cyprus",
"Cyprus",
"Cyprus",
"Cyprus",
"Cyprus",
"Cyprus",
"Cyprus",
"Cyprus",
"Cyprus",
"Cyprus",
"Cyprus"
],
"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,
2022
],
"xaxis": "x30",
"y": [
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
0.0,
-1.0,
-1.0
],
"yaxis": "y30",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
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",
"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,
2022
],
"xaxis": "x19",
"y": [
0.0,
0.2066115702479339,
0.2727272727272727,
0.1652892561983471,
0.371900826446281,
0.0743801652892562,
-0.03305785123966942,
-0.08264462809917356,
0.0,
0.2066115702479339,
-0.34710743801652894,
-0.9917355371900827
],
"yaxis": "y19",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Denmark",
"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,
2022
],
"xaxis": "x20",
"y": [
0.0,
-0.1022530329289428,
-0.10745233968804159,
-0.025996533795493933,
0.1663778162911612,
0.2651646447140381,
0.1386481802426343,
0.038128249566724434,
0.08492201039861352,
-0.010398613518197574,
-0.4124783362218371,
-1.0
],
"yaxis": "y20",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Estonia",
"Estonia",
"Estonia",
"Estonia",
"Estonia",
"Estonia",
"Estonia",
"Estonia",
"Estonia",
"Estonia",
"Estonia",
"Estonia"
],
"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,
2022
],
"xaxis": "x21",
"y": [
0.0,
-0.7692307692307693,
-0.3076923076923077,
-0.5384615384615384,
-0.8461538461538461,
-0.3076923076923077,
-0.7692307692307693,
-0.8461538461538461,
-0.9230769230769231,
-0.6923076923076923,
-0.9230769230769231,
-1.0
],
"yaxis": "y21",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
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",
"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,
2022
],
"xaxis": "x22",
"y": [
0.0,
0.014425851125216388,
0.1298326601269475,
0.19007501442585112,
0.2400461627236007,
0.2863242931332949,
0.34598961338718986,
0.39572994806693595,
0.4693594922100404,
0.5050201961915753,
-0.10317368724754761,
-1.0
],
"yaxis": "y22",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Finland",
"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,
2022
],
"xaxis": "x23",
"y": [
0.0,
-0.0058823529411764705,
-0.03529411764705882,
-0.1676470588235294,
-0.2867647058823529,
-0.22058823529411764,
-0.12205882352941176,
-0.12941176470588237,
-0.12058823529411765,
0.020588235294117647,
-0.325,
-1.0
],
"yaxis": "y23",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"France",
"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,
2022
],
"xaxis": "x24",
"y": [
0.0,
0.01346045989904655,
0.0628154795288839,
0.07552813610020565,
0.09684053094036268,
0.0538418395961862,
0.06150682370536549,
0.04094223219293326,
0.013273509067115349,
-0.08207141521779772,
-0.45036455412226584,
-1.0
],
"yaxis": "y24",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Germany",
"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,
2022
],
"xaxis": "x13",
"y": [
0.0,
-0.05603726262988176,
-0.0779648871372268,
-0.0491580078824794,
-0.04865639555714798,
-0.02536725188104622,
0.01067717663919742,
-0.03138659978502329,
-0.09623790756001434,
-0.19140093156574706,
-0.49623790756001435,
-1.0
],
"yaxis": "y13",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Greece",
"Greece",
"Greece",
"Greece",
"Greece",
"Greece",
"Greece",
"Greece",
"Greece",
"Greece",
"Greece",
"Greece"
],
"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,
2022
],
"xaxis": "x14",
"y": [
0.0,
0.1111111111111111,
0.15555555555555556,
0.06666666666666667,
0.3333333333333333,
0.4888888888888889,
0.15555555555555556,
0.8444444444444444,
0.37777777777777777,
0.4888888888888889,
0.3333333333333333,
-1.0
],
"yaxis": "y14",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Hungary",
"Hungary",
"Hungary",
"Hungary",
"Hungary",
"Hungary",
"Hungary",
"Hungary",
"Hungary",
"Hungary",
"Hungary",
"Hungary"
],
"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,
2022
],
"xaxis": "x15",
"y": [
0.0,
-0.13675213675213677,
-0.09401709401709402,
-0.23931623931623933,
0.008547008547008548,
-0.1452991452991453,
-0.2564102564102564,
-0.24786324786324787,
-0.23931623931623933,
-0.358974358974359,
-0.49572649572649574,
-1.0
],
"yaxis": "y15",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland"
],
"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,
2022
],
"xaxis": "x16",
"y": [
0.0,
0.10810810810810811,
-0.4189189189189189,
-0.5675675675675675,
-0.4594594594594595,
-0.6351351351351351,
-0.581081081081081,
-0.5,
-0.6486486486486487,
-0.7162162162162162,
-0.8513513513513513,
-1.0
],
"yaxis": "y16",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Italy",
"Italy",
"Italy",
"Italy",
"Italy",
"Italy",
"Italy",
"Italy",
"Italy",
"Italy",
"Italy",
"Italy"
],
"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,
2022
],
"xaxis": "x17",
"y": [
0.0,
-0.07741935483870968,
-0.05419354838709677,
-0.07741935483870968,
-0.06064516129032258,
0.02967741935483871,
0.03225806451612903,
-0.00903225806451613,
-0.03483870967741935,
0.10967741935483871,
-0.26064516129032256,
-1.0
],
"yaxis": "y17",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Latvia",
"Latvia",
"Latvia",
"Latvia",
"Latvia",
"Latvia",
"Latvia",
"Latvia",
"Latvia",
"Latvia",
"Latvia",
"Latvia"
],
"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,
2022
],
"xaxis": "x18",
"y": [
0.0,
0.07692307692307693,
0.0,
-0.8461538461538461,
-0.6153846153846154,
-0.8461538461538461,
-0.9230769230769231,
-1.0,
-0.7692307692307693,
-0.3076923076923077,
-0.5384615384615384,
-1.0
],
"yaxis": "y18",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania"
],
"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,
2022
],
"xaxis": "x7",
"y": [
0.0,
1.25,
0.75,
0.5,
-0.5,
-0.875,
-1.0,
-1.0,
-1.0,
-0.875,
-1.0,
-1.0
],
"yaxis": "y7",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg"
],
"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,
2022
],
"xaxis": "x8",
"y": [
0.0,
0.19607843137254902,
0.17647058823529413,
0.6078431372549019,
1.3333333333333333,
2.4901960784313726,
1.7647058823529411,
1.7450980392156863,
1.7843137254901962,
2.980392156862745,
1.1764705882352942,
-1.0
],
"yaxis": "y8",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands"
],
"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,
2022
],
"xaxis": "x9",
"y": [
0.0,
0.048484848484848485,
0.0803030303030303,
0.13484848484848486,
0.25606060606060604,
0.21515151515151515,
0.2106060606060606,
0.1893939393939394,
0.32575757575757575,
0.42272727272727273,
-0.13333333333333333,
-1.0
],
"yaxis": "y9",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland"
],
"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,
2022
],
"xaxis": "x10",
"y": [
0.0,
0.25862068965517243,
0.040229885057471264,
0.1206896551724138,
0.3103448275862069,
0.022988505747126436,
-0.1896551724137931,
0.005747126436781609,
-0.10919540229885058,
-0.06321839080459771,
-0.5,
-1.0
],
"yaxis": "y10",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal"
],
"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,
2022
],
"xaxis": "x11",
"y": [
0.0,
0.30434782608695654,
0.5,
0.06521739130434782,
0.13043478260869565,
0.32608695652173914,
0.30434782608695654,
0.13043478260869565,
0.043478260869565216,
0.021739130434782608,
-0.5217391304347826,
-1.0
],
"yaxis": "y11",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania"
],
"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,
2022
],
"xaxis": "x12",
"y": [
0.0,
-0.2692307692307692,
-0.07692307692307693,
-0.038461538461538464,
-0.07692307692307693,
-0.07692307692307693,
0.0,
-0.07692307692307693,
-0.11538461538461539,
-0.34615384615384615,
-0.5,
-1.0
],
"yaxis": "y12",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Slovakia",
"Slovakia",
"Slovakia",
"Slovakia",
"Slovakia",
"Slovakia",
"Slovakia",
"Slovakia",
"Slovakia",
"Slovakia",
"Slovakia",
"Slovakia"
],
"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,
2022
],
"xaxis": "x",
"y": [
0.0,
-0.037037037037037035,
0.3333333333333333,
-0.2962962962962963,
-0.3333333333333333,
-0.037037037037037035,
-0.14814814814814814,
-0.4074074074074074,
-0.4444444444444444,
-0.18518518518518517,
-0.48148148148148145,
-1.0
],
"yaxis": "y",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Slovenia",
"Slovenia",
"Slovenia",
"Slovenia",
"Slovenia",
"Slovenia",
"Slovenia",
"Slovenia",
"Slovenia",
"Slovenia",
"Slovenia",
"Slovenia"
],
"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,
2022
],
"xaxis": "x2",
"y": [
0.0,
-0.18518518518518517,
-0.14814814814814814,
-0.3950617283950617,
-0.7407407407407407,
-0.6172839506172839,
-0.38271604938271603,
-0.6419753086419753,
-0.5555555555555556,
-0.6419753086419753,
-0.7901234567901234,
-1.0
],
"yaxis": "y2",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain"
],
"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,
2022
],
"xaxis": "x3",
"y": [
0.0,
-0.09624197983501374,
-0.13748854262144822,
-0.14482126489459213,
-0.20898258478460127,
-0.2859761686526123,
-0.3125572868927589,
-0.3015582034830431,
-0.3629697525206233,
-0.3226397800183318,
-0.5939505041246563,
-1.0
],
"yaxis": "y3",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden"
],
"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,
2022
],
"xaxis": "x4",
"y": [
0.0,
0.15819209039548024,
0.20903954802259886,
0.08926553672316384,
0.10734463276836158,
0.22033898305084745,
0.18305084745762712,
0.17627118644067796,
0.1096045197740113,
0.15593220338983052,
-0.22937853107344633,
-1.0
],
"yaxis": "y4",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}",
"hovertext": [
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland"
],
"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,
2022
],
"xaxis": "x5",
"y": [
0.0,
-0.12921348314606743,
-0.17415730337078653,
-0.19101123595505617,
-0.16292134831460675,
-0.31179775280898875,
-0.3202247191011236,
-0.2443820224719101,
-0.31741573033707865,
-0.20786516853932585,
-0.5168539325842697,
-1.0
],
"yaxis": "y5",
"type": "scatter"
},
{
"hovertemplate": "%{hovertext}
%{x}
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",
"United Kingdom"
],
"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,
2022
],
"xaxis": "x6",
"y": [
0.0,
-0.01781686964366261,
0.11253946774921064,
0.13802435723951287,
0.11299052774018944,
0.14614343707713126,
0.11975642760487144,
0.15561569688768606,
0.08953540820929183,
0.17816869643662608,
-0.3398737032025259,
-1.0
],
"yaxis": "y6",
"type": "scatter"
}
],
"layout": {
"annotations": [
{
"showarrow": false,
"text": "Slovakia",
"x": 0.075,
"xanchor": "center",
"xref": "paper",
"y": 0.144,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Slovenia",
"x": 0.24499999999999997,
"xanchor": "center",
"xref": "paper",
"y": 0.144,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Spain",
"x": 0.415,
"xanchor": "center",
"xref": "paper",
"y": 0.144,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Sweden",
"x": 0.585,
"xanchor": "center",
"xref": "paper",
"y": 0.144,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Switzerland",
"x": 0.7549999999999999,
"xanchor": "center",
"xref": "paper",
"y": 0.144,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "United Kingdom",
"x": 0.925,
"xanchor": "center",
"xref": "paper",
"y": 0.144,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Lithuania",
"x": 0.075,
"xanchor": "center",
"xref": "paper",
"y": 0.358,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Luxembourg",
"x": 0.24499999999999997,
"xanchor": "center",
"xref": "paper",
"y": 0.358,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Netherlands",
"x": 0.415,
"xanchor": "center",
"xref": "paper",
"y": 0.358,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Poland",
"x": 0.585,
"xanchor": "center",
"xref": "paper",
"y": 0.358,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Portugal",
"x": 0.7549999999999999,
"xanchor": "center",
"xref": "paper",
"y": 0.358,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Romania",
"x": 0.925,
"xanchor": "center",
"xref": "paper",
"y": 0.358,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Germany",
"x": 0.075,
"xanchor": "center",
"xref": "paper",
"y": 0.572,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Greece",
"x": 0.24499999999999997,
"xanchor": "center",
"xref": "paper",
"y": 0.572,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Hungary",
"x": 0.415,
"xanchor": "center",
"xref": "paper",
"y": 0.572,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Ireland",
"x": 0.585,
"xanchor": "center",
"xref": "paper",
"y": 0.572,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Italy",
"x": 0.7549999999999999,
"xanchor": "center",
"xref": "paper",
"y": 0.572,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Latvia",
"x": 0.925,
"xanchor": "center",
"xref": "paper",
"y": 0.572,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Czech Republic",
"x": 0.075,
"xanchor": "center",
"xref": "paper",
"y": 0.7859999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Denmark",
"x": 0.24499999999999997,
"xanchor": "center",
"xref": "paper",
"y": 0.7859999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Estonia",
"x": 0.415,
"xanchor": "center",
"xref": "paper",
"y": 0.7859999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "European Patent Office",
"x": 0.585,
"xanchor": "center",
"xref": "paper",
"y": 0.7859999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Finland",
"x": 0.7549999999999999,
"xanchor": "center",
"xref": "paper",
"y": 0.7859999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "France",
"x": 0.925,
"xanchor": "center",
"xref": "paper",
"y": 0.7859999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Austria",
"x": 0.075,
"xanchor": "center",
"xref": "paper",
"y": 1.0,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Belgium",
"x": 0.24499999999999997,
"xanchor": "center",
"xref": "paper",
"y": 1.0,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Bulgaria",
"x": 0.415,
"xanchor": "center",
"xref": "paper",
"y": 1.0,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "China",
"x": 0.585,
"xanchor": "center",
"xref": "paper",
"y": 1.0,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Croatia",
"x": 0.7549999999999999,
"xanchor": "center",
"xref": "paper",
"y": 1.0,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Cyprus",
"x": 0.925,
"xanchor": "center",
"xref": "paper",
"y": 1.0,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
}
],
"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.15
],
"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.144
],
"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
}
},
"xaxis2": {
"anchor": "y2",
"domain": [
0.16999999999999998,
0.31999999999999995
],
"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.144
],
"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
}
},
"xaxis3": {
"anchor": "y3",
"domain": [
0.33999999999999997,
0.49
],
"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.144
],
"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
}
},
"xaxis4": {
"anchor": "y4",
"domain": [
0.51,
0.66
],
"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.144
],
"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
}
},
"xaxis5": {
"anchor": "y5",
"domain": [
0.6799999999999999,
0.83
],
"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.144
],
"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
}
},
"xaxis6": {
"anchor": "y6",
"domain": [
0.85,
1.0
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis6": {
"anchor": "x6",
"domain": [
0.0,
0.144
],
"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
}
},
"xaxis7": {
"anchor": "y7",
"domain": [
0.0,
0.15
],
"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.214,
0.358
],
"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
}
},
"xaxis8": {
"anchor": "y8",
"domain": [
0.16999999999999998,
0.31999999999999995
],
"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.214,
0.358
],
"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
}
},
"xaxis9": {
"anchor": "y9",
"domain": [
0.33999999999999997,
0.49
],
"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.214,
0.358
],
"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
}
},
"xaxis10": {
"anchor": "y10",
"domain": [
0.51,
0.66
],
"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.214,
0.358
],
"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
}
},
"xaxis11": {
"anchor": "y11",
"domain": [
0.6799999999999999,
0.83
],
"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.214,
0.358
],
"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
}
},
"xaxis12": {
"anchor": "y12",
"domain": [
0.85,
1.0
],
"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.214,
0.358
],
"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
}
},
"xaxis13": {
"anchor": "y13",
"domain": [
0.0,
0.15
],
"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.428,
0.572
],
"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
}
},
"xaxis14": {
"anchor": "y14",
"domain": [
0.16999999999999998,
0.31999999999999995
],
"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.428,
0.572
],
"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
}
},
"xaxis15": {
"anchor": "y15",
"domain": [
0.33999999999999997,
0.49
],
"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.428,
0.572
],
"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
}
},
"xaxis16": {
"anchor": "y16",
"domain": [
0.51,
0.66
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis16": {
"anchor": "x16",
"domain": [
0.428,
0.572
],
"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
}
},
"xaxis17": {
"anchor": "y17",
"domain": [
0.6799999999999999,
0.83
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis17": {
"anchor": "x17",
"domain": [
0.428,
0.572
],
"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
}
},
"xaxis18": {
"anchor": "y18",
"domain": [
0.85,
1.0
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis18": {
"anchor": "x18",
"domain": [
0.428,
0.572
],
"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
}
},
"xaxis19": {
"anchor": "y19",
"domain": [
0.0,
0.15
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis19": {
"anchor": "x19",
"domain": [
0.6419999999999999,
0.7859999999999999
],
"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
}
},
"xaxis20": {
"anchor": "y20",
"domain": [
0.16999999999999998,
0.31999999999999995
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis20": {
"anchor": "x20",
"domain": [
0.6419999999999999,
0.7859999999999999
],
"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
}
},
"xaxis21": {
"anchor": "y21",
"domain": [
0.33999999999999997,
0.49
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis21": {
"anchor": "x21",
"domain": [
0.6419999999999999,
0.7859999999999999
],
"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
}
},
"xaxis22": {
"anchor": "y22",
"domain": [
0.51,
0.66
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis22": {
"anchor": "x22",
"domain": [
0.6419999999999999,
0.7859999999999999
],
"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
}
},
"xaxis23": {
"anchor": "y23",
"domain": [
0.6799999999999999,
0.83
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis23": {
"anchor": "x23",
"domain": [
0.6419999999999999,
0.7859999999999999
],
"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
}
},
"xaxis24": {
"anchor": "y24",
"domain": [
0.85,
1.0
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis24": {
"anchor": "x24",
"domain": [
0.6419999999999999,
0.7859999999999999
],
"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
}
},
"xaxis25": {
"anchor": "y25",
"domain": [
0.0,
0.15
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis25": {
"anchor": "x25",
"domain": [
0.856,
1.0
],
"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
}
},
"xaxis26": {
"anchor": "y26",
"domain": [
0.16999999999999998,
0.31999999999999995
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis26": {
"anchor": "x26",
"domain": [
0.856,
1.0
],
"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
}
},
"xaxis27": {
"anchor": "y27",
"domain": [
0.33999999999999997,
0.49
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis27": {
"anchor": "x27",
"domain": [
0.856,
1.0
],
"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
}
},
"xaxis28": {
"anchor": "y28",
"domain": [
0.51,
0.66
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis28": {
"anchor": "x28",
"domain": [
0.856,
1.0
],
"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
}
},
"xaxis29": {
"anchor": "y29",
"domain": [
0.6799999999999999,
0.83
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis29": {
"anchor": "x29",
"domain": [
0.856,
1.0
],
"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
}
},
"xaxis30": {
"anchor": "y30",
"domain": [
0.85,
1.0
],
"linecolor": "black",
"linewidth": 1,
"matches": "x",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
},
"tickangle": 45
},
"yaxis30": {
"anchor": "x30",
"domain": [
0.856,
1.0
],
"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
}
},
"font": {
"size": 22
}
},
"config": {
"plotlyServerURL": "https://plotly.com"
}
},
"text/html": ""
},
"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=6,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 output of co-patents by patent authority\",hover_name= \"Country\")\n",
"fig.update_traces(hovertemplate='%{hovertext}
%{x}
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\"})\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()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 142,
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"EP not found in ISO2\n"
]
},
{
"data": {
"text/plain": " appln_id appln_auth person_id invt_seq_nr applt_seq_nr \n987983 449313178 FR 53981953 1 0 \\\n896220 438489934 FR 52986688 4 0 \n1703159 484622346 EP 57708518 1 0 \n20051 471352386 DE 5235181 0 1 \n151664 337008716 FR 42812566 1 0 \n... ... ... ... ... ... \n818875 436949973 FR 51872306 2 0 \n195230 523590443 DE 16958864 2 0 \n129138 578626678 DE 6193358 0 1 \n276045 449666385 DE 41815193 2 0 \n24195 530683500 DE 5235181 0 1 \n\n person_name person_ctry_code psn_sector han_id \n987983 BREARD MATTHIEU FR NaN 153981953 \\\n896220 ENGBLOM CHRISTER FR NaN 152986688 \n1703159 VAN INGELGEM, Werner BE NaN 157708518 \n20051 Robert Bosch GmbH DE COMPANY 2456791 \n151664 BRESOUS LUC FR NaN 142812566 \n... ... ... ... ... \n818875 BORDERIEUX, LOIC FR NaN 151872306 \n195230 WEYDANZ, WOLFGANG DE INDIVIDUAL 116958864 \n129138 Clariant International Ltd. CH COMPANY 524840 \n276045 WELTER, MARTIN DE INDIVIDUAL 141815193 \n24195 Robert Bosch GmbH DE COMPANY 2456791 \n\n han_name person_ctry_code_fullname \n987983 BREARD MATTHIEU France \\\n896220 ENGBLOM CHRISTER France \n1703159 VAN INGELGEM, Werner Belgium \n20051 ROBERT BOSCH GMBH Germany \n151664 BRESOUS LUC France \n... ... ... \n818875 BORDERIEUX, LOIC France \n195230 WEYDANZ, WOLFGANG Germany \n129138 CLARIANT INT LTD Switzerland \n276045 WELTER, MARTIN Germany \n24195 ROBERT BOSCH GMBH Germany \n\n appln_auth_fullname \n987983 France \n896220 France \n1703159 European Patent Office \n20051 Germany \n151664 France \n... ... \n818875 France \n195230 Germany \n129138 Germany \n276045 Germany \n24195 Germany \n\n[100 rows x 12 columns]",
"text/html": "\n\n
\n \n \n | \n appln_id | \n appln_auth | \n person_id | \n invt_seq_nr | \n applt_seq_nr | \n person_name | \n person_ctry_code | \n psn_sector | \n han_id | \n han_name | \n person_ctry_code_fullname | \n appln_auth_fullname | \n
\n \n \n \n 987983 | \n 449313178 | \n FR | \n 53981953 | \n 1 | \n 0 | \n BREARD MATTHIEU | \n FR | \n NaN | \n 153981953 | \n BREARD MATTHIEU | \n France | \n France | \n
\n \n 896220 | \n 438489934 | \n FR | \n 52986688 | \n 4 | \n 0 | \n ENGBLOM CHRISTER | \n FR | \n NaN | \n 152986688 | \n ENGBLOM CHRISTER | \n France | \n France | \n
\n \n 1703159 | \n 484622346 | \n EP | \n 57708518 | \n 1 | \n 0 | \n VAN INGELGEM, Werner | \n BE | \n NaN | \n 157708518 | \n VAN INGELGEM, Werner | \n Belgium | \n European Patent Office | \n
\n \n 20051 | \n 471352386 | \n DE | \n 5235181 | \n 0 | \n 1 | \n Robert Bosch GmbH | \n DE | \n COMPANY | \n 2456791 | \n ROBERT BOSCH GMBH | \n Germany | \n Germany | \n
\n \n 151664 | \n 337008716 | \n FR | \n 42812566 | \n 1 | \n 0 | \n BRESOUS LUC | \n FR | \n NaN | \n 142812566 | \n BRESOUS LUC | \n France | \n France | \n
\n \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n
\n \n 818875 | \n 436949973 | \n FR | \n 51872306 | \n 2 | \n 0 | \n BORDERIEUX, LOIC | \n FR | \n NaN | \n 151872306 | \n BORDERIEUX, LOIC | \n France | \n France | \n
\n \n 195230 | \n 523590443 | \n DE | \n 16958864 | \n 2 | \n 0 | \n WEYDANZ, WOLFGANG | \n DE | \n INDIVIDUAL | \n 116958864 | \n WEYDANZ, WOLFGANG | \n Germany | \n Germany | \n
\n \n 129138 | \n 578626678 | \n DE | \n 6193358 | \n 0 | \n 1 | \n Clariant International Ltd. | \n CH | \n COMPANY | \n 524840 | \n CLARIANT INT LTD | \n Switzerland | \n Germany | \n
\n \n 276045 | \n 449666385 | \n DE | \n 41815193 | \n 2 | \n 0 | \n WELTER, MARTIN | \n DE | \n INDIVIDUAL | \n 141815193 | \n WELTER, MARTIN | \n Germany | \n Germany | \n
\n \n 24195 | \n 530683500 | \n DE | \n 5235181 | \n 0 | \n 1 | \n Robert Bosch GmbH | \n DE | \n COMPANY | \n 2456791 | \n ROBERT BOSCH GMBH | \n Germany | \n Germany | \n
\n \n
\n
100 rows × 12 columns
\n
"
},
"execution_count": 142,
"metadata": {},
"output_type": "execute_result"
}
],
"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",
"\n",
"appln_pers_f.sample(100)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 143,
"outputs": [
{
"data": {
"text/plain": "283091"
},
"execution_count": 143,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln_pers_f[\"appln_id\"].nunique()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 146,
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "appln_id_percent=%{x}
person_ctry_code_fullname=%{y}",
"legendgroup": "",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "",
"offsetgroup": "",
"orientation": "h",
"showlegend": false,
"textposition": "auto",
"x": [
0.03914342553564487,
0.02023674321821383,
7.736457388507359E-4,
0.0026639328643185438,
7.35535111321143E-4,
1.562535728713309E-4,
0.007404894928999901,
0.013007157175850057,
4.1921690282552195E-4,
0.023906796649313628,
0.24829836048080367,
0.5011776183906644,
0.0025153014169531315,
0.00601385702416976,
0.004477998734727166,
0.012103935303398705,
2.9726289473082465E-4,
3.163182084956211E-4,
0.0025267346052120095,
1.562535728713309E-4,
0.04088508121374727,
0.0037195972468882675,
0.009802053400611294,
0.0024619465384117015,
0.0019360198785033193,
0.0018597986234441337,
0.0027630204958954854,
0.04001996996882551,
0.026601218015655844,
0.03892619495872619
],
"xaxis": "x",
"y": [
"Austria",
"Belgium",
"Bulgaria",
"China",
"Croatia",
"Cyprus",
"Czech Republic",
"Denmark",
"Estonia",
"Finland",
"France",
"Germany",
"Greece",
"Hungary",
"Ireland",
"Italy",
"Latvia",
"Lithuania",
"Luxembourg",
"Malta",
"Netherlands",
"Norway",
"Poland",
"Portugal",
"Romania",
"Slovakia",
"Slovenia",
"Spain",
"Sweden",
"Switzerland"
],
"yaxis": "y",
"type": "bar"
}
],
"layout": {
"template": {
"data": {
"histogram2dcontour": [
{
"type": "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"
]
]
}
],
"choropleth": [
{
"type": "choropleth",
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
],
"histogram2d": [
{
"type": "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"
]
]
}
],
"heatmap": [
{
"type": "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"
]
]
}
],
"heatmapgl": [
{
"type": "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"
]
]
}
],
"contourcarpet": [
{
"type": "contourcarpet",
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
],
"contour": [
{
"type": "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"
]
]
}
],
"surface": [
{
"type": "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"
]
]
}
],
"mesh3d": [
{
"type": "mesh3d",
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
],
"scatter": [
{
"marker": {
"line": {
"color": "#283442"
}
},
"type": "scatter"
}
],
"parcoords": [
{
"type": "parcoords",
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
}
],
"scatterpolargl": [
{
"type": "scatterpolargl",
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
}
],
"bar": [
{
"error_x": {
"color": "#f2f5fa"
},
"error_y": {
"color": "#f2f5fa"
},
"marker": {
"line": {
"color": "rgb(17,17,17)",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"scattergeo": [
{
"type": "scattergeo",
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
}
],
"scatterpolar": [
{
"type": "scatterpolar",
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"scattergl": [
{
"marker": {
"line": {
"color": "#283442"
}
},
"type": "scattergl"
}
],
"scatter3d": [
{
"type": "scatter3d",
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
}
],
"scattermapbox": [
{
"type": "scattermapbox",
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
}
],
"scatterternary": [
{
"type": "scatterternary",
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
}
],
"scattercarpet": [
{
"type": "scattercarpet",
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#A2B1C6",
"gridcolor": "#506784",
"linecolor": "#506784",
"minorgridcolor": "#506784",
"startlinecolor": "#A2B1C6"
},
"baxis": {
"endlinecolor": "#A2B1C6",
"gridcolor": "#506784",
"linecolor": "#506784",
"minorgridcolor": "#506784",
"startlinecolor": "#A2B1C6"
},
"type": "carpet"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#506784"
},
"line": {
"color": "rgb(17,17,17)"
}
},
"header": {
"fill": {
"color": "#2a3f5f"
},
"line": {
"color": "rgb(17,17,17)"
}
},
"type": "table"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "rgb(17,17,17)",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
]
},
"layout": {
"autotypenumbers": "strict",
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#f2f5fa"
},
"hovermode": "closest",
"hoverlabel": {
"align": "left"
},
"paper_bgcolor": "rgb(17,17,17)",
"plot_bgcolor": "rgb(17,17,17)",
"polar": {
"bgcolor": "rgb(17,17,17)",
"angularaxis": {
"gridcolor": "#506784",
"linecolor": "#506784",
"ticks": ""
},
"radialaxis": {
"gridcolor": "#506784",
"linecolor": "#506784",
"ticks": ""
}
},
"ternary": {
"bgcolor": "rgb(17,17,17)",
"aaxis": {
"gridcolor": "#506784",
"linecolor": "#506784",
"ticks": ""
},
"baxis": {
"gridcolor": "#506784",
"linecolor": "#506784",
"ticks": ""
},
"caxis": {
"gridcolor": "#506784",
"linecolor": "#506784",
"ticks": ""
}
},
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"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"
]
],
"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"
]
]
},
"xaxis": {
"gridcolor": "#283442",
"linecolor": "#506784",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "#283442",
"automargin": true,
"zerolinewidth": 2
},
"yaxis": {
"gridcolor": "#283442",
"linecolor": "#506784",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "#283442",
"automargin": true,
"zerolinewidth": 2
},
"scene": {
"xaxis": {
"backgroundcolor": "rgb(17,17,17)",
"gridcolor": "#506784",
"linecolor": "#506784",
"showbackground": true,
"ticks": "",
"zerolinecolor": "#C8D4E3",
"gridwidth": 2
},
"yaxis": {
"backgroundcolor": "rgb(17,17,17)",
"gridcolor": "#506784",
"linecolor": "#506784",
"showbackground": true,
"ticks": "",
"zerolinecolor": "#C8D4E3",
"gridwidth": 2
},
"zaxis": {
"backgroundcolor": "rgb(17,17,17)",
"gridcolor": "#506784",
"linecolor": "#506784",
"showbackground": true,
"ticks": "",
"zerolinecolor": "#C8D4E3",
"gridwidth": 2
}
},
"shapedefaults": {
"line": {
"color": "#f2f5fa"
}
},
"annotationdefaults": {
"arrowcolor": "#f2f5fa",
"arrowhead": 0,
"arrowwidth": 1
},
"geo": {
"bgcolor": "rgb(17,17,17)",
"landcolor": "rgb(17,17,17)",
"subunitcolor": "#506784",
"showland": true,
"showlakes": true,
"lakecolor": "rgb(17,17,17)"
},
"title": {
"x": 0.05
},
"updatemenudefaults": {
"bgcolor": "#506784",
"borderwidth": 0
},
"sliderdefaults": {
"bgcolor": "#C8D4E3",
"borderwidth": 1,
"bordercolor": "rgb(17,17,17)",
"tickwidth": 0
},
"mapbox": {
"style": "dark"
}
}
},
"xaxis": {
"anchor": "y",
"domain": [
0.0,
1.0
],
"title": {
"text": "appln_id_percent"
}
},
"yaxis": {
"anchor": "x",
"domain": [
0.0,
1.0
],
"title": {
"text": "person_ctry_code_fullname"
}
},
"legend": {
"tracegroupgap": 0
},
"margin": {
"t": 60
},
"barmode": "relative"
},
"config": {
"plotlyServerURL": "https://plotly.com"
}
},
"text/html": ""
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "appln_id_percent=%{x}
person_ctry_code_fullname=%{y}",
"legendgroup": "",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "",
"offsetgroup": "",
"orientation": "h",
"showlegend": false,
"textposition": "auto",
"x": [
0.03927784643490409,
0.0169720416241291,
9.600057313775008E-4,
0.0025361345440868305,
5.444808625723139E-4,
2.2209087815449645E-4,
0.005606003617932048,
0.011380366449948954,
3.3313631723174466E-4,
0.022875360449913135,
0.22587358730499885,
0.4844303548080884,
0.0021600128955993766,
0.00308419751759712,
0.004345100567764584,
0.010782153923307005,
2.400014328443752E-4,
2.3641932190639943E-4,
0.00504719431160783,
4.585102000608959E-4,
0.03672738344706535,
0.002955241523829993,
0.007637060519764297,
0.0018089660236777533,
9.098561782458403E-4,
9.241846219977432E-4,
0.002156430784661401,
0.037730374509698565,
0.035273046406247205,
0.05146418784589759
],
"xaxis": "x",
"y": [
"Austria",
"Belgium",
"Bulgaria",
"China",
"Croatia",
"Cyprus",
"Czech Republic",
"Denmark",
"Estonia",
"Finland",
"France",
"Germany",
"Greece",
"Hungary",
"Ireland",
"Italy",
"Latvia",
"Lithuania",
"Luxembourg",
"Malta",
"Netherlands",
"Norway",
"Poland",
"Portugal",
"Romania",
"Slovakia",
"Slovenia",
"Spain",
"Sweden",
"Switzerland"
],
"yaxis": "y",
"type": "bar"
}
],
"layout": {
"template": {
"data": {
"histogram2dcontour": [
{
"type": "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"
]
]
}
],
"choropleth": [
{
"type": "choropleth",
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
],
"histogram2d": [
{
"type": "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"
]
]
}
],
"heatmap": [
{
"type": "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"
]
]
}
],
"heatmapgl": [
{
"type": "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"
]
]
}
],
"contourcarpet": [
{
"type": "contourcarpet",
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
],
"contour": [
{
"type": "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"
]
]
}
],
"surface": [
{
"type": "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"
]
]
}
],
"mesh3d": [
{
"type": "mesh3d",
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
],
"scatter": [
{
"marker": {
"line": {
"color": "#283442"
}
},
"type": "scatter"
}
],
"parcoords": [
{
"type": "parcoords",
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
}
],
"scatterpolargl": [
{
"type": "scatterpolargl",
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
}
],
"bar": [
{
"error_x": {
"color": "#f2f5fa"
},
"error_y": {
"color": "#f2f5fa"
},
"marker": {
"line": {
"color": "rgb(17,17,17)",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"scattergeo": [
{
"type": "scattergeo",
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
}
],
"scatterpolar": [
{
"type": "scatterpolar",
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"scattergl": [
{
"marker": {
"line": {
"color": "#283442"
}
},
"type": "scattergl"
}
],
"scatter3d": [
{
"type": "scatter3d",
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
}
],
"scattermapbox": [
{
"type": "scattermapbox",
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
}
],
"scatterternary": [
{
"type": "scatterternary",
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
}
],
"scattercarpet": [
{
"type": "scattercarpet",
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#A2B1C6",
"gridcolor": "#506784",
"linecolor": "#506784",
"minorgridcolor": "#506784",
"startlinecolor": "#A2B1C6"
},
"baxis": {
"endlinecolor": "#A2B1C6",
"gridcolor": "#506784",
"linecolor": "#506784",
"minorgridcolor": "#506784",
"startlinecolor": "#A2B1C6"
},
"type": "carpet"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#506784"
},
"line": {
"color": "rgb(17,17,17)"
}
},
"header": {
"fill": {
"color": "#2a3f5f"
},
"line": {
"color": "rgb(17,17,17)"
}
},
"type": "table"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "rgb(17,17,17)",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
]
},
"layout": {
"autotypenumbers": "strict",
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#f2f5fa"
},
"hovermode": "closest",
"hoverlabel": {
"align": "left"
},
"paper_bgcolor": "rgb(17,17,17)",
"plot_bgcolor": "rgb(17,17,17)",
"polar": {
"bgcolor": "rgb(17,17,17)",
"angularaxis": {
"gridcolor": "#506784",
"linecolor": "#506784",
"ticks": ""
},
"radialaxis": {
"gridcolor": "#506784",
"linecolor": "#506784",
"ticks": ""
}
},
"ternary": {
"bgcolor": "rgb(17,17,17)",
"aaxis": {
"gridcolor": "#506784",
"linecolor": "#506784",
"ticks": ""
},
"baxis": {
"gridcolor": "#506784",
"linecolor": "#506784",
"ticks": ""
},
"caxis": {
"gridcolor": "#506784",
"linecolor": "#506784",
"ticks": ""
}
},
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"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"
]
],
"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"
]
]
},
"xaxis": {
"gridcolor": "#283442",
"linecolor": "#506784",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "#283442",
"automargin": true,
"zerolinewidth": 2
},
"yaxis": {
"gridcolor": "#283442",
"linecolor": "#506784",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "#283442",
"automargin": true,
"zerolinewidth": 2
},
"scene": {
"xaxis": {
"backgroundcolor": "rgb(17,17,17)",
"gridcolor": "#506784",
"linecolor": "#506784",
"showbackground": true,
"ticks": "",
"zerolinecolor": "#C8D4E3",
"gridwidth": 2
},
"yaxis": {
"backgroundcolor": "rgb(17,17,17)",
"gridcolor": "#506784",
"linecolor": "#506784",
"showbackground": true,
"ticks": "",
"zerolinecolor": "#C8D4E3",
"gridwidth": 2
},
"zaxis": {
"backgroundcolor": "rgb(17,17,17)",
"gridcolor": "#506784",
"linecolor": "#506784",
"showbackground": true,
"ticks": "",
"zerolinecolor": "#C8D4E3",
"gridwidth": 2
}
},
"shapedefaults": {
"line": {
"color": "#f2f5fa"
}
},
"annotationdefaults": {
"arrowcolor": "#f2f5fa",
"arrowhead": 0,
"arrowwidth": 1
},
"geo": {
"bgcolor": "rgb(17,17,17)",
"landcolor": "rgb(17,17,17)",
"subunitcolor": "#506784",
"showland": true,
"showlakes": true,
"lakecolor": "rgb(17,17,17)"
},
"title": {
"x": 0.05
},
"updatemenudefaults": {
"bgcolor": "#506784",
"borderwidth": 0
},
"sliderdefaults": {
"bgcolor": "#C8D4E3",
"borderwidth": 1,
"bordercolor": "rgb(17,17,17)",
"tickwidth": 0
},
"mapbox": {
"style": "dark"
}
}
},
"xaxis": {
"anchor": "y",
"domain": [
0.0,
1.0
],
"title": {
"text": "appln_id_percent"
}
},
"yaxis": {
"anchor": "x",
"domain": [
0.0,
1.0
],
"title": {
"text": "person_ctry_code_fullname"
}
},
"legend": {
"tracegroupgap": 0
},
"margin": {
"t": 60
},
"barmode": "relative"
},
"config": {
"plotlyServerURL": "https://plotly.com"
}
},
"text/html": ""
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "appln_id_percent=%{x}
appln_auth_fullname=%{y}",
"legendgroup": "",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "",
"offsetgroup": "",
"orientation": "h",
"showlegend": false,
"textposition": "auto",
"x": [
0.021208727935540163,
0.006238276737868742,
8.053947317293732E-4,
6.0051361576312915E-5,
4.768784595766026E-4,
0.004846498122511842,
0.005178546827698514,
1.6249191955943496E-4,
0.1840115016019584,
0.016662486620909883,
0.20245786690498815,
0.4374494420522023,
0.0018121381463910898,
0.0028436085922901116,
2.2607571416964864E-4,
0.006626844371597825,
2.1194598203404559E-4,
2.013486829323433E-4,
0.003694924953460195,
1.059729910170228E-5,
0.019612068204217018,
0.006535001112716406,
0.0013599867180517926,
8.265893299327778E-4,
7.524082362208619E-4,
0.0015189462045773266,
0.02970776181510539,
0.02148072527915052,
0.00673988222868265,
0.016280983853248603
],
"xaxis": "x",
"y": [
"Austria",
"Belgium",
"Bulgaria",
"China",
"Croatia",
"Czech Republic",
"Denmark",
"Estonia",
"European Patent Office",
"Finland",
"France",
"Germany",
"Greece",
"Hungary",
"Ireland",
"Italy",
"Latvia",
"Lithuania",
"Luxembourg",
"Morocco",
"Netherlands",
"Poland",
"Portugal",
"Romania",
"Slovakia",
"Slovenia",
"Spain",
"Sweden",
"Switzerland",
"United Kingdom"
],
"yaxis": "y",
"type": "bar"
}
],
"layout": {
"template": {
"data": {
"histogram2dcontour": [
{
"type": "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"
]
]
}
],
"choropleth": [
{
"type": "choropleth",
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
],
"histogram2d": [
{
"type": "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"
]
]
}
],
"heatmap": [
{
"type": "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"
]
]
}
],
"heatmapgl": [
{
"type": "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"
]
]
}
],
"contourcarpet": [
{
"type": "contourcarpet",
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
],
"contour": [
{
"type": "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"
]
]
}
],
"surface": [
{
"type": "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"
]
]
}
],
"mesh3d": [
{
"type": "mesh3d",
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
],
"scatter": [
{
"marker": {
"line": {
"color": "#283442"
}
},
"type": "scatter"
}
],
"parcoords": [
{
"type": "parcoords",
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
}
],
"scatterpolargl": [
{
"type": "scatterpolargl",
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
}
],
"bar": [
{
"error_x": {
"color": "#f2f5fa"
},
"error_y": {
"color": "#f2f5fa"
},
"marker": {
"line": {
"color": "rgb(17,17,17)",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"scattergeo": [
{
"type": "scattergeo",
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
}
],
"scatterpolar": [
{
"type": "scatterpolar",
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"scattergl": [
{
"marker": {
"line": {
"color": "#283442"
}
},
"type": "scattergl"
}
],
"scatter3d": [
{
"type": "scatter3d",
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
}
],
"scattermapbox": [
{
"type": "scattermapbox",
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
}
],
"scatterternary": [
{
"type": "scatterternary",
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
}
],
"scattercarpet": [
{
"type": "scattercarpet",
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
}
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#A2B1C6",
"gridcolor": "#506784",
"linecolor": "#506784",
"minorgridcolor": "#506784",
"startlinecolor": "#A2B1C6"
},
"baxis": {
"endlinecolor": "#A2B1C6",
"gridcolor": "#506784",
"linecolor": "#506784",
"minorgridcolor": "#506784",
"startlinecolor": "#A2B1C6"
},
"type": "carpet"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#506784"
},
"line": {
"color": "rgb(17,17,17)"
}
},
"header": {
"fill": {
"color": "#2a3f5f"
},
"line": {
"color": "rgb(17,17,17)"
}
},
"type": "table"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "rgb(17,17,17)",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
]
},
"layout": {
"autotypenumbers": "strict",
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#f2f5fa"
},
"hovermode": "closest",
"hoverlabel": {
"align": "left"
},
"paper_bgcolor": "rgb(17,17,17)",
"plot_bgcolor": "rgb(17,17,17)",
"polar": {
"bgcolor": "rgb(17,17,17)",
"angularaxis": {
"gridcolor": "#506784",
"linecolor": "#506784",
"ticks": ""
},
"radialaxis": {
"gridcolor": "#506784",
"linecolor": "#506784",
"ticks": ""
}
},
"ternary": {
"bgcolor": "rgb(17,17,17)",
"aaxis": {
"gridcolor": "#506784",
"linecolor": "#506784",
"ticks": ""
},
"baxis": {
"gridcolor": "#506784",
"linecolor": "#506784",
"ticks": ""
},
"caxis": {
"gridcolor": "#506784",
"linecolor": "#506784",
"ticks": ""
}
},
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"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"
]
],
"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"
]
]
},
"xaxis": {
"gridcolor": "#283442",
"linecolor": "#506784",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "#283442",
"automargin": true,
"zerolinewidth": 2
},
"yaxis": {
"gridcolor": "#283442",
"linecolor": "#506784",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "#283442",
"automargin": true,
"zerolinewidth": 2
},
"scene": {
"xaxis": {
"backgroundcolor": "rgb(17,17,17)",
"gridcolor": "#506784",
"linecolor": "#506784",
"showbackground": true,
"ticks": "",
"zerolinecolor": "#C8D4E3",
"gridwidth": 2
},
"yaxis": {
"backgroundcolor": "rgb(17,17,17)",
"gridcolor": "#506784",
"linecolor": "#506784",
"showbackground": true,
"ticks": "",
"zerolinecolor": "#C8D4E3",
"gridwidth": 2
},
"zaxis": {
"backgroundcolor": "rgb(17,17,17)",
"gridcolor": "#506784",
"linecolor": "#506784",
"showbackground": true,
"ticks": "",
"zerolinecolor": "#C8D4E3",
"gridwidth": 2
}
},
"shapedefaults": {
"line": {
"color": "#f2f5fa"
}
},
"annotationdefaults": {
"arrowcolor": "#f2f5fa",
"arrowhead": 0,
"arrowwidth": 1
},
"geo": {
"bgcolor": "rgb(17,17,17)",
"landcolor": "rgb(17,17,17)",
"subunitcolor": "#506784",
"showland": true,
"showlakes": true,
"lakecolor": "rgb(17,17,17)"
},
"title": {
"x": 0.05
},
"updatemenudefaults": {
"bgcolor": "#506784",
"borderwidth": 0
},
"sliderdefaults": {
"bgcolor": "#C8D4E3",
"borderwidth": 1,
"bordercolor": "rgb(17,17,17)",
"tickwidth": 0
},
"mapbox": {
"style": "dark"
}
}
},
"xaxis": {
"anchor": "y",
"domain": [
0.0,
1.0
],
"title": {
"text": "appln_id_percent"
}
},
"yaxis": {
"anchor": "x",
"domain": [
0.0,
1.0
],
"title": {
"text": "appln_auth_fullname"
}
},
"legend": {
"tracegroupgap": 0
},
"margin": {
"t": 60
},
"barmode": "relative"
},
"config": {
"plotlyServerURL": "https://plotly.com"
}
},
"text/html": ""
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"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",
"\n",
" data = pers_sub.groupby(c+\"_fullname\",as_index=False)[record_col].nunique()\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\")\n",
" fig.show()\n",
" else:\n",
" data = pers_sub.groupby(c+\"_fullname\",as_index=False)[record_col].nunique()\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\")\n",
" fig.show()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 126,
"outputs": [
{
"data": {
"text/plain": " appln_auth appln_id appln_id_percent\n0 AT 6016 0.009362\n1 BE 1772 0.002758\n2 BG 229 0.000356\n3 CH 1926 0.002997\n4 CN 304654 0.474115\n5 CZ 1373 0.002137\n6 DE 124035 0.193028\n7 DK 1480 0.002303\n8 EE 46 0.000072\n9 EP 54082 0.084165\n10 ES 8484 0.013203\n11 FI 4719 0.007344\n12 FR 57391 0.089314\n13 GB 51069 0.079476\n14 GR 515 0.000801\n15 HR 135 0.000210\n16 HU 807 0.001256\n17 IE 70 0.000109\n18 IT 5535 0.008614\n19 LT 58 0.000090\n20 LU 1054 0.001640\n21 LV 60 0.000093\n22 MA 363 0.000565\n23 NL 7377 0.011480\n24 PL 1854 0.002885\n25 PT 385 0.000599\n26 RO 235 0.000366\n27 SE 6207 0.009660\n28 SI 430 0.000669\n29 SK 213 0.000331",
"text/html": "\n\n
\n \n \n | \n appln_auth | \n appln_id | \n appln_id_percent | \n
\n \n \n \n 0 | \n AT | \n 6016 | \n 0.009362 | \n
\n \n 1 | \n BE | \n 1772 | \n 0.002758 | \n
\n \n 2 | \n BG | \n 229 | \n 0.000356 | \n
\n \n 3 | \n CH | \n 1926 | \n 0.002997 | \n
\n \n 4 | \n CN | \n 304654 | \n 0.474115 | \n
\n \n 5 | \n CZ | \n 1373 | \n 0.002137 | \n
\n \n 6 | \n DE | \n 124035 | \n 0.193028 | \n
\n \n 7 | \n DK | \n 1480 | \n 0.002303 | \n
\n \n 8 | \n EE | \n 46 | \n 0.000072 | \n
\n \n 9 | \n EP | \n 54082 | \n 0.084165 | \n
\n \n 10 | \n ES | \n 8484 | \n 0.013203 | \n
\n \n 11 | \n FI | \n 4719 | \n 0.007344 | \n
\n \n 12 | \n FR | \n 57391 | \n 0.089314 | \n
\n \n 13 | \n GB | \n 51069 | \n 0.079476 | \n
\n \n 14 | \n GR | \n 515 | \n 0.000801 | \n
\n \n 15 | \n HR | \n 135 | \n 0.000210 | \n
\n \n 16 | \n HU | \n 807 | \n 0.001256 | \n
\n \n 17 | \n IE | \n 70 | \n 0.000109 | \n
\n \n 18 | \n IT | \n 5535 | \n 0.008614 | \n
\n \n 19 | \n LT | \n 58 | \n 0.000090 | \n
\n \n 20 | \n LU | \n 1054 | \n 0.001640 | \n
\n \n 21 | \n LV | \n 60 | \n 0.000093 | \n
\n \n 22 | \n MA | \n 363 | \n 0.000565 | \n
\n \n 23 | \n NL | \n 7377 | \n 0.011480 | \n
\n \n 24 | \n PL | \n 1854 | \n 0.002885 | \n
\n \n 25 | \n PT | \n 385 | \n 0.000599 | \n
\n \n 26 | \n RO | \n 235 | \n 0.000366 | \n
\n \n 27 | \n SE | \n 6207 | \n 0.009660 | \n
\n \n 28 | \n SI | \n 430 | \n 0.000669 | \n
\n \n 29 | \n SK | \n 213 | \n 0.000331 | \n
\n \n
\n
"
},
"execution_count": 126,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"data"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"# percent of publications related to\n",
"# -authority country\n",
"# -inventor country\n",
"# -applicant country"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"# top 25\n",
"# - inventor\n",
"# - applicant\n",
"# in china, EU, EUextended"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 111,
"outputs": [
{
"data": {
"text/plain": " person_id psn_sector han_id \n269495 48715290 COMPANY 148715290 \\\n225401 45096499 GOV NON-PROFIT 986555 \n426484 58455492 NaN 158455492 \n50805 15325724 INDIVIDUAL 115325724 \n112503 28064269 NaN 128064269 \n... ... ... ... \n464708 59491689 NaN 159491689 \n169950 42286280 INDIVIDUAL 4099527 \n485679 60214508 NaN 160214508 \n542210 62188978 NaN 162188978 \n752136 81407527 NaN 181407527 \n\n han_name \n269495 TECHFLOW MARINE LIMITED \n225401 FUNDACIO INSTITUT CATALA D INVESTIGACIO QUIMIC... \n426484 DING ZHIJIAO \n50805 FOURNIER, THIERRY \n112503 ADRIAN WALLER \n... ... \n464708 LIU YANZHI \n169950 RIEMANN STEFAN \n485679 WAN BO \n542210 CHU WEI \n752136 GARCIA MONSONIS, Javier \n\n[100 rows x 4 columns]",
"text/html": "\n\n
\n \n \n | \n person_id | \n psn_sector | \n han_id | \n han_name | \n
\n \n \n \n 269495 | \n 48715290 | \n COMPANY | \n 148715290 | \n TECHFLOW MARINE LIMITED | \n
\n \n 225401 | \n 45096499 | \n GOV NON-PROFIT | \n 986555 | \n FUNDACIO INSTITUT CATALA D INVESTIGACIO QUIMIC... | \n
\n \n 426484 | \n 58455492 | \n NaN | \n 158455492 | \n DING ZHIJIAO | \n
\n \n 50805 | \n 15325724 | \n INDIVIDUAL | \n 115325724 | \n FOURNIER, THIERRY | \n
\n \n 112503 | \n 28064269 | \n NaN | \n 128064269 | \n ADRIAN WALLER | \n
\n \n ... | \n ... | \n ... | \n ... | \n ... | \n
\n \n 464708 | \n 59491689 | \n NaN | \n 159491689 | \n LIU YANZHI | \n
\n \n 169950 | \n 42286280 | \n INDIVIDUAL | \n 4099527 | \n RIEMANN STEFAN | \n
\n \n 485679 | \n 60214508 | \n NaN | \n 160214508 | \n WAN BO | \n
\n \n 542210 | \n 62188978 | \n NaN | \n 162188978 | \n CHU WEI | \n
\n \n 752136 | \n 81407527 | \n NaN | \n 181407527 | \n GARCIA MONSONIS, Javier | \n
\n \n
\n
100 rows × 4 columns
\n
"
},
"execution_count": 111,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln_pers_haninfo = pd.read_csv(f\"{outdir}/tls_206_scope.csv\", usecols=[\"person_id\",\"han_id\",\"han_name\",\"psn_sector\"])\n",
"appln_pers_haninfo.sample(100)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 95,
"outputs": [
{
"data": {
"text/plain": " appln_id appln_auth appln_kind filing_year nb_applicants \n209158 404772731 CN A 2012 1 \\\n924078 507793803 CN A 2018 1 \n399887 425594860 FR A 2014 1 \n521812 443742521 CN A 2015 1 \n1279727 524830291 CN A 2019 1 \n... ... ... ... ... ... \n967174 496304374 GB A 2018 1 \n602289 492364744 SE A 2016 1 \n229323 410162871 FR A 2013 1 \n1051611 507623754 FR A 2018 1 \n1050112 500224940 CN A 2018 1 \n\n nb_inventors ipc_class_symbol ipc_class_level cpc_id \n209158 7 C07C 41/16 A C07C41/16 \\\n924078 12 B29C 35/02 A B29C35/02 \n399887 2 A61P 7/04 A A61P7/04 \n521812 1 H04W 48/16 A H04W48/16 \n1279727 1 H01L 51/56 A H01L51/56 \n... ... ... ... ... \n967174 2 A61F 13/53 A A61F13/53 \n602289 3 C08L 5/08 A C08L5/08 \n229323 5 H05K 13/04 A H05K13/04 \n1051611 4 F02C 7/32 A F02C7/32 \n1050112 1 A61P 31/00 A A61P31/00 \n\n ipc_class ipc_classname \n209158 C-Chemistry; metallurgy Chemistry; metallurgy \n924078 B-Operations; transporting Operations; transporting \n399887 A-Human necessities Human necessities \n521812 H-Electricity Electricity \n1279727 H-Electricity Electricity \n... ... ... \n967174 A-Human necessities Human necessities \n602289 C-Chemistry; metallurgy Chemistry; metallurgy \n229323 H-Electricity Electricity \n1051611 F-Engineering Engineering \n1050112 A-Human necessities Human necessities \n\n[100 rows x 11 columns]",
"text/html": "\n\n
\n \n \n | \n appln_id | \n appln_auth | \n appln_kind | \n filing_year | \n nb_applicants | \n nb_inventors | \n ipc_class_symbol | \n ipc_class_level | \n cpc_id | \n ipc_class | \n ipc_classname | \n
\n \n \n \n 209158 | \n 404772731 | \n CN | \n A | \n 2012 | \n 1 | \n 7 | \n C07C 41/16 | \n A | \n C07C41/16 | \n C-Chemistry; metallurgy | \n Chemistry; metallurgy | \n
\n \n 924078 | \n 507793803 | \n CN | \n A | \n 2018 | \n 1 | \n 12 | \n B29C 35/02 | \n A | \n B29C35/02 | \n B-Operations; transporting | \n Operations; transporting | \n
\n \n 399887 | \n 425594860 | \n FR | \n A | \n 2014 | \n 1 | \n 2 | \n A61P 7/04 | \n A | \n A61P7/04 | \n A-Human necessities | \n Human necessities | \n
\n \n 521812 | \n 443742521 | \n CN | \n A | \n 2015 | \n 1 | \n 1 | \n H04W 48/16 | \n A | \n H04W48/16 | \n H-Electricity | \n Electricity | \n
\n \n 1279727 | \n 524830291 | \n CN | \n A | \n 2019 | \n 1 | \n 1 | \n H01L 51/56 | \n A | \n H01L51/56 | \n H-Electricity | \n Electricity | \n
\n \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n
\n \n 967174 | \n 496304374 | \n GB | \n A | \n 2018 | \n 1 | \n 2 | \n A61F 13/53 | \n A | \n A61F13/53 | \n A-Human necessities | \n Human necessities | \n
\n \n 602289 | \n 492364744 | \n SE | \n A | \n 2016 | \n 1 | \n 3 | \n C08L 5/08 | \n A | \n C08L5/08 | \n C-Chemistry; metallurgy | \n Chemistry; metallurgy | \n
\n \n 229323 | \n 410162871 | \n FR | \n A | \n 2013 | \n 1 | \n 5 | \n H05K 13/04 | \n A | \n H05K13/04 | \n H-Electricity | \n Electricity | \n
\n \n 1051611 | \n 507623754 | \n FR | \n A | \n 2018 | \n 1 | \n 4 | \n F02C 7/32 | \n A | \n F02C7/32 | \n F-Engineering | \n Engineering | \n
\n \n 1050112 | \n 500224940 | \n CN | \n A | \n 2018 | \n 1 | \n 1 | \n A61P 31/00 | \n A | \n A61P31/00 | \n A-Human necessities | \n Human necessities | \n
\n \n
\n
100 rows × 11 columns
\n
"
},
"execution_count": 95,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln_ipc_f = pd.read_csv(f\"{outdir}/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[\"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\"]\n",
"appln_ipc_f.sample(100)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 96,
"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": 97,
"outputs": [
{
"data": {
"text/plain": " filing_year ipc_class appln_id filing_year_relative_growth \n0 2011 A-Human necessities 6063.0 2011 \\\n1 2012 A-Human necessities 5804.0 2011 \n2 2013 A-Human necessities 6301.0 2011 \n3 2014 A-Human necessities 6415.0 2011 \n4 2015 A-Human necessities 7455.0 2011 \n.. ... ... ... ... \n91 2018 H-Electricity 19820.0 2011 \n92 2019 H-Electricity 21883.0 2011 \n93 2020 H-Electricity 23436.0 2011 \n94 2021 H-Electricity 13101.0 2011 \n95 2022 H-Electricity 10.0 2011 \n\n appln_id_relative_growth appln_id_cumsum \n0 0.000000 6063.0 \n1 -0.042718 11867.0 \n2 0.039254 18168.0 \n3 0.058057 24583.0 \n4 0.229589 32038.0 \n.. ... ... \n91 0.607070 121682.0 \n92 0.774345 143565.0 \n93 0.900268 167001.0 \n94 0.062272 180102.0 \n95 -0.999189 180112.0 \n\n[96 rows x 6 columns]",
"text/html": "\n\n
\n \n \n | \n filing_year | \n ipc_class | \n appln_id | \n filing_year_relative_growth | \n appln_id_relative_growth | \n appln_id_cumsum | \n
\n \n \n \n 0 | \n 2011 | \n A-Human necessities | \n 6063.0 | \n 2011 | \n 0.000000 | \n 6063.0 | \n
\n \n 1 | \n 2012 | \n A-Human necessities | \n 5804.0 | \n 2011 | \n -0.042718 | \n 11867.0 | \n
\n \n 2 | \n 2013 | \n A-Human necessities | \n 6301.0 | \n 2011 | \n 0.039254 | \n 18168.0 | \n
\n \n 3 | \n 2014 | \n A-Human necessities | \n 6415.0 | \n 2011 | \n 0.058057 | \n 24583.0 | \n
\n \n 4 | \n 2015 | \n A-Human necessities | \n 7455.0 | \n 2011 | \n 0.229589 | \n 32038.0 | \n
\n \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n
\n \n 91 | \n 2018 | \n H-Electricity | \n 19820.0 | \n 2011 | \n 0.607070 | \n 121682.0 | \n
\n \n 92 | \n 2019 | \n H-Electricity | \n 21883.0 | \n 2011 | \n 0.774345 | \n 143565.0 | \n
\n \n 93 | \n 2020 | \n H-Electricity | \n 23436.0 | \n 2011 | \n 0.900268 | \n 167001.0 | \n
\n \n 94 | \n 2021 | \n H-Electricity | \n 13101.0 | \n 2011 | \n 0.062272 | \n 180102.0 | \n
\n \n 95 | \n 2022 | \n H-Electricity | \n 10.0 | \n 2011 | \n -0.999189 | \n 180112.0 | \n
\n \n
\n
96 rows × 6 columns
\n
"
},
"execution_count": 97,
"metadata": {},
"output_type": "execute_result"
}
],
"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",
"data"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 98,
"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
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": 104,
"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": [
89497
],
"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": [
135217
],
"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": [
67549
],
"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": [
10113
],
"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": [
22377
],
"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": [
79587
],
"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": [
173875
],
"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": [
180112
],
"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": true,
"stackgroup": "1",
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x2",
"y": [
6063.0,
11867.0,
18168.0,
24583.0,
32038.0,
40655.0,
49707.0,
59381.0,
70112.0,
82632.0,
89489.0,
89497.0
],
"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": true,
"stackgroup": "1",
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x2",
"y": [
9701.0,
19336.0,
29659.0,
40258.0,
51884.0,
65032.0,
79813.0,
94384.0,
110267.0,
126130.0,
135208.0,
135217.0
],
"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": true,
"stackgroup": "1",
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x2",
"y": [
5191.0,
10324.0,
15572.0,
20769.0,
26352.0,
32549.0,
39394.0,
46367.0,
54295.0,
62755.0,
67534.0,
67549.0
],
"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": true,
"stackgroup": "1",
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x2",
"y": [
722.0,
1433.0,
2135.0,
2935.0,
3809.0,
4883.0,
6036.0,
7173.0,
8295.0,
9427.0,
10113.0,
10113.0
],
"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": true,
"stackgroup": "1",
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x2",
"y": [
1778.0,
3511.0,
5299.0,
7056.0,
8874.0,
11120.0,
13401.0,
15820.0,
18371.0,
20908.0,
22371.0,
22377.0
],
"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": true,
"stackgroup": "1",
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x2",
"y": [
6773.0,
13777.0,
20601.0,
27508.0,
34627.0,
42407.0,
50441.0,
58672.0,
66665.0,
74603.0,
79586.0,
79587.0
],
"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": true,
"stackgroup": "1",
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x2",
"y": [
8043.0,
17580.0,
28796.0,
40515.0,
55110.0,
71043.0,
90391.0,
111772.0,
134884.0,
160331.0,
173864.0,
173875.0
],
"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": true,
"stackgroup": "1",
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x2",
"y": [
12333.0,
24463.0,
36955.0,
50401.0,
66145.0,
82925.0,
101862.0,
121682.0,
143565.0,
167001.0,
180102.0,
180112.0
],
"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,
2022
],
"xaxis": "x3",
"y": [
6063.0,
5804.0,
6301.0,
6415.0,
7455.0,
8617.0,
9052.0,
9674.0,
10731.0,
12520.0,
6857.0,
8.0
],
"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,
2022
],
"xaxis": "x3",
"y": [
9701.0,
9635.0,
10323.0,
10599.0,
11626.0,
13148.0,
14781.0,
14571.0,
15883.0,
15863.0,
9078.0,
9.0
],
"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,
2022
],
"xaxis": "x3",
"y": [
5191.0,
5133.0,
5248.0,
5197.0,
5583.0,
6197.0,
6845.0,
6973.0,
7928.0,
8460.0,
4779.0,
15.0
],
"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,
2022
],
"xaxis": "x3",
"y": [
722.0,
711.0,
702.0,
800.0,
874.0,
1074.0,
1153.0,
1137.0,
1122.0,
1132.0,
686.0,
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,
2022
],
"xaxis": "x3",
"y": [
1778.0,
1733.0,
1788.0,
1757.0,
1818.0,
2246.0,
2281.0,
2419.0,
2551.0,
2537.0,
1463.0,
6.0
],
"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,
2022
],
"xaxis": "x3",
"y": [
6773.0,
7004.0,
6824.0,
6907.0,
7119.0,
7780.0,
8034.0,
8231.0,
7993.0,
7938.0,
4983.0,
1.0
],
"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,
2022
],
"xaxis": "x3",
"y": [
8043.0,
9537.0,
11216.0,
11719.0,
14595.0,
15933.0,
19348.0,
21381.0,
23112.0,
25447.0,
13533.0,
11.0
],
"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,
2022
],
"xaxis": "x3",
"y": [
12333.0,
12130.0,
12492.0,
13446.0,
15744.0,
16780.0,
18937.0,
19820.0,
21883.0,
23436.0,
13101.0,
10.0
],
"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,
2022
],
"xaxis": "x4",
"y": [
0.0,
-0.04271812634009566,
0.0392544944746825,
0.05805706745835395,
0.22958931222167245,
0.42124360877453404,
0.4929902688438067,
0.5955797460003299,
0.7699158832261257,
1.0649843311891802,
0.13095827148276432,
-0.9986805211941283
],
"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,
2022
],
"xaxis": "x4",
"y": [
0.0,
-0.006803422327595093,
0.06411710132975981,
0.09256777651788475,
0.19843315122152355,
0.35532419338212556,
0.5236573549118647,
0.5020101020513349,
0.6372538913514071,
0.6351922482218328,
-0.06422018348623854,
-0.9990722605916916
],
"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,
2022
],
"xaxis": "x4",
"y": [
0.0,
-0.0111731843575419,
0.010980543247929108,
0.0011558466576767482,
0.07551531496821422,
0.1937969562704681,
0.31862839529955694,
0.34328645732999424,
0.52725871701021,
0.629743787324215,
-0.07936813716047005,
-0.9971103833558081
],
"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,
2022
],
"xaxis": "x4",
"y": [
0.0,
-0.015235457063711912,
-0.027700831024930747,
0.10803324099722991,
0.21052631578947367,
0.48753462603878117,
0.5969529085872576,
0.574792243767313,
0.554016620498615,
0.5678670360110804,
-0.04986149584487535,
-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,
2022
],
"xaxis": "x4",
"y": [
0.0,
-0.02530933633295838,
0.00562429696287964,
-0.011811023622047244,
0.02249718785151856,
0.26321709786276715,
0.2829021372328459,
0.36051743532058494,
0.4347581552305962,
0.4268841394825647,
-0.17716535433070865,
-0.9966254218222722
],
"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,
2022
],
"xaxis": "x4",
"y": [
0.0,
0.034106009153993797,
0.0075298981249077215,
0.019784438210541856,
0.051085191200354346,
0.14867857670160933,
0.18618042226487524,
0.21526649933559722,
0.1801269747526945,
0.172006496382696,
-0.26428465967813375,
-0.9998523549387273
],
"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,
2022
],
"xaxis": "x4",
"y": [
0.0,
0.18575158522939203,
0.3945045381076713,
0.45704339176924036,
0.814621409921671,
0.9809772472957852,
1.4055700609225414,
1.658336441626259,
1.8735546437896307,
2.163869203033694,
0.6825811264453562,
-0.9986323511127688
],
"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,
2022
],
"xaxis": "x4",
"y": [
0.0,
-0.016459904321738425,
0.012892240330819751,
0.09024568231573826,
0.27657504256871807,
0.36057731290034867,
0.5354739317278845,
0.6070704613638206,
0.7743452525743939,
0.9002675747993188,
0.06227195329603503,
-0.9991891672747912
],
"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,
210000
]
},
"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": 12
}
},
"config": {
"displayModeBar": false,
"responsive": true,
"plotlyServerURL": "https://plotly.com"
}
},
"text/html": ""
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"from plotly.subplots import make_subplots\n",
"import plotly.graph_objects as go\n",
"\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",
" 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,210000]\n",
"for i in range(2,5):\n",
" figsuper['layout'][f'xaxis{i}'][\"range\"] = [2010.8,2022.2]\n",
"figsuper['layout'][\"font\"][\"size\"]=12\n",
"for a in figsuper['layout'][\"annotations\"]:\n",
" a[\"font\"][\"size\"] = 14\n",
"figsuper.show(config= dict(displayModeBar = False, responsive = True))"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 37,
"outputs": [
{
"data": {
"text/plain": "1964"
},
"execution_count": 37,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln_ipc_f[\"filing_year\"].min()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 34,
"outputs": [
{
"data": {
"text/plain": "615464"
},
"execution_count": 34,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln_ipc_f[\"appln_id\"].nunique()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 35,
"outputs": [
{
"data": {
"text/plain": "591442"
},
"execution_count": 35,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln_ipc_f.merge(cpc_def, on=\"cpc_id\")[\"appln_id\"].nunique()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 29,
"outputs": [
{
"data": {
"text/plain": "array(['A', 'S', 'C'], dtype=object)"
},
"execution_count": 29,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln_ipc_f[\"ipc_class_level\"].unique()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 133,
"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 == '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()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 134,
"outputs": [
{
"data": {
"text/plain": "array(['AT', 'BE', 'BG', 'CH', 'CY', 'CZ', 'DE', 'DK', 'EE', 'ES', 'FI',\n 'FR', 'GR', 'HR', 'HU', 'IE', 'IT', 'LT', 'LU', 'LV', 'MT', 'NL',\n 'NO', 'PL', 'PT', 'RO', 'SE', 'SI', 'SK'], dtype=object)"
},
"execution_count": 134,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"scope_countries"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 25,
"outputs": [
{
"data": {
"text/plain": " person_id appln_id applt_seq_nr invt_seq_nr\n0 1 413601768 1 0\n1 21 332015605 1 0\n2 21 333490084 1 0\n3 21 335903805 1 0\n4 76 352908776 1 0\n.. ... ... ... ...\n95 220 417147567 1 0\n96 220 417932952 1 0\n97 220 420712526 1 0\n98 220 420927947 1 0\n99 220 420947631 1 0\n\n[100 rows x 4 columns]",
"text/html": "\n\n
\n \n \n | \n person_id | \n appln_id | \n applt_seq_nr | \n invt_seq_nr | \n
\n \n \n \n 0 | \n 1 | \n 413601768 | \n 1 | \n 0 | \n
\n \n 1 | \n 21 | \n 332015605 | \n 1 | \n 0 | \n
\n \n 2 | \n 21 | \n 333490084 | \n 1 | \n 0 | \n
\n \n 3 | \n 21 | \n 335903805 | \n 1 | \n 0 | \n
\n \n 4 | \n 76 | \n 352908776 | \n 1 | \n 0 | \n
\n \n ... | \n ... | \n ... | \n ... | \n ... | \n
\n \n 95 | \n 220 | \n 417147567 | \n 1 | \n 0 | \n
\n \n 96 | \n 220 | \n 417932952 | \n 1 | \n 0 | \n
\n \n 97 | \n 220 | \n 420712526 | \n 1 | \n 0 | \n
\n \n 98 | \n 220 | \n 420927947 | \n 1 | \n 0 | \n
\n \n 99 | \n 220 | \n 420947631 | \n 1 | \n 0 | \n
\n \n
\n
100 rows × 4 columns
\n
"
},
"execution_count": 25,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln_pers.head(100)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 26,
"outputs": [
{
"ename": "KeyError",
"evalue": "'person_ctry_code'",
"output_type": "error",
"traceback": [
"\u001B[1;31m---------------------------------------------------------------------------\u001B[0m",
"\u001B[1;31mKeyError\u001B[0m Traceback (most recent call last)",
"File \u001B[1;32m~\\.conda\\envs\\MOME_BIGDATA\\lib\\site-packages\\pandas\\core\\indexes\\base.py:3649\u001B[0m, in \u001B[0;36mIndex.get_loc\u001B[1;34m(self, key)\u001B[0m\n\u001B[0;32m 3648\u001B[0m \u001B[38;5;28;01mtry\u001B[39;00m:\n\u001B[1;32m-> 3649\u001B[0m \u001B[38;5;28;01mreturn\u001B[39;00m \u001B[38;5;28;43mself\u001B[39;49m\u001B[38;5;241;43m.\u001B[39;49m\u001B[43m_engine\u001B[49m\u001B[38;5;241;43m.\u001B[39;49m\u001B[43mget_loc\u001B[49m\u001B[43m(\u001B[49m\u001B[43mcasted_key\u001B[49m\u001B[43m)\u001B[49m\n\u001B[0;32m 3650\u001B[0m \u001B[38;5;28;01mexcept\u001B[39;00m \u001B[38;5;167;01mKeyError\u001B[39;00m \u001B[38;5;28;01mas\u001B[39;00m err:\n",
"File \u001B[1;32m~\\.conda\\envs\\MOME_BIGDATA\\lib\\site-packages\\pandas\\_libs\\index.pyx:147\u001B[0m, in \u001B[0;36mpandas._libs.index.IndexEngine.get_loc\u001B[1;34m()\u001B[0m\n",
"File \u001B[1;32m~\\.conda\\envs\\MOME_BIGDATA\\lib\\site-packages\\pandas\\_libs\\index.pyx:176\u001B[0m, in \u001B[0;36mpandas._libs.index.IndexEngine.get_loc\u001B[1;34m()\u001B[0m\n",
"File \u001B[1;32mpandas\\_libs\\hashtable_class_helper.pxi:7080\u001B[0m, in \u001B[0;36mpandas._libs.hashtable.PyObjectHashTable.get_item\u001B[1;34m()\u001B[0m\n",
"File \u001B[1;32mpandas\\_libs\\hashtable_class_helper.pxi:7088\u001B[0m, in \u001B[0;36mpandas._libs.hashtable.PyObjectHashTable.get_item\u001B[1;34m()\u001B[0m\n",
"\u001B[1;31mKeyError\u001B[0m: 'person_ctry_code'",
"\nThe above exception was the direct cause of the following exception:\n",
"\u001B[1;31mKeyError\u001B[0m Traceback (most recent call last)",
"Cell \u001B[1;32mIn[26], line 1\u001B[0m\n\u001B[1;32m----> 1\u001B[0m appln_ch \u001B[38;5;241m=\u001B[39m \u001B[43mappln_pers\u001B[49m\u001B[38;5;241;43m.\u001B[39;49m\u001B[43mgroupby\u001B[49m\u001B[43m(\u001B[49m\u001B[38;5;124;43m\"\u001B[39;49m\u001B[38;5;124;43mappln_id\u001B[39;49m\u001B[38;5;124;43m\"\u001B[39;49m\u001B[43m)\u001B[49m\u001B[38;5;241;43m.\u001B[39;49m\u001B[43mfilter\u001B[49m\u001B[43m(\u001B[49m\u001B[38;5;28;43;01mlambda\u001B[39;49;00m\u001B[43m \u001B[49m\u001B[43mgr\u001B[49m\u001B[43m:\u001B[49m\u001B[43m \u001B[49m\u001B[43m(\u001B[49m\u001B[43m(\u001B[49m\u001B[43mgr\u001B[49m\u001B[43m[\u001B[49m\u001B[38;5;124;43m\"\u001B[39;49m\u001B[38;5;124;43mperson_ctry_code\u001B[39;49m\u001B[38;5;124;43m\"\u001B[39;49m\u001B[43m]\u001B[49m\u001B[38;5;241;43m==\u001B[39;49m\u001B[38;5;124;43m\"\u001B[39;49m\u001B[38;5;124;43mCN\u001B[39;49m\u001B[38;5;124;43m\"\u001B[39;49m\u001B[43m)\u001B[49m\u001B[38;5;241;43m.\u001B[39;49m\u001B[43many\u001B[49m\u001B[43m(\u001B[49m\u001B[43m)\u001B[49m\u001B[38;5;241;43m|\u001B[39;49m\n\u001B[0;32m 2\u001B[0m \u001B[43m \u001B[49m\u001B[43m(\u001B[49m\u001B[43mgr\u001B[49m\u001B[43m[\u001B[49m\u001B[38;5;124;43m\"\u001B[39;49m\u001B[38;5;124;43mappln_auth\u001B[39;49m\u001B[38;5;124;43m\"\u001B[39;49m\u001B[43m]\u001B[49m\u001B[38;5;241;43m==\u001B[39;49m\u001B[38;5;124;43m\"\u001B[39;49m\u001B[38;5;124;43mCN\u001B[39;49m\u001B[38;5;124;43m\"\u001B[39;49m\u001B[43m)\u001B[49m\u001B[43m)\u001B[49m\u001B[38;5;241;43m.\u001B[39;49m\u001B[43many\u001B[49m\u001B[43m(\u001B[49m\u001B[43m)\u001B[49m\u001B[43m)\u001B[49m\n\u001B[0;32m 3\u001B[0m appln_scope \u001B[38;5;241m=\u001B[39m appln_ch\u001B[38;5;241m.\u001B[39mgroupby(\u001B[38;5;124m\"\u001B[39m\u001B[38;5;124mappln_id\u001B[39m\u001B[38;5;124m\"\u001B[39m)\u001B[38;5;241m.\u001B[39mfilter(\u001B[38;5;28;01mlambda\u001B[39;00m gr: ((gr[\u001B[38;5;124m\"\u001B[39m\u001B[38;5;124mperson_ctry_code\u001B[39m\u001B[38;5;124m\"\u001B[39m]\u001B[38;5;241m.\u001B[39misin(eu_countries))\u001B[38;5;241m.\u001B[39many()\u001B[38;5;241m|\u001B[39m\n\u001B[0;32m 4\u001B[0m (gr[\u001B[38;5;124m\"\u001B[39m\u001B[38;5;124mappln_auth\u001B[39m\u001B[38;5;124m\"\u001B[39m]\u001B[38;5;241m.\u001B[39misin(eu_countries)))\u001B[38;5;241m.\u001B[39many())\n\u001B[0;32m 5\u001B[0m appln_scope[\u001B[38;5;124m\"\u001B[39m\u001B[38;5;124mappln_id\u001B[39m\u001B[38;5;124m\"\u001B[39m]\u001B[38;5;241m.\u001B[39mnunique()\n",
"File \u001B[1;32m~\\.conda\\envs\\MOME_BIGDATA\\lib\\site-packages\\pandas\\core\\groupby\\generic.py:1741\u001B[0m, in \u001B[0;36mDataFrameGroupBy.filter\u001B[1;34m(self, func, dropna, *args, **kwargs)\u001B[0m\n\u001B[0;32m 1738\u001B[0m \u001B[38;5;28;01mfor\u001B[39;00m name, group \u001B[38;5;129;01min\u001B[39;00m gen:\n\u001B[0;32m 1739\u001B[0m \u001B[38;5;28mobject\u001B[39m\u001B[38;5;241m.\u001B[39m\u001B[38;5;21m__setattr__\u001B[39m(group, \u001B[38;5;124m\"\u001B[39m\u001B[38;5;124mname\u001B[39m\u001B[38;5;124m\"\u001B[39m, name)\n\u001B[1;32m-> 1741\u001B[0m res \u001B[38;5;241m=\u001B[39m func(group, \u001B[38;5;241m*\u001B[39margs, \u001B[38;5;241m*\u001B[39m\u001B[38;5;241m*\u001B[39mkwargs)\n\u001B[0;32m 1743\u001B[0m \u001B[38;5;28;01mtry\u001B[39;00m:\n\u001B[0;32m 1744\u001B[0m res \u001B[38;5;241m=\u001B[39m res\u001B[38;5;241m.\u001B[39msqueeze()\n",
"Cell \u001B[1;32mIn[26], line 1\u001B[0m, in \u001B[0;36m\u001B[1;34m(gr)\u001B[0m\n\u001B[1;32m----> 1\u001B[0m appln_ch \u001B[38;5;241m=\u001B[39m appln_pers\u001B[38;5;241m.\u001B[39mgroupby(\u001B[38;5;124m\"\u001B[39m\u001B[38;5;124mappln_id\u001B[39m\u001B[38;5;124m\"\u001B[39m)\u001B[38;5;241m.\u001B[39mfilter(\u001B[38;5;28;01mlambda\u001B[39;00m gr: ((\u001B[43mgr\u001B[49m\u001B[43m[\u001B[49m\u001B[38;5;124;43m\"\u001B[39;49m\u001B[38;5;124;43mperson_ctry_code\u001B[39;49m\u001B[38;5;124;43m\"\u001B[39;49m\u001B[43m]\u001B[49m\u001B[38;5;241m==\u001B[39m\u001B[38;5;124m\"\u001B[39m\u001B[38;5;124mCN\u001B[39m\u001B[38;5;124m\"\u001B[39m)\u001B[38;5;241m.\u001B[39many()\u001B[38;5;241m|\u001B[39m\n\u001B[0;32m 2\u001B[0m (gr[\u001B[38;5;124m\"\u001B[39m\u001B[38;5;124mappln_auth\u001B[39m\u001B[38;5;124m\"\u001B[39m]\u001B[38;5;241m==\u001B[39m\u001B[38;5;124m\"\u001B[39m\u001B[38;5;124mCN\u001B[39m\u001B[38;5;124m\"\u001B[39m))\u001B[38;5;241m.\u001B[39many())\n\u001B[0;32m 3\u001B[0m appln_scope \u001B[38;5;241m=\u001B[39m appln_ch\u001B[38;5;241m.\u001B[39mgroupby(\u001B[38;5;124m\"\u001B[39m\u001B[38;5;124mappln_id\u001B[39m\u001B[38;5;124m\"\u001B[39m)\u001B[38;5;241m.\u001B[39mfilter(\u001B[38;5;28;01mlambda\u001B[39;00m gr: ((gr[\u001B[38;5;124m\"\u001B[39m\u001B[38;5;124mperson_ctry_code\u001B[39m\u001B[38;5;124m\"\u001B[39m]\u001B[38;5;241m.\u001B[39misin(eu_countries))\u001B[38;5;241m.\u001B[39many()\u001B[38;5;241m|\u001B[39m\n\u001B[0;32m 4\u001B[0m (gr[\u001B[38;5;124m\"\u001B[39m\u001B[38;5;124mappln_auth\u001B[39m\u001B[38;5;124m\"\u001B[39m]\u001B[38;5;241m.\u001B[39misin(eu_countries)))\u001B[38;5;241m.\u001B[39many())\n\u001B[0;32m 5\u001B[0m appln_scope[\u001B[38;5;124m\"\u001B[39m\u001B[38;5;124mappln_id\u001B[39m\u001B[38;5;124m\"\u001B[39m]\u001B[38;5;241m.\u001B[39mnunique()\n",
"File \u001B[1;32m~\\.conda\\envs\\MOME_BIGDATA\\lib\\site-packages\\pandas\\core\\frame.py:3745\u001B[0m, in \u001B[0;36mDataFrame.__getitem__\u001B[1;34m(self, key)\u001B[0m\n\u001B[0;32m 3743\u001B[0m \u001B[38;5;28;01mif\u001B[39;00m \u001B[38;5;28mself\u001B[39m\u001B[38;5;241m.\u001B[39mcolumns\u001B[38;5;241m.\u001B[39mnlevels \u001B[38;5;241m>\u001B[39m \u001B[38;5;241m1\u001B[39m:\n\u001B[0;32m 3744\u001B[0m \u001B[38;5;28;01mreturn\u001B[39;00m \u001B[38;5;28mself\u001B[39m\u001B[38;5;241m.\u001B[39m_getitem_multilevel(key)\n\u001B[1;32m-> 3745\u001B[0m indexer \u001B[38;5;241m=\u001B[39m \u001B[38;5;28;43mself\u001B[39;49m\u001B[38;5;241;43m.\u001B[39;49m\u001B[43mcolumns\u001B[49m\u001B[38;5;241;43m.\u001B[39;49m\u001B[43mget_loc\u001B[49m\u001B[43m(\u001B[49m\u001B[43mkey\u001B[49m\u001B[43m)\u001B[49m\n\u001B[0;32m 3746\u001B[0m \u001B[38;5;28;01mif\u001B[39;00m is_integer(indexer):\n\u001B[0;32m 3747\u001B[0m indexer \u001B[38;5;241m=\u001B[39m [indexer]\n",
"File \u001B[1;32m~\\.conda\\envs\\MOME_BIGDATA\\lib\\site-packages\\pandas\\core\\indexes\\base.py:3651\u001B[0m, in \u001B[0;36mIndex.get_loc\u001B[1;34m(self, key)\u001B[0m\n\u001B[0;32m 3649\u001B[0m \u001B[38;5;28;01mreturn\u001B[39;00m \u001B[38;5;28mself\u001B[39m\u001B[38;5;241m.\u001B[39m_engine\u001B[38;5;241m.\u001B[39mget_loc(casted_key)\n\u001B[0;32m 3650\u001B[0m \u001B[38;5;28;01mexcept\u001B[39;00m \u001B[38;5;167;01mKeyError\u001B[39;00m \u001B[38;5;28;01mas\u001B[39;00m err:\n\u001B[1;32m-> 3651\u001B[0m \u001B[38;5;28;01mraise\u001B[39;00m \u001B[38;5;167;01mKeyError\u001B[39;00m(key) \u001B[38;5;28;01mfrom\u001B[39;00m \u001B[38;5;21;01merr\u001B[39;00m\n\u001B[0;32m 3652\u001B[0m \u001B[38;5;28;01mexcept\u001B[39;00m \u001B[38;5;167;01mTypeError\u001B[39;00m:\n\u001B[0;32m 3653\u001B[0m \u001B[38;5;66;03m# If we have a listlike key, _check_indexing_error will raise\u001B[39;00m\n\u001B[0;32m 3654\u001B[0m \u001B[38;5;66;03m# InvalidIndexError. Otherwise we fall through and re-raise\u001B[39;00m\n\u001B[0;32m 3655\u001B[0m \u001B[38;5;66;03m# the TypeError.\u001B[39;00m\n\u001B[0;32m 3656\u001B[0m \u001B[38;5;28mself\u001B[39m\u001B[38;5;241m.\u001B[39m_check_indexing_error(key)\n",
"\u001B[1;31mKeyError\u001B[0m: 'person_ctry_code'"
]
}
],
"source": [
"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(eu_countries)).any()|\n",
" (gr[\"appln_auth\"].isin(eu_countries))).any())\n",
"appln_scope[\"appln_id\"].nunique()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"appln_scope"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"appln_scope[appln_scope[\"appln_id\"].isin(appln[\"appln_id\"])]"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"appln_scope[~appln_scope[\"appln_id\"].isin(appln[\"appln_id\"])]"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"appln_cpc[\"cpc_id\"] = appln_cpc[\"cpc_class_symbol\"].str.replace(\" \",\"\")\n",
"\n",
"appln_cpc_merge = appln_cpc.merge(cpc_def,on='cpc_id')\n",
"print (f\"CPC Merge loss: {(1-len(appln_cpc_merge)/len(appln_cpc))*100}%\")"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"len(appln_cpc_merge[appln_cpc_merge[\"data_scope\"]==True])"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"appln_title.merge(appln_cpc_merge[appln_cpc_merge[\"data_scope\"]==True], on=\"appln_id\").merge(appln, on =\"appln_id\")[\"appln_nr\"].nunique()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"appln_title.merge(appln_cpc_merge[appln_cpc_merge[\"data_scope\"]==True], on=\"appln_id\").merge(appln, on =\"appln_id\")"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"appln_title.merge(appln_cpc_merge[appln_cpc_merge[\"data_scope\"]==True], on=\"appln_id\")[\"appln_id\"].nunique()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"cpc_def[cpc_def[\"data_scope\"]==True]"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"appln.sample(100)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"appln_title.sample(100)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"appln_data = appln.merge(appln_title, on=\"appln_id\")\n",
"appln_data.head()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"appln_data[\"appln_auth\"].unique()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"appln_pers"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"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",
"persn = pers.merge(pers_sector_primary, on='han_id')\n",
"persn"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"pers_sector_primary"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"appln_merge = appln.merge(appln_title, on=\"appln_id\")#.merge(appln_pers,on=\"appln_id\")\n",
"appln_merge.to_excel(\"appln_data.xlsx\", index=False)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"person_merge = appln_pers.merge(pers,on=\"person_id\")\n",
"person_merge.to_excel(\"person_data.xlsx\", index=False)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"pers[\"person_ctry_code\"].unique()"
],
"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
}