{ "cells": [ { "cell_type": "code", "execution_count": 33, "metadata": { "collapsed": true }, "outputs": [], "source": [ "import os\n", "import pandas as pd\n", "import janitor\n", "import matplotlib.pyplot as plt\n", "import seaborn as sns\n", "from matplotlib.ticker import MaxNLocator\n", "import math\n" ] }, { "cell_type": "code", "execution_count": 34, "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": 35, "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": 36, "outputs": [ { "data": { "text/plain": "65136" }, "execution_count": 36, "metadata": {}, "output_type": "execute_result" } ], "source": [ "len(appln)" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 37, "outputs": [ { "data": { "text/plain": "24638" }, "execution_count": 37, "metadata": {}, "output_type": "execute_result" } ], "source": [ "len(appln[appln[\"appln_nr\"]==appln[\"appln_nr_original\"]])" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 38, "outputs": [ { "data": { "text/plain": " appln_id appln_auth appln_nr appln_kind appln_filing_date \n8712 413791676 KR 20127034385 A 2011-06-03 \\\n15588 439148012 EP 15714777 A 2015-03-26 \n48628 536723783 RU 2019104609 A 2017-07-18 \n4458 380638095 US 201113218876 A 2011-08-26 \n43221 522842130 US 201829659634 F 2018-08-10 \n3836 378587773 WO 2011074635 W 2011-05-25 \n9237 414823192 EP 12882000 A 2012-08-03 \n6777 409424323 US 201113638187 A 2011-03-22 \n18826 446137103 WO 2015057861 W 2015-10-14 \n52265 545763074 BR 112020021641 A 2018-04-23 \n\n appln_filing_year appln_nr_original ipr_type receiving_office \n8712 2011 1020127034385 PI \\\n15588 2015 15714777 PI \n48628 2017 2019104609 PI \n4458 2011 13218876 PI \n43221 2018 NaN DP \n3836 2011 CN2011/074635 PI CN \n9237 2012 12882000 PI \n6777 2011 13638187 PI \n18826 2015 IB2015/057861 PI IB \n52265 2018 112020021641 PI \n\n internat_appln_id ... earliest_publn_date earliest_publn_year \n8712 339637678 ... 2013-11-04 2013 \\\n15588 438355565 ... 2017-02-15 2017 \n48628 488987246 ... 2020-08-20 2020 \n4458 0 ... 2013-01-31 2013 \n43221 0 ... 2019-12-03 2019 \n3836 0 ... 2012-11-29 2012 \n9237 414790439 ... 2015-06-10 2015 \n6777 333698631 ... 2013-08-08 2013 \n18826 0 ... 2016-04-21 2016 \n52265 521276805 ... 2021-01-26 2021 \n\n earliest_pat_publn_id granted docdb_family_id inpadoc_family_id \n8712 413791677 Y 45067306 339616929 \\\n15588 473888077 Y 52814965 438355565 \n48628 536723784 Y 60991950 488987246 \n4458 380922724 N 47598050 380638095 \n43221 522842131 Y 68653880 522842130 \n3836 378816884 N 47216526 378587773 \n9237 439934604 N 50027133 414790439 \n6777 409424324 Y 43020401 319321099 \n18826 451530410 N 52014243 446137103 \n52265 545763075 N 68293428 521276805 \n\n docdb_family_size nb_citing_docdb_fam nb_applicants nb_inventors \n8712 6 10 1 7 \n15588 5 1 1 2 \n48628 39 3 1 19 \n4458 2 3 8 7 \n43221 2 0 1 1 \n3836 3 4 3 2 \n9237 2 0 1 2 \n6777 6 4 6 5 \n18826 9 3 2 1 \n52265 6 0 3 5 \n\n[10 rows x 26 columns]", "text/html": "
\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 \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 \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 \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 \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 \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 \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 \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 \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 \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 \n \n \n \n \n \n \n \n \n \n \n
appln_idappln_authappln_nrappln_kindappln_filing_dateappln_filing_yearappln_nr_originalipr_typereceiving_officeinternat_appln_id...earliest_publn_dateearliest_publn_yearearliest_pat_publn_idgranteddocdb_family_idinpadoc_family_iddocdb_family_sizenb_citing_docdb_famnb_applicantsnb_inventors
8712413791676KR20127034385A2011-06-0320111020127034385PI339637678...2013-11-042013413791677Y4506730633961692961017
15588439148012EP15714777A2015-03-26201515714777PI438355565...2017-02-152017473888077Y528149654383555655112
48628536723783RU2019104609A2017-07-1820172019104609PI488987246...2020-08-202020536723784Y60991950488987246393119
4458380638095US201113218876A2011-08-26201113218876PI0...2013-01-312013380922724N475980503806380952387
43221522842130US201829659634F2018-08-102018NaNDP0...2019-12-032019522842131Y686538805228421302011
3836378587773WO2011074635W2011-05-252011CN2011/074635PICN0...2012-11-292012378816884N472165263785877733432
9237414823192EP12882000A2012-08-03201212882000PI414790439...2015-06-102015439934604N500271334147904392012
6777409424323US201113638187A2011-03-22201113638187PI333698631...2013-08-082013409424324Y430204013193210996465
18826446137103WO2015057861W2015-10-142015IB2015/057861PIIB0...2016-04-212016451530410N520142434461371039321
52265545763074BR112020021641A2018-04-232018112020021641PI521276805...2021-01-262021545763075N682934285212768056035
\n

10 rows × 26 columns

\n
" }, "execution_count": 38, "metadata": {}, "output_type": "execute_result" } ], "source": [ "appln.sample(10)" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 39, "outputs": [ { "data": { "text/plain": " appln_id appln_auth appln_nr appln_kind appln_filing_date \n56447 556331792 PE 2021000402 A 2019-09-26 \\\n41201 518451341 TW 107131654 A 2018-09-10 \n54094 550225934 TW 109119471 A 2017-07-06 \n9133 414556231 EP 12881920 A 2012-07-27 \n43037 522510076 EP 19306441 A 2019-11-07 \n... ... ... ... ... ... \n60095 569415925 TW 110116177 A 2021-05-05 \n61281 573442692 DE 102021213653 A 2021-12-02 \n41189 518448790 TW 108109981 A 2014-03-07 \n64973 587185640 CR 20220470 A 2021-03-18 \n8491 413374202 EP 13197783 A 2011-04-28 \n\n appln_filing_year appln_nr_original ipr_type receiving_office \n56447 2019 2021000402 PI \\\n41201 2018 107131654 PI \n54094 2017 109119471 PI \n9133 2012 12881920 PI \n43037 2019 19306441 PI \n... ... ... ... ... \n60095 2021 110116177 PI \n61281 2021 102021213653 PI \n41189 2014 108109981 PI \n64973 2021 20220470 PI \n8491 2011 13197783 PI \n\n internat_appln_id ... earliest_publn_date earliest_publn_year \n56447 520193774 ... 2021-07-19 2021 \\\n41201 0 ... 2019-06-16 2019 \n54094 0 ... 2021-02-01 2021 \n9133 414544093 ... 2015-06-03 2015 \n43037 0 ... 2021-05-12 2021 \n... ... ... ... ... \n60095 0 ... 2021-12-16 2021 \n61281 0 ... 2022-06-15 2022 \n41189 0 ... 2019-06-16 2019 \n64973 549449130 ... 2022-11-14 2022 \n8491 376727956 ... 2014-08-20 2014 \n\n earliest_pat_publn_id granted docdb_family_id inpadoc_family_id \n56447 556331793 N 68542579 520193774 \\\n41201 518451342 N 66100215 511344799 \n54094 550225935 N 59337896 481645536 \n9133 439682012 Y 49996511 414544093 \n43037 548841071 N 68655464 522510076 \n... ... ... ... ... \n60095 568265190 N 74845079 546468249 \n61281 573442693 N 81749879 573442692 \n41189 518448791 Y 51500341 421859342 \n64973 587185641 N 75660301 549449130 \n8491 420445397 N 45896256 352844875 \n\n docdb_family_size nb_citing_docdb_fam nb_applicants nb_inventors \n56447 10 0 1 3 \n41201 2 0 1 2 \n54094 8 3 1 7 \n9133 4 5 1 3 \n43037 3 0 1 2 \n... ... ... ... ... \n60095 4 0 1 8 \n61281 2 0 1 1 \n41189 22 290 1 3 \n64973 14 4 1 25 \n8491 10 0 1 6 \n\n[100 rows x 26 columns]", "text/html": "
\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 \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 \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 \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 \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 \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 \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 \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 \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 \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 \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 \n \n \n \n \n \n \n \n \n
appln_idappln_authappln_nrappln_kindappln_filing_dateappln_filing_yearappln_nr_originalipr_typereceiving_officeinternat_appln_id...earliest_publn_dateearliest_publn_yearearliest_pat_publn_idgranteddocdb_family_idinpadoc_family_iddocdb_family_sizenb_citing_docdb_famnb_applicantsnb_inventors
56447556331792PE2021000402A2019-09-2620192021000402PI520193774...2021-07-192021556331793N6854257952019377410013
41201518451341TW107131654A2018-09-102018107131654PI0...2019-06-162019518451342N661002155113447992012
54094550225934TW109119471A2017-07-062017109119471PI0...2021-02-012021550225935N593378964816455368317
9133414556231EP12881920A2012-07-27201212881920PI414544093...2015-06-032015439682012Y499965114145440934513
43037522510076EP19306441A2019-11-07201919306441PI0...2021-05-122021548841071N686554645225100763012
..................................................................
60095569415925TW110116177A2021-05-052021110116177PI0...2021-12-162021568265190N748450795464682494018
61281573442692DE102021213653A2021-12-022021102021213653PI0...2022-06-152022573442693N817498795734426922011
41189518448790TW108109981A2014-03-072014108109981PI0...2019-06-162019518448791Y515003414218593422229013
64973587185640CR20220470A2021-03-18202120220470PI549449130...2022-11-142022587185641N75660301549449130144125
8491413374202EP13197783A2011-04-28201113197783PI376727956...2014-08-202014420445397N4589625635284487510016
\n

100 rows × 26 columns

\n
" }, "execution_count": 39, "metadata": {}, "output_type": "execute_result" } ], "source": [ "appln[appln[\"appln_nr\"]==appln[\"appln_nr_original\"]].sample(100)" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 40, "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": 41, "outputs": [ { "data": { "text/plain": " person_id person_name person_name_orig_lg \n99304 72271503 SHE, HUIMIN SHE, HUIMIN \\\n4389 6211563 Zhou, Jian Zhou, Jian \n59373 52078604 KIRCHNER, NICOLE KIRCHNER, NICOLE \n19688 16957554 BLAWERT, CARSTEN BLAWERT, CARSTEN \n25828 25701586 KNIESEL, SIMON KNIESEL, SIMON \n73679 55544020 WHITING, Tien Yi Theresa Hsu WHITING, Tien Yi Theresa Hsu \n39905 45320991 Zhang, Michael Zhang, Michael \n65003 53390230 DONG, Hailong DONG, Hailong \n113369 79456511 LING, Jing LING, Jing \n58383 51832619 WEN JU ZHANG WEN JU ZHANG \n\n person_address person_ctry_code \n99304 Shanghai CN \\\n4389 Beijing CN \n59373 SACHSENSTRAßE 2845665 RECKLINGHAUSEN DE DE \n19688 NaN DE \n25828 NaN DE \n73679 NaN US \n39905 Beijing CN \n65003 Molenstraat 148,5701 KK Helmond NL \n113369 No. 6 North Of Binjiang Road, Taixing Economic... CN \n58383 CN CN \n\n nuts nuts_level doc_std_name_id doc_std_name \n99304 NaN 9 32084338 SHE HUIMIN \\\n4389 NaN 9 33759 ZHOU JIAN \n59373 DE 0 2139104 KIRCHNER NICOLE \n19688 DE 0 311260 BLAWERT CARSTEN \n25828 DE 0 255684 KNIESEL SIMON \n73679 NaN 9 21758228 WHITING TIEN YI THERESA HSU \n39905 NaN 9 725806 ZHANG MICHAEL \n65003 NL414 3 7196768 DONG HAILONG \n113369 NaN 9 429470 LING JING \n58383 NaN 9 23069059 ZHANG WEN JU \n\n psn_id psn_name psn_level psn_sector \n99304 29505777 SHE, HUIMIN 0 UNKNOWN \\\n4389 37354342 ZHOU JIAN 1 INDIVIDUAL \n59373 17194552 KIRCHNER, NICOLE 0 UNKNOWN \n19688 2923498 BLAWERT, CARSTEN 1 INDIVIDUAL \n25828 17406789 KNIESEL, SIMON 1 INDIVIDUAL \n73679 35065052 WHITING, TIEN YI THERESA HSU 0 UNKNOWN \n39905 37097378 ZHANG, MICHAEL 1 INDIVIDUAL \n65003 7077131 DONG, HAILONG 0 UNKNOWN \n113369 19626776 LING, JING 0 UNKNOWN \n58383 34908417 WEN JU ZHANG 0 UNKNOWN \n\n han_id han_name han_harmonized \n99304 172271503 SHE, HUIMIN 0 \n4389 106211563 Zhou, Jian 0 \n59373 152078604 KIRCHNER, NICOLE 0 \n19688 116957554 BLAWERT, CARSTEN 0 \n25828 125701586 KNIESEL, SIMON 0 \n73679 155544020 WHITING, Tien Yi Theresa Hsu 0 \n39905 145320991 Zhang, Michael 0 \n65003 153390230 DONG, Hailong 0 \n113369 179456511 LING, Jing 0 \n58383 151832619 WEN JU ZHANG 0 ", "text/html": "
\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 \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 \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 \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 \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 \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 \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 \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 \n \n \n \n \n \n \n \n
person_idperson_nameperson_name_orig_lgperson_addressperson_ctry_codenutsnuts_leveldoc_std_name_iddoc_std_namepsn_idpsn_namepsn_levelpsn_sectorhan_idhan_namehan_harmonized
9930472271503SHE, HUIMINSHE, HUIMINShanghaiCNNaN932084338SHE HUIMIN29505777SHE, HUIMIN0UNKNOWN172271503SHE, HUIMIN0
43896211563Zhou, JianZhou, JianBeijingCNNaN933759ZHOU JIAN37354342ZHOU JIAN1INDIVIDUAL106211563Zhou, Jian0
5937352078604KIRCHNER, NICOLEKIRCHNER, NICOLESACHSENSTRAßE 2845665 RECKLINGHAUSEN DEDEDE02139104KIRCHNER NICOLE17194552KIRCHNER, NICOLE0UNKNOWN152078604KIRCHNER, NICOLE0
1968816957554BLAWERT, CARSTENBLAWERT, CARSTENNaNDEDE0311260BLAWERT CARSTEN2923498BLAWERT, CARSTEN1INDIVIDUAL116957554BLAWERT, CARSTEN0
2582825701586KNIESEL, SIMONKNIESEL, SIMONNaNDEDE0255684KNIESEL SIMON17406789KNIESEL, SIMON1INDIVIDUAL125701586KNIESEL, SIMON0
7367955544020WHITING, Tien Yi Theresa HsuWHITING, Tien Yi Theresa HsuNaNUSNaN921758228WHITING TIEN YI THERESA HSU35065052WHITING, TIEN YI THERESA HSU0UNKNOWN155544020WHITING, Tien Yi Theresa Hsu0
3990545320991Zhang, MichaelZhang, MichaelBeijingCNNaN9725806ZHANG MICHAEL37097378ZHANG, MICHAEL1INDIVIDUAL145320991Zhang, Michael0
6500353390230DONG, HailongDONG, HailongMolenstraat 148,5701 KK HelmondNLNL41437196768DONG HAILONG7077131DONG, HAILONG0UNKNOWN153390230DONG, Hailong0
11336979456511LING, JingLING, JingNo. 6 North Of Binjiang Road, Taixing Economic...CNNaN9429470LING JING19626776LING, JING0UNKNOWN179456511LING, Jing0
5838351832619WEN JU ZHANGWEN JU ZHANGCNCNNaN923069059ZHANG WEN JU34908417WEN JU ZHANG0UNKNOWN151832619WEN JU ZHANG0
\n
" }, "execution_count": 41, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pers.sample(10)" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 42, "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 \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 \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 \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 \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 \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 \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 \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 \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 \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 \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 \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
cpc_idcpc_namesectionclasssubclassgroupmain_groupcpc_versionversion https://git-lfs.github.com/spec/v1cpc_taxonomycpc_fullnametax_level_0tax_level_1tax_level_2tax_level_3tax_level_4tax_level_5tax_level_6tax_level_7data_scope
0AHUMAN NECESSITIESANaNNaNNaNNaN2023NaN[('A', 'HUMAN NECESSITIES')]HUMAN NECESSITIESHUMAN NECESSITIESNaNNaNNaNNaNNaNNaNNaNFalse
1A01AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTI...A1.0NaNNaNNaN2023NaN[('A', 'HUMAN NECESSITIES'), ('A01', 'AGRICULT...HUMAN NECESSITIES<>AGRICULTURE; FORESTRY; ANIM...HUMAN NECESSITIESAGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTI...NaNNaNNaNNaNNaNNaNFalse
2A01BSOIL WORKING IN AGRICULTURE OR FORESTRY; PARTS...A1.0BNaNNaN2023NaN[('A', 'HUMAN NECESSITIES'), ('A01', 'AGRICULT...HUMAN NECESSITIES<>AGRICULTURE; FORESTRY; ANIM...HUMAN NECESSITIESAGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTI...SOIL WORKING IN AGRICULTURE OR FORESTRY; PARTS...NaNNaNNaNNaNNaNFalse
3A01B1/00Hand tools (edge trimmers for lawns A01G3/06 ...A1.0B1.00.02023NaN[('A', 'HUMAN NECESSITIES'), ('A01', 'AGRICULT...HUMAN NECESSITIES<>AGRICULTURE; FORESTRY; ANIM...HUMAN NECESSITIESAGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTI...SOIL WORKING IN AGRICULTURE OR FORESTRY; PARTS...Hand tools (edge trimmers for lawns A01G3/06 ...NaNNaNNaNNaNFalse
4A01B1/02Spades; Shovels {(hand-operated dredgers E02F3...A1.0B1.02.02023NaN[('A', 'HUMAN NECESSITIES'), ('A01', 'AGRICULT...HUMAN NECESSITIES<>AGRICULTURE; FORESTRY; ANIM...HUMAN NECESSITIESAGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTI...SOIL WORKING IN AGRICULTURE OR FORESTRY; PARTS...Spades; Shovels {(hand-operated dredgers E02F3...NaNNaNNaNNaNFalse
...............................................................
260486Y10T483/1873Indexing matrixY10.0T483.01873.02023NaN[('Y', 'GENERAL TAGGING OF NEW TECHNOLOGICAL D...GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPME...GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPME...TECHNICAL SUBJECTS COVERED BY FORMER USPCTECHNICAL SUBJECTS COVERED BY FORMER US CLASSI...Tool transfer to or from matrixIndexing matrixNaNNaNNaNFalse
260487Y10T483/1882Rotary discY10.0T483.01882.02023NaN[('Y', 'GENERAL TAGGING OF NEW TECHNOLOGICAL D...GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPME...GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPME...TECHNICAL SUBJECTS COVERED BY FORMER USPCTECHNICAL SUBJECTS COVERED BY FORMER US CLASSI...Tool transfer to or from matrixRotary discNaNNaNNaNFalse
260488Y10T483/1891Chain or beltY10.0T483.01891.02023NaN[('Y', 'GENERAL TAGGING OF NEW TECHNOLOGICAL D...GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPME...GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPME...TECHNICAL SUBJECTS COVERED BY FORMER USPCTECHNICAL SUBJECTS COVERED BY FORMER US CLASSI...Tool transfer to or from matrixChain or beltNaNNaNNaNFalse
260489Y10T483/19MiscellaneousY10.0T483.019.02023NaN[('Y', 'GENERAL TAGGING OF NEW TECHNOLOGICAL D...GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPME...GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPME...TECHNICAL SUBJECTS COVERED BY FORMER USPCTECHNICAL SUBJECTS COVERED BY FORMER US CLASSI...MiscellaneousNaNNaNNaNNaNFalse
260490NaNNaNNaNNaNNaNNaNNaN2022oid sha256:f138d6bdf2939ba576b96b633d81366123b...[]NaNNaNNaNNaNNaNNaNNaNNaNNaNFalse
\n

260491 rows × 20 columns

\n
" }, "execution_count": 42, "metadata": {}, "output_type": "execute_result" } ], "source": [ "cpc_def" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 43, "outputs": [ { "data": { "text/plain": " appln_id cpc_class_symbol\n490979 560314579 B32B 7/12\n139994 445201240 C08G2261/3241\n505928 567683420 C25D 7/123\n130069 442410454 Y02D 10/00\n467350 551851575 H04B 7/0486\n318101 509884390 H01L 21/0228\n350171 519161420 G06F 21/42\n129829 442384375 H04W 88/04\n277164 496690078 H04L 27/26\n240979 487005701 F16F2230/0064", "text/html": "
\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 \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 \n \n \n \n \n \n \n \n \n \n
appln_idcpc_class_symbol
490979560314579B32B 7/12
139994445201240C08G2261/3241
505928567683420C25D 7/123
130069442410454Y02D 10/00
467350551851575H04B 7/0486
318101509884390H01L 21/0228
350171519161420G06F 21/42
129829442384375H04W 88/04
277164496690078H04L 27/26
240979487005701F16F2230/0064
\n
" }, "execution_count": 43, "metadata": {}, "output_type": "execute_result" } ], "source": [ "appln_cpc.sample(10)" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 44, "outputs": [ { "data": { "text/plain": "325243" }, "execution_count": 44, "metadata": {}, "output_type": "execute_result" } ], "source": [ "len(appln_pers)" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 45, "outputs": [ { "data": { "text/plain": "65136" }, "execution_count": 45, "metadata": {}, "output_type": "execute_result" } ], "source": [ "len(appln)" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 46, "outputs": [], "source": [ "# Number of collaborative applications\n" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 47, "outputs": [], "source": [ "record_col = \"appln_id\"" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 48, "outputs": [ { "data": { "text/plain": "'C:\\\\Users\\\\radvanyi\\\\PycharmProjects\\\\ZSI_analytics\\\\PATSTAT'" }, "execution_count": 48, "metadata": {}, "output_type": "execute_result" } ], "source": [ "os.getcwd()" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 49, "outputs": [], "source": [ "fromdir=\"first_round\"" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 50, "outputs": [], "source": [ "appln_pers_f = pd.read_csv(f\"{fromdir}/first-filings-with-persons-raw.csv\", header=None,\n", " names=[\"appln_id\",\"appln_auth\",\"person_id\",\"invt_seq_nr\",\"applt_seq_nr\",'person_name',\"person_ctry_code\"])\n", "\n", "appln_pers_haninfo = pd.read_csv(f\"{outdir}/tls_206_scope.csv\", usecols=[\"person_id\",\"han_id\",\"han_name\",\"psn_sector\"])\n", "\n", "appln_pers_f = appln_pers_f.merge(appln_pers_haninfo, on=\"person_id\")" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 51, "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": 54, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "1116\n" ] } ], "source": [ "\n", "\n", "# appln_ch = appln_pers.groupby(\"appln_id\").filter(lambda gr: ((gr[\"person_ctry_code\"]==\"CN\").any()|\n", "# (gr[\"appln_auth\"]==\"CN\")).any())\n", "# appln_scope = appln_ch.groupby(\"appln_id\").filter(lambda gr: ((gr[\"person_ctry_code\"].isin(scope_countries)).any()|\n", "# (gr[\"appln_auth\"].isin(scope_countries))).any())\n", "\n", "appln_ch = appln_pers_f.groupby(\"appln_id\").filter(lambda gr: (gr[\"person_ctry_code\"]==\"CN\").any())\n", "appln_scope = appln_ch.groupby(\"appln_id\").filter(lambda gr: (gr[\"person_ctry_code\"].isin(scope_countries)).any())\n", "\n", "print(appln_scope[\"appln_id\"].nunique())" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 73, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "1116\n" ] } ], "source": [ "appln_pers_f = appln_scope[appln_scope[\"person_ctry_code\"].isin(list(scope_countries)+[\"CN\"])].copy()\n", "print(appln_pers_f[\"appln_id\"].nunique())" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 71, "outputs": [ { "data": { "text/plain": " appln_id appln_auth person_id invt_seq_nr applt_seq_nr \n76 410448968 DE 7067540 0 1 \\\n87 420386087 DE 7067540 0 1 \n88 420386089 DE 7067540 0 1 \n828 410512383 EP 220 0 1 \n1454 333687134 EP 10329 0 1 \n... ... ... ... ... ... \n147073 549690891 EP 85841201 1 0 \n147074 549690895 EP 85841201 1 0 \n147075 549690901 EP 85841201 1 0 \n147076 549690897 EP 85841201 1 0 \n147077 549788919 EP 85774895 2 0 \n\n person_name person_ctry_code psn_sector han_id \n76 Evonik Degussa GmbH DE COMPANY 840063 \\\n87 Evonik Degussa GmbH DE COMPANY 840063 \n88 Evonik Degussa GmbH DE COMPANY 840063 \n828 SIEMENS AKTIENGESELLSCHAFT DE COMPANY 2709504 \n1454 Alcatel Lucent FR COMPANY 68848 \n... ... ... ... ... \n147073 JONSSON, Tony SE UNKNOWN 185841201 \n147074 JONSSON, Tony SE UNKNOWN 185841201 \n147075 JONSSON, Tony SE UNKNOWN 185841201 \n147076 JONSSON, Tony SE UNKNOWN 185841201 \n147077 TRAN NGUYEN, Johnny SE UNKNOWN 185774895 \n\n han_name \n76 EVONIK DEGUSSA GMBH \n87 EVONIK DEGUSSA GMBH \n88 EVONIK DEGUSSA GMBH \n828 SIEMENS AG \n1454 ALCATEL LUCENT \n... ... \n147073 JONSSON, Tony \n147074 JONSSON, Tony \n147075 JONSSON, Tony \n147076 JONSSON, Tony \n147077 TRAN NGUYEN, Johnny \n\n[4434 rows x 10 columns]", "text/html": "
\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 \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 \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 \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 \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 \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 \n \n \n \n \n \n \n
appln_idappln_authperson_idinvt_seq_nrapplt_seq_nrperson_nameperson_ctry_codepsn_sectorhan_idhan_name
76410448968DE706754001Evonik Degussa GmbHDECOMPANY840063EVONIK DEGUSSA GMBH
87420386087DE706754001Evonik Degussa GmbHDECOMPANY840063EVONIK DEGUSSA GMBH
88420386089DE706754001Evonik Degussa GmbHDECOMPANY840063EVONIK DEGUSSA GMBH
828410512383EP22001SIEMENS AKTIENGESELLSCHAFTDECOMPANY2709504SIEMENS AG
1454333687134EP1032901Alcatel LucentFRCOMPANY68848ALCATEL LUCENT
.................................
147073549690891EP8584120110JONSSON, TonySEUNKNOWN185841201JONSSON, Tony
147074549690895EP8584120110JONSSON, TonySEUNKNOWN185841201JONSSON, Tony
147075549690901EP8584120110JONSSON, TonySEUNKNOWN185841201JONSSON, Tony
147076549690897EP8584120110JONSSON, TonySEUNKNOWN185841201JONSSON, Tony
147077549788919EP8577489520TRAN NGUYEN, JohnnySEUNKNOWN185774895TRAN NGUYEN, Johnny
\n

4434 rows × 10 columns

\n
" }, "execution_count": 71, "metadata": {}, "output_type": "execute_result" } ], "source": [ "appln_pers_f" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 55, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "1116\n" ] }, { "data": { "text/plain": " appln_id appln_auth appln_kind filing_year nb_applicants \n51083 407234637 FI A 2011 1 \\\n240847 442945435 FR A 2015 1 \n685164 531137359 NL A 2020 1 \n235203 438685261 EP A 2015 1 \n430561 497548590 DE A 2017 2 \n... ... ... ... ... ... \n721473 579480994 DE A 2021 1 \n619328 523950441 EP A 2019 2 \n484715 490602095 EP A 2018 1 \n196502 450101287 DE A 2014 1 \n367660 477378741 GB A 2017 1 \n\n nb_inventors \n51083 2 \n240847 5 \n685164 3 \n235203 4 \n430561 8 \n... ... \n721473 3 \n619328 3 \n484715 1 \n196502 6 \n367660 1 \n\n[100 rows x 6 columns]", "text/html": "
\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 \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 \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 \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 \n \n \n \n \n \n \n \n \n \n \n
appln_idappln_authappln_kindfiling_yearnb_applicantsnb_inventors
51083407234637FIA201112
240847442945435FRA201515
685164531137359NLA202013
235203438685261EPA201514
430561497548590DEA201728
.....................
721473579480994DEA202113
619328523950441EPA201923
484715490602095EPA201811
196502450101287DEA201416
367660477378741GBA201711
\n

100 rows × 6 columns

\n
" }, "execution_count": 55, "metadata": {}, "output_type": "execute_result" } ], "source": [ "appln_f = pd.read_csv(f\"{fromdir}/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 = appln_f[appln_f[\"appln_id\"].isin(appln_scope['appln_id'])]\n", "print(appln_f[\"appln_id\"].nunique())\n", "\n", "appln_f.sample(100)" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": null, "outputs": [], "source": [], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": null, "outputs": [], "source": [], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 57, "outputs": [ { "data": { "text/plain": "appln_kind\nA 1114\nU 13\nName: count, dtype: int64" }, "execution_count": 57, "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": 65, "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": "markers+text+lines", "name": "", "orientation": "v", "showlegend": false, "text": [ 52.0, 48.0, 73.0, 64.0, 86.0, 97.0, 148.0, 179.0, 166.0, 145.0, 58.0 ], "textfont": { "size": 12 }, "textposition": "top center", "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x", "y": [ 52, 48, 73, 64, 86, 97, 148, 179, 166, 145, 58 ], "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": "markers+text+lines", "name": "", "orientation": "v", "showlegend": false, "text": [ 0.0, -0.07692307692307693, 0.40384615384615385, 0.23076923076923078, 0.6538461538461539, 0.8653846153846154, 1.8461538461538463, 2.4423076923076925, 2.1923076923076925, 1.7884615384615385, 0.11538461538461539 ], "textfont": { "size": 12 }, "textposition": "top center", "texttemplate": "%{y:.0%}", "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x2", "y": [ 0.0, -0.07692307692307693, 0.40384615384615385, 0.23076923076923078, 0.6538461538461539, 0.8653846153846154, 1.8461538461538463, 2.4423076923076925, 2.1923076923076925, 1.7884615384615385, 0.11538461538461539 ], "yaxis": "y2", "type": "scatter" } ], "layout": { "template": { "data": { "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "xaxis": { "anchor": "y", "domain": [ 0.0, 1.0 ], "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "yaxis": { "anchor": "x", "domain": [ 0.625, 1.0 ], "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside", "range": [ 0, 250 ] }, "xaxis2": { "anchor": "y2", "domain": [ 0.0, 1.0 ], "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "yaxis2": { "anchor": "x2", "domain": [ 0.0, 0.375 ], "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside", "zerolinecolor": "grey", "tickformat": ".0%", "range": [ -1, 3.5 ] }, "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,250]\n", "figsuper['layout'][\"yaxis2\"][\"range\"] = [-1,3.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": 66, "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 0.0 2012 \\\n1 2012 AT 1.0 2012 \n2 2013 AT 4.0 2012 \n3 2014 AT 0.0 2012 \n4 2015 AT 1.0 2012 \n.. ... ... ... ... \n160 2017 SE 3.0 2015 \n161 2018 SE 1.0 2015 \n162 2019 SE 0.0 2015 \n163 2020 SE 1.0 2015 \n164 2021 SE 0.0 2015 \n\n appln_id_relative_growth appln_id_cumsum Country \n0 -1.0 0.0 Austria \n1 0.0 1.0 Austria \n2 3.0 5.0 Austria \n3 -1.0 5.0 Austria \n4 0.0 6.0 Austria \n.. ... ... ... \n160 2.0 5.0 Sweden \n161 0.0 6.0 Sweden \n162 -1.0 6.0 Sweden \n163 0.0 7.0 Sweden \n164 -1.0 7.0 Sweden \n\n[165 rows x 7 columns]", "text/html": "
\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 \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 \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 \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 \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
filing_yearappln_authappln_idfiling_year_relative_growthappln_id_relative_growthappln_id_cumsumCountry
02011AT0.02012-1.00.0Austria
12012AT1.020120.01.0Austria
22013AT4.020123.05.0Austria
32014AT0.02012-1.05.0Austria
42015AT1.020120.06.0Austria
........................
1602017SE3.020152.05.0Sweden
1612018SE1.020150.06.0Sweden
1622019SE0.02015-1.06.0Sweden
1632020SE1.020150.07.0Sweden
1642021SE0.02015-1.07.0Sweden
\n

165 rows × 7 columns

\n
" }, "execution_count": 66, "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": 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" ], "legendgroup": "", "line": { "color": "#636efa", "dash": "solid" }, "marker": { "symbol": "circle" }, "mode": "markers+lines", "name": "", "orientation": "v", "showlegend": false, "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x13", "y": [ 0.0, 1.0, 4.0, 0.0, 1.0, 0.0, 0.0, 0.0, 2.0, 3.0, 0.0 ], "yaxis": "y13", "type": "scatter" }, { "hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}", "hovertext": [ "Belgium", "Belgium", "Belgium", "Belgium", "Belgium", "Belgium", "Belgium", "Belgium", "Belgium", "Belgium", "Belgium" ], "legendgroup": "", "line": { "color": "#636efa", "dash": "solid" }, "marker": { "symbol": "circle" }, "mode": "markers+lines", "name": "", "orientation": "v", "showlegend": false, "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x14", "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0 ], "yaxis": "y14", "type": "scatter" }, { "hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}", "hovertext": [ "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 ], "xaxis": "x15", "y": [ 0.0, 0.0, 1.0, 2.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], "yaxis": "y15", "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" ], "legendgroup": "", "line": { "color": "#636efa", "dash": "solid" }, "marker": { "symbol": "circle" }, "mode": "markers+lines", "name": "", "orientation": "v", "showlegend": false, "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x16", "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 2.0, 1.0, 0.0 ], "yaxis": "y16", "type": "scatter" }, { "hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}", "hovertext": [ "Denmark", "Denmark", "Denmark", "Denmark", "Denmark", "Denmark", "Denmark", "Denmark", "Denmark", "Denmark", "Denmark" ], "legendgroup": "", "line": { "color": "#636efa", "dash": "solid" }, "marker": { "symbol": "circle" }, "mode": "markers+lines", "name": "", "orientation": "v", "showlegend": false, "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x17", "y": [ 0.0, 0.0, 0.0, 0.0, 2.0, 1.0, 0.0, 0.0, 2.0, 0.0, 0.0 ], "yaxis": "y17", "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" ], "legendgroup": "", "line": { "color": "#636efa", "dash": "solid" }, "marker": { "symbol": "circle" }, "mode": "markers+lines", "name": "", "orientation": "v", "showlegend": false, "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x18", "y": [ 17.0, 15.0, 16.0, 21.0, 28.0, 34.0, 56.0, 104.0, 115.0, 87.0, 33.0 ], "yaxis": "y18", "type": "scatter" }, { "hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}", "hovertext": [ "Finland", "Finland", "Finland", "Finland", "Finland", "Finland", "Finland", "Finland", "Finland", "Finland", "Finland" ], "legendgroup": "", "line": { "color": "#636efa", "dash": "solid" }, "marker": { "symbol": "circle" }, "mode": "markers+lines", "name": "", "orientation": "v", "showlegend": false, "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x7", "y": [ 3.0, 4.0, 3.0, 1.0, 3.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], "yaxis": "y7", "type": "scatter" }, { "hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}", "hovertext": [ "France", "France", "France", "France", "France", "France", "France", "France", "France", "France", "France" ], "legendgroup": "", "line": { "color": "#636efa", "dash": "solid" }, "marker": { "symbol": "circle" }, "mode": "markers+lines", "name": "", "orientation": "v", "showlegend": false, "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x8", "y": [ 10.0, 9.0, 14.0, 5.0, 13.0, 12.0, 13.0, 6.0, 11.0, 15.0, 6.0 ], "yaxis": "y8", "type": "scatter" }, { "hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}", "hovertext": [ "Germany", "Germany", "Germany", "Germany", "Germany", "Germany", "Germany", "Germany", "Germany", "Germany", "Germany" ], "legendgroup": "", "line": { "color": "#636efa", "dash": "solid" }, "marker": { "symbol": "circle" }, "mode": "markers+lines", "name": "", "orientation": "v", "showlegend": false, "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x9", "y": [ 15.0, 15.0, 32.0, 31.0, 24.0, 19.0, 30.0, 28.0, 20.0, 21.0, 15.0 ], "yaxis": "y9", "type": "scatter" }, { "hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}", "hovertext": [ "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 ], "xaxis": "x10", "y": [ 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.0, 2.0 ], "yaxis": "y10", "type": "scatter" }, { "hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}", "hovertext": [ "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 ], "xaxis": "x11", "y": [ 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 7.0, 7.0, 1.0, 8.0, 1.0 ], "yaxis": "y11", "type": "scatter" }, { "hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}", "hovertext": [ "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 ], "xaxis": "x12", "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], "yaxis": "y12", "type": "scatter" }, { "hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}", "hovertext": [ "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 ], "xaxis": "x", "y": [ 4.0, 2.0, 0.0, 1.0, 3.0, 2.0, 3.0, 0.0, 1.0, 0.0, 0.0 ], "yaxis": "y", "type": "scatter" }, { "hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}", "hovertext": [ "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 ], "xaxis": "x2", "y": [ 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 3.0, 1.0, 0.0, 1.0, 0.0 ], "yaxis": "y2", "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" ], "legendgroup": "", "line": { "color": "#636efa", "dash": "solid" }, "marker": { "symbol": "circle" }, "mode": "markers+lines", "name": "", "orientation": "v", "showlegend": false, "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x3", "y": [ 3.0, 2.0, 2.0, 1.0, 11.0, 25.0, 36.0, 32.0, 12.0, 6.0, 0.0 ], "yaxis": "y3", "type": "scatter" } ], "layout": { "annotations": [ { "showarrow": false, "text": "Spain", "x": 0.075, "xanchor": "center", "xref": "paper", "y": 0.2866666666666666, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Sweden", "x": 0.24499999999999997, "xanchor": "center", "xref": "paper", "y": 0.2866666666666666, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "United Kingdom", "x": 0.415, "xanchor": "center", "xref": "paper", "y": 0.2866666666666666, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Finland", "x": 0.075, "xanchor": "center", "xref": "paper", "y": 0.6433333333333333, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "France", "x": 0.24499999999999997, "xanchor": "center", "xref": "paper", "y": 0.6433333333333333, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Germany", "x": 0.415, "xanchor": "center", "xref": "paper", "y": 0.6433333333333333, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Luxembourg", "x": 0.585, "xanchor": "center", "xref": "paper", "y": 0.6433333333333333, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Netherlands", "x": 0.7549999999999999, "xanchor": "center", "xref": "paper", "y": 0.6433333333333333, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Portugal", "x": 0.925, "xanchor": "center", "xref": "paper", "y": 0.6433333333333333, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Austria", "x": 0.075, "xanchor": "center", "xref": "paper", "y": 0.9999999999999999, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Belgium", "x": 0.24499999999999997, "xanchor": "center", "xref": "paper", "y": 0.9999999999999999, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "China", "x": 0.415, "xanchor": "center", "xref": "paper", "y": 0.9999999999999999, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Czech Republic", "x": 0.585, "xanchor": "center", "xref": "paper", "y": 0.9999999999999999, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Denmark", "x": 0.7549999999999999, "xanchor": "center", "xref": "paper", "y": 0.9999999999999999, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "European Patent Office", "x": 0.925, "xanchor": "center", "xref": "paper", "y": 0.9999999999999999, "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.2866666666666666 ], "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.2866666666666666 ], "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.2866666666666666 ], "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.2866666666666666 ], "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.2866666666666666 ], "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.2866666666666666 ], "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.35666666666666663, 0.6433333333333333 ], "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.35666666666666663, 0.6433333333333333 ], "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.35666666666666663, 0.6433333333333333 ], "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.35666666666666663, 0.6433333333333333 ], "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.35666666666666663, 0.6433333333333333 ], "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.35666666666666663, 0.6433333333333333 ], "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.7133333333333333, 0.9999999999999999 ], "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.7133333333333333, 0.9999999999999999 ], "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.7133333333333333, 0.9999999999999999 ], "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.7133333333333333, 0.9999999999999999 ], "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.7133333333333333, 0.9999999999999999 ], "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.7133333333333333, 0.9999999999999999 ], "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": 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" ], "legendgroup": "", "line": { "color": "#636efa", "dash": "solid" }, "marker": { "symbol": "circle" }, "mode": "markers+lines", "name": "", "orientation": "v", "showlegend": false, "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x13", "y": [ -1.0, 0.0, 3.0, -1.0, 0.0, -1.0, -1.0, -1.0, 1.0, 2.0, -1.0 ], "yaxis": "y13", "type": "scatter" }, { "hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}", "hovertext": [ "Belgium", "Belgium", "Belgium", "Belgium", "Belgium", "Belgium", "Belgium", "Belgium", "Belgium", "Belgium", "Belgium" ], "legendgroup": "", "line": { "color": "#636efa", "dash": "solid" }, "marker": { "symbol": "circle" }, "mode": "markers+lines", "name": "", "orientation": "v", "showlegend": false, "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x14", "y": [ -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, 0.0, 0.0 ], "yaxis": "y14", "type": "scatter" }, { "hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}", "hovertext": [ "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 ], "xaxis": "x15", "y": [ -1.0, -1.0, 0.0, 1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0 ], "yaxis": "y15", "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" ], "legendgroup": "", "line": { "color": "#636efa", "dash": "solid" }, "marker": { "symbol": "circle" }, "mode": "markers+lines", "name": "", "orientation": "v", "showlegend": false, "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x16", "y": [ -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, 0.0, 1.0, 0.0, -1.0 ], "yaxis": "y16", "type": "scatter" }, { "hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}", "hovertext": [ "Denmark", "Denmark", "Denmark", "Denmark", "Denmark", "Denmark", "Denmark", "Denmark", "Denmark", "Denmark", "Denmark" ], "legendgroup": "", "line": { "color": "#636efa", "dash": "solid" }, "marker": { "symbol": "circle" }, "mode": "markers+lines", "name": "", "orientation": "v", "showlegend": false, "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x17", "y": [ -1.0, -1.0, -1.0, -1.0, 0.0, -0.5, -1.0, -1.0, 0.0, -1.0, -1.0 ], "yaxis": "y17", "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" ], "legendgroup": "", "line": { "color": "#636efa", "dash": "solid" }, "marker": { "symbol": "circle" }, "mode": "markers+lines", "name": "", "orientation": "v", "showlegend": false, "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x18", "y": [ 0.0, -0.11764705882352941, -0.058823529411764705, 0.23529411764705882, 0.6470588235294118, 1.0, 2.2941176470588234, 5.117647058823529, 5.764705882352941, 4.117647058823529, 0.9411764705882353 ], "yaxis": "y18", "type": "scatter" }, { "hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}", "hovertext": [ "Finland", "Finland", "Finland", "Finland", "Finland", "Finland", "Finland", "Finland", "Finland", "Finland", "Finland" ], "legendgroup": "", "line": { "color": "#636efa", "dash": "solid" }, "marker": { "symbol": "circle" }, "mode": "markers+lines", "name": "", "orientation": "v", "showlegend": false, "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x7", "y": [ 0.0, 0.3333333333333333, 0.0, -0.6666666666666666, 0.0, -0.6666666666666666, -1.0, -1.0, -1.0, -1.0, -1.0 ], "yaxis": "y7", "type": "scatter" }, { "hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}", "hovertext": [ "France", "France", "France", "France", "France", "France", "France", "France", "France", "France", "France" ], "legendgroup": "", "line": { "color": "#636efa", "dash": "solid" }, "marker": { "symbol": "circle" }, "mode": "markers+lines", "name": "", "orientation": "v", "showlegend": false, "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x8", "y": [ 0.0, -0.1, 0.4, -0.5, 0.3, 0.2, 0.3, -0.4, 0.1, 0.5, -0.4 ], "yaxis": "y8", "type": "scatter" }, { "hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}", "hovertext": [ "Germany", "Germany", "Germany", "Germany", "Germany", "Germany", "Germany", "Germany", "Germany", "Germany", "Germany" ], "legendgroup": "", "line": { "color": "#636efa", "dash": "solid" }, "marker": { "symbol": "circle" }, "mode": "markers+lines", "name": "", "orientation": "v", "showlegend": false, "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x9", "y": [ 0.0, 0.0, 1.1333333333333333, 1.0666666666666667, 0.6, 0.26666666666666666, 1.0, 0.8666666666666667, 0.3333333333333333, 0.4, 0.0 ], "yaxis": "y9", "type": "scatter" }, { "hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}", "hovertext": [ "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 ], "xaxis": "x10", "y": [ -1.0, -1.0, -1.0, 0.0, -1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0 ], "yaxis": "y10", "type": "scatter" }, { "hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}", "hovertext": [ "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 ], "xaxis": "x11", "y": [ -1.0, -1.0, 0.0, 0.0, -1.0, 0.0, 6.0, 6.0, 0.0, 7.0, 0.0 ], "yaxis": "y11", "type": "scatter" }, { "hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}", "hovertext": [ "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 ], "xaxis": "x12", "y": [ -1.0, -1.0, -1.0, -1.0, -1.0, 0.0, -1.0, -1.0, -1.0, -1.0, -1.0 ], "yaxis": "y12", "type": "scatter" }, { "hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}", "hovertext": [ "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 ], "xaxis": "x", "y": [ 0.0, -0.5, -1.0, -0.75, -0.25, -0.5, -0.25, -1.0, -0.75, -1.0, -1.0 ], "yaxis": "y", "type": "scatter" }, { "hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}", "hovertext": [ "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 ], "xaxis": "x2", "y": [ -1.0, -1.0, -1.0, -1.0, 0.0, 0.0, 2.0, 0.0, -1.0, 0.0, -1.0 ], "yaxis": "y2", "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" ], "legendgroup": "", "line": { "color": "#636efa", "dash": "solid" }, "marker": { "symbol": "circle" }, "mode": "markers+lines", "name": "", "orientation": "v", "showlegend": false, "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x3", "y": [ 0.0, -0.3333333333333333, -0.3333333333333333, -0.6666666666666666, 2.6666666666666665, 7.333333333333333, 11.0, 9.666666666666666, 3.0, 1.0, -1.0 ], "yaxis": "y3", "type": "scatter" } ], "layout": { "annotations": [ { "showarrow": false, "text": "Spain", "x": 0.075, "xanchor": "center", "xref": "paper", "y": 0.2866666666666666, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Sweden", "x": 0.24499999999999997, "xanchor": "center", "xref": "paper", "y": 0.2866666666666666, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "United Kingdom", "x": 0.415, "xanchor": "center", "xref": "paper", "y": 0.2866666666666666, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Finland", "x": 0.075, "xanchor": "center", "xref": "paper", "y": 0.6433333333333333, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "France", "x": 0.24499999999999997, "xanchor": "center", "xref": "paper", "y": 0.6433333333333333, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Germany", "x": 0.415, "xanchor": "center", "xref": "paper", "y": 0.6433333333333333, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Luxembourg", "x": 0.585, "xanchor": "center", "xref": "paper", "y": 0.6433333333333333, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Netherlands", "x": 0.7549999999999999, "xanchor": "center", "xref": "paper", "y": 0.6433333333333333, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Portugal", "x": 0.925, "xanchor": "center", "xref": "paper", "y": 0.6433333333333333, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Austria", "x": 0.075, "xanchor": "center", "xref": "paper", "y": 0.9999999999999999, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Belgium", "x": 0.24499999999999997, "xanchor": "center", "xref": "paper", "y": 0.9999999999999999, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "China", "x": 0.415, "xanchor": "center", "xref": "paper", "y": 0.9999999999999999, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Czech Republic", "x": 0.585, "xanchor": "center", "xref": "paper", "y": 0.9999999999999999, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Denmark", "x": 0.7549999999999999, "xanchor": "center", "xref": "paper", "y": 0.9999999999999999, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "European Patent Office", "x": 0.925, "xanchor": "center", "xref": "paper", "y": 0.9999999999999999, "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.2866666666666666 ], "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.2866666666666666 ], "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.2866666666666666 ], "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.2866666666666666 ], "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.2866666666666666 ], "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.2866666666666666 ], "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.35666666666666663, 0.6433333333333333 ], "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.35666666666666663, 0.6433333333333333 ], "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.35666666666666663, 0.6433333333333333 ], "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.35666666666666663, 0.6433333333333333 ], "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.35666666666666663, 0.6433333333333333 ], "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.35666666666666663, 0.6433333333333333 ], "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.7133333333333333, 0.9999999999999999 ], "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.7133333333333333, 0.9999999999999999 ], "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.7133333333333333, 0.9999999999999999 ], "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.7133333333333333, 0.9999999999999999 ], "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.7133333333333333, 0.9999999999999999 ], "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.7133333333333333, 0.9999999999999999 ], "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": 131, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "EP not found in ISO2\n", "European Patent Office not found in regex\n" ] }, { "data": { "text/plain": " appln_id appln_auth person_id invt_seq_nr applt_seq_nr \n136092 512548123 GB 55086687 0 1 \\\n140959 523940692 EP 69747486 0 1 \n145846 517778054 EP 77709457 3 0 \n111339 352908327 FR 46503468 4 0 \n102245 336208056 EP 5019334 1 0 \n... ... ... ... ... ... \n140952 513966940 EP 69747486 0 1 \n143598 546020617 DE 81337072 1 0 \n141356 512140061 NL 71325506 1 0 \n141273 488981411 EP 69749947 2 0 \n124034 407239903 EP 47903112 4 0 \n\n person_name person_ctry_code \n136092 TCL Communication Limited CN \\\n140959 Ningbo Geely Automobile Research & Development... CN \n145846 FORSBERG, Christian SE \n111339 GILIS, FABRICE CN \n102245 Carcone, Luca IT \n... ... ... \n140952 Ningbo Geely Automobile Research & Development... CN \n143598 Zhou, Hulian CN \n141356 JAN VAN DER HORST NL \n141273 Zuo, Fei CN \n124034 Wichmann, Daniel, Dr. DE \n\n psn_sector han_id han_name \n136092 COMPANY 3635036 TCL COMM LTD \\\n140959 COMPANY 3697072 NINGBO GEELY AUTOMOBILE R&D CO LTD \n145846 NaN 177709457 FORSBERG, Christian \n111339 NaN 146503468 GILIS, FABRICE \n102245 NaN 105019334 Carcone, Luca \n... ... ... ... \n140952 COMPANY 3697072 NINGBO GEELY AUTOMOBILE R&D CO LTD \n143598 NaN 181337072 Zhou, Hulian \n141356 NaN 171325506 JAN VAN DER HORST \n141273 NaN 169749947 Zuo, Fei \n124034 NaN 147903112 Wichmann, Daniel, Dr. \n\n person_ctry_code_fullname appln_auth_fullname person_ctry_ISO3 \n136092 China United Kingdom CHN \\\n140959 China European Patent Office CHN \n145846 Sweden European Patent Office SWE \n111339 China France CHN \n102245 Italy European Patent Office ITA \n... ... ... ... \n140952 China European Patent Office CHN \n143598 China Germany CHN \n141356 Netherlands Netherlands NLD \n141273 China European Patent Office CHN \n124034 Germany European Patent Office DEU \n\n person_ctry_type ISO3 auth_ISO3 auth_ctry_type \n136092 China CHN GBR Non-EU associate \n140959 China CHN not found EPO \n145846 EU SWE not found EPO \n111339 China CHN FRA EU \n102245 EU ITA not found EPO \n... ... ... ... ... \n140952 China CHN not found EPO \n143598 China CHN DEU EU \n141356 EU NLD NLD EU \n141273 China CHN not found EPO \n124034 EU DEU not found EPO \n\n[100 rows x 17 columns]", "text/html": "
\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 \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 \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 \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 \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 \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 \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 \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 \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 \n \n \n \n \n \n \n \n \n \n \n \n \n
appln_idappln_authperson_idinvt_seq_nrapplt_seq_nrperson_nameperson_ctry_codepsn_sectorhan_idhan_nameperson_ctry_code_fullnameappln_auth_fullnameperson_ctry_ISO3person_ctry_typeISO3auth_ISO3auth_ctry_type
136092512548123GB5508668701TCL Communication LimitedCNCOMPANY3635036TCL COMM LTDChinaUnited KingdomCHNChinaCHNGBRNon-EU associate
140959523940692EP6974748601Ningbo Geely Automobile Research & Development...CNCOMPANY3697072NINGBO GEELY AUTOMOBILE R&D CO LTDChinaEuropean Patent OfficeCHNChinaCHNnot foundEPO
145846517778054EP7770945730FORSBERG, ChristianSENaN177709457FORSBERG, ChristianSwedenEuropean Patent OfficeSWEEUSWEnot foundEPO
111339352908327FR4650346840GILIS, FABRICECNNaN146503468GILIS, FABRICEChinaFranceCHNChinaCHNFRAEU
102245336208056EP501933410Carcone, LucaITNaN105019334Carcone, LucaItalyEuropean Patent OfficeITAEUITAnot foundEPO
......................................................
140952513966940EP6974748601Ningbo Geely Automobile Research & Development...CNCOMPANY3697072NINGBO GEELY AUTOMOBILE R&D CO LTDChinaEuropean Patent OfficeCHNChinaCHNnot foundEPO
143598546020617DE8133707210Zhou, HulianCNNaN181337072Zhou, HulianChinaGermanyCHNChinaCHNDEUEU
141356512140061NL7132550610JAN VAN DER HORSTNLNaN171325506JAN VAN DER HORSTNetherlandsNetherlandsNLDEUNLDNLDEU
141273488981411EP6974994720Zuo, FeiCNNaN169749947Zuo, FeiChinaEuropean Patent OfficeCHNChinaCHNnot foundEPO
124034407239903EP4790311240Wichmann, Daniel, Dr.DENaN147903112Wichmann, Daniel, Dr.GermanyEuropean Patent OfficeDEUEUDEUnot foundEPO
\n

100 rows × 17 columns

\n
" }, "execution_count": 131, "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", "appln_pers_f[\"ISO3\"] = cc.pandas_convert(series=appln_pers_f[\"person_ctry_code_fullname\"], to='ISO3')\n", "appln_pers_f[\"person_ctry_type\"] = appln_pers_f[\"ISO3\"].apply(lambda x: \"China\" if x == \"CHN\" else \"Non-EU associate\" if x in [\"GBR\",\"CHE\",\"NOR\"] else \"EU\")\n", "\n", "appln_pers_f[\"auth_ISO3\"] = cc.pandas_convert(series=appln_pers_f[\"appln_auth_fullname\"], to='ISO3')\n", "appln_pers_f[\"auth_ctry_type\"] = appln_pers_f[\"auth_ISO3\"].apply(lambda x: \"China\" if x == \"CHN\" else \"Non-EU associate\" if x in [\"GBR\",\"CHE\",\"NOR\"] else \"EU\" if x!='not found' else \"EPO\")\n", "\n", "appln_pers_f.sample(100)" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 93, "outputs": [ { "data": { "text/plain": "array(['DEU', 'FRA', 'SWE', 'ESP', 'BEL', 'CHN', 'CHE', 'AUT', 'FIN',\n 'NLD', 'GRC', 'ITA', 'CZE', 'HUN', 'DNK', 'IRL', 'POL', 'LUX',\n 'CYP', 'PRT', 'NOR', 'ROU'], dtype=object)" }, "execution_count": 93, "metadata": {}, "output_type": "execute_result" } ], "source": [ "appln_pers_f[\"person_ctry_ISO3\"].unique()" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 137, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "data": [ { "alignmentgroup": "True", "hovertemplate": "Country type=China
Number of co-patents=%{x}
Name=%{y}", "legendgroup": "China", "marker": { "color": "#EF553B", "pattern": { "shape": "" } }, "name": "China", "offsetgroup": "China", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 12, 9, 6, 5, 5, 5, 5, 4, 4, 3, 3, 3, 3, 3, 3 ], "xaxis": "x", "y": [ "REN, CONG (CHN)", "WU, ZILI (CHN)", "VINCENT, GUILLAUME (CHN)", "KOULECHOV, KIRILL (CHN)", "TOM VAN POYER (CHN)", "MA, CHAO (CHN)", "LV, HUA (CHN)", "GAYE ANDRE (CHN)", "SVEN BOON (CHN)", "MENG, YANG QIAO (CHN)", "ANTHONY DREVET (CHN)", "RANTALA, JUHA (CHN)", "DERENTHAL, MARC-JEAN (CHN)", "ZHANG, XIONGFEI (CHN)", "ZHONG, CHONGCHENG (CHN)" ], "yaxis": "y", "type": "bar" } ], "layout": { "template": { "data": { "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "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 ], "title": { "text": "Number of co-patents" }, "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "yaxis": { "anchor": "x", "domain": [ 0.0, 1.0 ], "title": { "text": "Name" }, "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside", "tickfont": { "size": 10 } }, "legend": { "title": { "text": "Country type" }, "tracegroupgap": 0 }, "margin": { "t": 60 }, "barmode": "relative", "font": { "family": "Montserrat", "size": 12 }, "yaxis2": { "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "yaxis3": { "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "uniformtext": { "minsize": 10 } }, "config": { "displayModeBar": false, "responsive": true, "plotlyServerURL": "https://plotly.com" } }, "text/html": "
" }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "data": [ { "alignmentgroup": "True", "hovertemplate": "Country type=China
Number of co-patents=%{x}
Name=%{y}", "legendgroup": "China", "marker": { "color": "#EF553B", "pattern": { "shape": "" } }, "name": "China", "offsetgroup": "China", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 12, 9, 6, 5, 5, 5, 5, 4, 4, 3, 3, 3, 3, 3, 3 ], "xaxis": "x", "y": [ "REN, CONG (CHN)", "WU, ZILI (CHN)", "VINCENT, GUILLAUME (CHN)", "KOULECHOV, KIRILL (CHN)", "TOM VAN POYER (CHN)", "MA, CHAO (CHN)", "LV, HUA (CHN)", "GAYE ANDRE (CHN)", "SVEN BOON (CHN)", "MENG, YANG QIAO (CHN)", "ANTHONY DREVET (CHN)", "RANTALA, JUHA (CHN)", "DERENTHAL, MARC-JEAN (CHN)", "ZHANG, XIONGFEI (CHN)", "ZHONG, CHONGCHENG (CHN)" ], "yaxis": "y", "type": "bar" } ], "layout": { "template": { "data": { "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "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 ], "title": { "text": "Number of co-patents" }, "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "yaxis": { "anchor": "x", "domain": [ 0.0, 1.0 ], "title": { "text": "Name" }, "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside", "tickfont": { "size": 10 } }, "legend": { "title": { "text": "Country type" }, "tracegroupgap": 0 }, "margin": { "t": 60 }, "barmode": "relative", "font": { "family": "Montserrat", "size": 12 }, "yaxis2": { "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "yaxis3": { "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "uniformtext": { "minsize": 10 } }, "config": { "plotlyServerURL": "https://plotly.com" } }, "text/html": "
" }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "data": [ { "alignmentgroup": "True", "hovertemplate": "Country type=China
Number of co-patents=%{x}
Name=%{y}", "legendgroup": "China", "marker": { "color": "#EF553B", "pattern": { "shape": "" } }, "name": "China", "offsetgroup": "China", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 252, 90, 80, 68, 15, 13, 10, 10, 9, 8, 8, 7, 7, 5, 4 ], "xaxis": "x", "y": [ "NINGBO GEELY AUTOMOBILE R&D CO LTD (CHN)", "TCL COMM LTD (CHN)", "HUAWEI TECH CO LTD (CHN)", "ZHEJIANG GEELY HOLDINGGROUP CO LTD (CHN)", "ZHEJIANG GEELY HOLDING GROUP CO., LTD (CHN)", "CRRC QINGDAO SIFANG CO LTD (CHN)", "CNBM BENGBU DESIGN & RESEARCH INSTITUTE FOR GLASS IND CO LTD (CHN)", "BEIJING XIAOMI MOBILE SOFTWARE CO LTD (CHN)", "ZF DRIVETECH SUZHOU CO LTD (CHN)", "VENUS MEDTECH HANGZHOU INC (CHN)", "ZHANGJIAGANG KANGDE XIN OPTRONICS MATERIAL CO LTD (CHN)", "SHENZHEN GOODIX TECH CO LTD (CHN)", "NOKIA SHANGHAI BELL CO LTD (CHN)", "KEIPER SEATING MECHANISMS CO LTD (CHN)", "GOODIX TECH HK CO LTD (CHN)" ], "yaxis": "y", "type": "bar" } ], "layout": { "template": { "data": { "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "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 ], "title": { "text": "Number of co-patents" }, "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "yaxis": { "anchor": "x", "domain": [ 0.0, 1.0 ], "title": { "text": "Name" }, "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside", "tickfont": { "size": 10 } }, "legend": { "title": { "text": "Country type" }, "tracegroupgap": 0 }, "margin": { "t": 60 }, "barmode": "relative", "font": { "family": "Montserrat", "size": 12 }, "yaxis2": { "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "yaxis3": { "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "uniformtext": { "minsize": 10 } }, "config": { "displayModeBar": false, "responsive": true, "plotlyServerURL": "https://plotly.com" } }, "text/html": "
" }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "data": [ { "alignmentgroup": "True", "hovertemplate": "Country type=China
Number of co-patents=%{x}
Name=%{y}", "legendgroup": "China", "marker": { "color": "#EF553B", "pattern": { "shape": "" } }, "name": "China", "offsetgroup": "China", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 252, 90, 80, 68, 15, 13, 10, 10, 9, 8, 8, 7, 7, 5, 4 ], "xaxis": "x", "y": [ "NINGBO GEELY AUTOMOBILE R&D CO LTD (CHN)", "TCL COMM LTD (CHN)", "HUAWEI TECH CO LTD (CHN)", "ZHEJIANG GEELY HOLDINGGROUP CO LTD (CHN)", "ZHEJIANG GEELY HOLDING GROUP CO., LTD (CHN)", "CRRC QINGDAO SIFANG CO LTD (CHN)", "CNBM BENGBU DESIGN & RESEARCH INSTITUTE FOR GLASS IND CO LTD (CHN)", "BEIJING XIAOMI MOBILE SOFTWARE CO LTD (CHN)", "ZF DRIVETECH SUZHOU CO LTD (CHN)", "VENUS MEDTECH HANGZHOU INC (CHN)", "ZHANGJIAGANG KANGDE XIN OPTRONICS MATERIAL CO LTD (CHN)", "SHENZHEN GOODIX TECH CO LTD (CHN)", "NOKIA SHANGHAI BELL CO LTD (CHN)", "KEIPER SEATING MECHANISMS CO LTD (CHN)", "GOODIX TECH HK CO LTD (CHN)" ], "yaxis": "y", "type": "bar" } ], "layout": { "template": { "data": { "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "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 ], "title": { "text": "Number of co-patents" }, "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "yaxis": { "anchor": "x", "domain": [ 0.0, 1.0 ], "title": { "text": "Name" }, "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside", "tickfont": { "size": 10 } }, "legend": { "title": { "text": "Country type" }, "tracegroupgap": 0 }, "margin": { "t": 60 }, "barmode": "relative", "font": { "family": "Montserrat", "size": 12 }, "yaxis2": { "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "yaxis3": { "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "uniformtext": { "minsize": 10 } }, "config": { "plotlyServerURL": "https://plotly.com" } }, "text/html": "
" }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "data": [ { "alignmentgroup": "True", "hovertemplate": "Country type=EU
Number of co-patents=%{x}
Name=%{y}", "legendgroup": "EU", "marker": { "color": "#636EFA", "pattern": { "shape": "" } }, "name": "EU", "offsetgroup": "EU", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 38, 26, 22, 20, 18, 18, 16, 16, 15, 13, 13, 13, 12, 12, 12 ], "xaxis": "x", "y": [ "NILSSON, MAGNUS (SWE)", "JOHANSSON, JONATHAN (SWE)", "UMER SALIM (FRA)", "GUANG LIU (FRA)", "BENNY ASSOULINE (FRA)", "OLIVIER MARCO (FRA)", "LINDBERG NILSSON, ERIK (SWE)", "EFSTATHIOS KATRANARAS (FRA)", "BRUNO JECHOUX (FRA)", "HUFENBACH, WERNER (DEU)", "ULBRICHT ANDREAS (DEU)", "ROY RON (FRA)", "SETTERBERG, JOHAN (SWE)", "SEEMANN, FRANK (DEU)", "BORNTRÄGER, KAI (DEU)" ], "yaxis": "y", "type": "bar" } ], "layout": { "template": { "data": { "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "xaxis": { "anchor": "y", "domain": [ 0.0, 1.0 ], "title": { "text": "Number of co-patents" }, "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "yaxis": { "anchor": "x", "domain": [ 0.0, 1.0 ], "title": { "text": "Name" }, "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside", "tickfont": { "size": 10 } }, "legend": { "title": { "text": "Country type" }, "tracegroupgap": 0 }, "margin": { "t": 60 }, "barmode": "relative", "font": { "family": "Montserrat", "size": 12 }, "yaxis2": { "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "yaxis3": { "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "uniformtext": { "minsize": 10 } }, "config": { "displayModeBar": false, "responsive": true, "plotlyServerURL": "https://plotly.com" } }, "text/html": "
" }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "data": [ { "alignmentgroup": "True", "hovertemplate": "Country type=EU
Number of co-patents=%{x}
Name=%{y}", "legendgroup": "EU", "marker": { "color": "#636EFA", "pattern": { "shape": "" } }, "name": "EU", "offsetgroup": "EU", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 38, 26, 22, 20, 18, 18, 16, 16, 15, 13, 13, 13, 12, 12, 12 ], "xaxis": "x", "y": [ "NILSSON, MAGNUS (SWE)", "JOHANSSON, JONATHAN (SWE)", "UMER SALIM (FRA)", "GUANG LIU (FRA)", "BENNY ASSOULINE (FRA)", "OLIVIER MARCO (FRA)", "LINDBERG NILSSON, ERIK (SWE)", "EFSTATHIOS KATRANARAS (FRA)", "BRUNO JECHOUX (FRA)", "HUFENBACH, WERNER (DEU)", "ULBRICHT ANDREAS (DEU)", "ROY RON (FRA)", "SETTERBERG, JOHAN (SWE)", "SEEMANN, FRANK (DEU)", "BORNTRÄGER, KAI (DEU)" ], "yaxis": "y", "type": "bar" } ], "layout": { "template": { "data": { "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "xaxis": { "anchor": "y", "domain": [ 0.0, 1.0 ], "title": { "text": "Number of co-patents" }, "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "yaxis": { "anchor": "x", "domain": [ 0.0, 1.0 ], "title": { "text": "Name" }, "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside", "tickfont": { "size": 10 } }, "legend": { "title": { "text": "Country type" }, "tracegroupgap": 0 }, "margin": { "t": 60 }, "barmode": "relative", "font": { "family": "Montserrat", "size": 12 }, "yaxis2": { "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "yaxis3": { "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "uniformtext": { "minsize": 10 } }, "config": { "plotlyServerURL": "https://plotly.com" } }, "text/html": "
" }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "data": [ { "alignmentgroup": "True", "hovertemplate": "Country type=EU
Number of co-patents=%{x}
Name=%{y}", "legendgroup": "EU", "marker": { "color": "#636EFA", "pattern": { "shape": "" } }, "name": "EU", "offsetgroup": "EU", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 39, 24, 23, 14, 13, 13, 12, 11, 9, 9, 9, 8, 6, 6, 5 ], "xaxis": "x", "y": [ "ROBERT BOSCH GMBH (DEU)", "ARKEMA FR (FRA)", "CNRS (FRA)", "ZF FRIEDRICHSHAFEN AG (DEU)", "CG RAIL CHINESISCH DEUTSCHES FORSCHUNGS & ENTWICKLUNGSZENTRUM FUR BAHN & VERKEHRSTECHNIK DRESDEN GMBH (DEU)", "SIEMENS AG (DEU)", "BAYERISCHE MOTOREN WERKE AG (DEU)", "L OREAL (FRA)", "SEB SA (FRA)", "SEW EURODRIVE GMBH & CO KG (DEU)", "SCHAEFFLER TECH AG&CO KG (DEU)", "BOSTIK SA (FRA)", "BASF SE (DEU)", "BSH HAUSGERATE GMBH (DEU)", "TELEFONICA SA (ESP)" ], "yaxis": "y", "type": "bar" } ], "layout": { "template": { "data": { "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "xaxis": { "anchor": "y", "domain": [ 0.0, 1.0 ], "title": { "text": "Number of co-patents" }, "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "yaxis": { "anchor": "x", "domain": [ 0.0, 1.0 ], "title": { "text": "Name" }, "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside", "tickfont": { "size": 10 } }, "legend": { "title": { "text": "Country type" }, "tracegroupgap": 0 }, "margin": { "t": 60 }, "barmode": "relative", "font": { "family": "Montserrat", "size": 12 }, "yaxis2": { "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "yaxis3": { "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "uniformtext": { "minsize": 10 } }, "config": { "displayModeBar": false, "responsive": true, "plotlyServerURL": "https://plotly.com" } }, "text/html": "
" }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "data": [ { "alignmentgroup": "True", "hovertemplate": "Country type=EU
Number of co-patents=%{x}
Name=%{y}", "legendgroup": "EU", "marker": { "color": "#636EFA", "pattern": { "shape": "" } }, "name": "EU", "offsetgroup": "EU", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 39, 24, 23, 14, 13, 13, 12, 11, 9, 9, 9, 8, 6, 6, 5 ], "xaxis": "x", "y": [ "ROBERT BOSCH GMBH (DEU)", "ARKEMA FR (FRA)", "CNRS (FRA)", "ZF FRIEDRICHSHAFEN AG (DEU)", "CG RAIL CHINESISCH DEUTSCHES FORSCHUNGS & ENTWICKLUNGSZENTRUM FUR BAHN & VERKEHRSTECHNIK DRESDEN GMBH (DEU)", "SIEMENS AG (DEU)", "BAYERISCHE MOTOREN WERKE AG (DEU)", "L OREAL (FRA)", "SEB SA (FRA)", "SEW EURODRIVE GMBH & CO KG (DEU)", "SCHAEFFLER TECH AG&CO KG (DEU)", "BOSTIK SA (FRA)", "BASF SE (DEU)", "BSH HAUSGERATE GMBH (DEU)", "TELEFONICA SA (ESP)" ], "yaxis": "y", "type": "bar" } ], "layout": { "template": { "data": { "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "xaxis": { "anchor": "y", "domain": [ 0.0, 1.0 ], "title": { "text": "Number of co-patents" }, "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "yaxis": { "anchor": "x", "domain": [ 0.0, 1.0 ], "title": { "text": "Name" }, "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside", "tickfont": { "size": 10 } }, "legend": { "title": { "text": "Country type" }, "tracegroupgap": 0 }, "margin": { "t": 60 }, "barmode": "relative", "font": { "family": "Montserrat", "size": 12 }, "yaxis2": { "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "yaxis3": { "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "uniformtext": { "minsize": 10 } }, "config": { "plotlyServerURL": "https://plotly.com" } }, "text/html": "
" }, "metadata": {}, "output_type": "display_data" } ], "source": [ "color_discrete_map= {'China': '#EF553B',\n", " 'EU': '#636EFA',\n", " 'Non-EU associate': '#00CC96',\n", " 'EPO':'#9F2B68'}\n", "\n", "labeld_dict = dict({\n", " record_col: 'Number of co-patents',\n", " \"person_ctry_type\": \"Country type\",\n", " \"han_label\": \"Name\",\n", " \"Country_Type\":\"Country type\",\n", " \"Eurovoc_Class\":\"Region\"\n", " },**c_dict)\n", "\n", "for ctry in [\"China\",'EU']:\n", " ctry_subset = appln_pers_f[appln_pers_f[\"person_ctry_type\"].str.contains(ctry)]\n", " for role in [\"invt\",\"applt\"]:\n", " pers_sub = ctry_subset[ctry_subset[role+\"_seq_nr\"]!=0]\n", " data = (pers_sub\n", " .groupby([\"han_id\",'han_name'],as_index=False)\n", " .agg({'appln_id': 'nunique', 'person_ctry_ISO3': 'first',\"person_ctry_type\":\"first\"})\n", " .sort_values(by=\"appln_id\", ascending=False)\n", " .head(15))\n", " data[\"han_label\"] = data[\"han_name\"].str.upper().str.strip(\".\")+ \" (\"+data[\"person_ctry_ISO3\"]+\")\"\n", "\n", " fig = px.bar(data, x=record_col, y=\"han_label\", color=\"person_ctry_type\",\n", " color_discrete_map=color_discrete_map,text_auto=True,labels=labeld_dict)\n", " fig.update_layout(font_family=\"Montserrat\",\n", " yaxis={'categoryorder':'total ascending'})\n", "\n", " figsuper = fig\n", " figsuper.update_layout(yaxis={'categoryorder':'total ascending'}, barmode='relative',yaxis2={'categoryorder':'total ascending'},yaxis3={'categoryorder':'total ascending'})\n", " figsuper.update_yaxes(\n", " showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n", " ticks=\"outside\")\n", " figsuper.update_xaxes(\n", " showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n", " ticks=\"outside\")\n", " figsuper.update_layout({'template':\"plotly\",\"font_family\":\"Montserrat\"})\n", "\n", " figsuper['layout'][\"font\"][\"size\"]=12\n", " for a in figsuper['layout'][\"annotations\"]:\n", " a[\"font\"][\"size\"] = 14\n", " figsuper[\"layout\"][\"yaxis\"][\"tickfont\"][\"size\"] = 10\n", "\n", " figsuper.update_layout(uniformtext_minsize=10)\n", "\n", " figsuper.show(config= dict(displayModeBar = False, responsive = True))\n", "\n", " figsuper.show()" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 140, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "data": [ { "alignmentgroup": "True", "hovertemplate": "Country type=EU
Percent of related co-patents=%{x}
Country=%{y}", "legendgroup": "EU", "marker": { "color": "#636EFA", "pattern": { "shape": "" } }, "name": "EU", "offsetgroup": "EU", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 0.026192703461178673, 0.027128157156220765, 0.005612722170252572, 0.0037418147801683817, 0.01216089803554724, 0.21889616463985032, 0.333021515434986, 0.0018709073900841909, 0.002806361085126286, 9.354536950420954E-4, 0.0205799812909261, 9.354536950420954E-4, 0.023386342376052385, 0.0037418147801683817, 9.354536950420954E-4, 9.354536950420954E-4, 0.025257249766136577, 0.25631431244153413 ], "xaxis": "x", "y": [ "Austria", "Belgium", "Czech Republic", "Denmark", "Finland", "France", "Germany", "Greece", "Hungary", "Ireland", "Italy", "Luxembourg", "Netherlands", "Poland", "Portugal", "Romania", "Spain", "Sweden" ], "yaxis": "y", "type": "bar" }, { "alignmentgroup": "True", "hovertemplate": "Country type=China
Percent of related co-patents=%{x}
Country=%{y}", "legendgroup": "China", "marker": { "color": "#EF553B", "pattern": { "shape": "" } }, "name": "China", "offsetgroup": "China", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 0.5116931711880262 ], "xaxis": "x", "y": [ "China" ], "yaxis": "y", "type": "bar" }, { "alignmentgroup": "True", "hovertemplate": "Country type=Non-EU associate
Percent of related co-patents=%{x}
Country=%{y}", "legendgroup": "Non-EU associate", "marker": { "color": "#00CC96", "pattern": { "shape": "" } }, "name": "Non-EU associate", "offsetgroup": "Non-EU associate", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 9.354536950420954E-4, 0.01028999064546305 ], "xaxis": "x", "y": [ "Norway", "Switzerland" ], "yaxis": "y", "type": "bar" } ], "layout": { "template": { "data": { "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "xaxis": { "anchor": "y", "domain": [ 0.0, 1.0 ], "title": { "text": "Percent of related co-patents" }, "tickformat": ".1%", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "yaxis": { "anchor": "x", "domain": [ 0.0, 1.0 ], "title": { "text": "Country" }, "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside", "tickfont": { "size": 10 } }, "legend": { "title": { "text": "Country type" }, "tracegroupgap": 0 }, "margin": { "t": 60 }, "barmode": "relative", "font": { "family": "Montserrat", "size": 12 }, "yaxis2": { "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "yaxis3": { "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "uniformtext": { "minsize": 10 } }, "config": { "plotlyServerURL": "https://plotly.com" } }, "text/html": "
" }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "data": [ { "alignmentgroup": "True", "hovertemplate": "Country type=EU
Percent of related co-patents=%{x}
Country=%{y}", "legendgroup": "EU", "marker": { "color": "#636EFA", "pattern": { "shape": "" } }, "name": "EU", "offsetgroup": "EU", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 0.0036900369003690036, 0.007380073800738007, 9.225092250922509E-4, 0.0027675276752767526, 0.0018450184501845018, 0.012915129151291513, 0.14206642066420663, 0.24538745387453875, 0.004612546125461255, 0.004612546125461255, 0.0036900369003690036, 0.01107011070110701, 9.225092250922509E-4, 0.02029520295202952, 0.00922509225092251 ], "xaxis": "x", "y": [ "Austria", "Belgium", "Cyprus", "Czech Republic", "Denmark", "Finland", "France", "Germany", "Ireland", "Italy", "Luxembourg", "Netherlands", "Portugal", "Spain", "Sweden" ], "yaxis": "y", "type": "bar" }, { "alignmentgroup": "True", "hovertemplate": "Country type=China
Percent of related co-patents=%{x}
Country=%{y}", "legendgroup": "China", "marker": { "color": "#EF553B", "pattern": { "shape": "" } }, "name": "China", "offsetgroup": "China", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 0.5784132841328413 ], "xaxis": "x", "y": [ "China" ], "yaxis": "y", "type": "bar" }, { "alignmentgroup": "True", "hovertemplate": "Country type=Non-EU associate
Percent of related co-patents=%{x}
Country=%{y}", "legendgroup": "Non-EU associate", "marker": { "color": "#00CC96", "pattern": { "shape": "" } }, "name": "Non-EU associate", "offsetgroup": "Non-EU associate", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 9.225092250922509E-4, 0.017527675276752766 ], "xaxis": "x", "y": [ "Norway", "Switzerland" ], "yaxis": "y", "type": "bar" } ], "layout": { "template": { "data": { "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "xaxis": { "anchor": "y", "domain": [ 0.0, 1.0 ], "title": { "text": "Percent of related co-patents" }, "tickformat": ".1%", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "yaxis": { "anchor": "x", "domain": [ 0.0, 1.0 ], "title": { "text": "Country" }, "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside", "tickfont": { "size": 10 } }, "legend": { "title": { "text": "Country type" }, "tracegroupgap": 0 }, "margin": { "t": 60 }, "barmode": "relative", "font": { "family": "Montserrat", "size": 12 }, "yaxis2": { "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "yaxis3": { "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "uniformtext": { "minsize": 10 } }, "config": { "plotlyServerURL": "https://plotly.com" } }, "text/html": "
" }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "data": [ { "alignmentgroup": "True", "hovertemplate": "Authority type=EU
Percent of related co-patents=%{x}
Authority=%{y}", "legendgroup": "EU", "marker": { "color": "#636EFA", "pattern": { "shape": "" } }, "name": "EU", "offsetgroup": "EU", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 0.00985663082437276, 0.0017921146953405018, 0.0035842293906810036, 0.004480286738351254, 0.013440860215053764, 0.10215053763440861, 0.22401433691756273, 0.004480286738351254, 0.024193548387096774, 8.960573476702509E-4, 0.014336917562724014, 0.0062724014336917565 ], "xaxis": "x", "y": [ "Austria", "Belgium", "Czech Republic", "Denmark", "Finland", "France", "Germany", "Luxembourg", "Netherlands", "Portugal", "Spain", "Sweden" ], "yaxis": "y", "type": "bar" }, { "alignmentgroup": "True", "hovertemplate": "Authority type=China
Percent of related co-patents=%{x}
Authority=%{y}", "legendgroup": "China", "marker": { "color": "#EF553B", "pattern": { "shape": "" } }, "name": "China", "offsetgroup": "China", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 0.002688172043010753 ], "xaxis": "x", "y": [ "China" ], "yaxis": "y", "type": "bar" }, { "alignmentgroup": "True", "hovertemplate": "Authority type=EPO
Percent of related co-patents=%{x}
Authority=%{y}", "legendgroup": "EPO", "marker": { "color": "#7F00FF", "pattern": { "shape": "" } }, "name": "EPO", "offsetgroup": "EPO", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 0.471326164874552 ], "xaxis": "x", "y": [ "European Patent Office" ], "yaxis": "y", "type": "bar" }, { "alignmentgroup": "True", "hovertemplate": "Authority type=Non-EU associate
Percent of related co-patents=%{x}
Authority=%{y}", "legendgroup": "Non-EU associate", "marker": { "color": "#00CC96", "pattern": { "shape": "" } }, "name": "Non-EU associate", "offsetgroup": "Non-EU associate", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 0.11648745519713262 ], "xaxis": "x", "y": [ "United Kingdom" ], "yaxis": "y", "type": "bar" } ], "layout": { "template": { "data": { "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "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 ], "title": { "text": "Percent of related co-patents" }, "tickformat": ".1%", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "yaxis": { "anchor": "x", "domain": [ 0.0, 1.0 ], "title": { "text": "Authority" }, "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside", "tickfont": { "size": 10 } }, "legend": { "title": { "text": "Authority type" }, "tracegroupgap": 0 }, "margin": { "t": 60 }, "barmode": "relative", "font": { "family": "Montserrat", "size": 12 }, "yaxis2": { "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "yaxis3": { "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside" }, "uniformtext": { "minsize": 10 } }, "config": { "plotlyServerURL": "https://plotly.com" } }, "text/html": "
" }, "metadata": {}, "output_type": "display_data" } ], "source": [ "# percent of publications related to\n", "# -authority country\n", "# -inventor country\n", "# -applicant country\n", "\n", "color_discrete_map= {'China': '#EF553B',\n", " 'EU': '#636EFA',\n", " 'Non-EU associate': '#00CC96',\n", " 'EPO':'#7F00FF'}#CC8899\n", "\n", "c_dict = {\"count\":\"Number of co-publications\",\n", " \"percent_of_copubs\":\"Percent of co-publications\",\n", " \"percent_contrib_in_copubs\":\"Contribution to co-publications\"}\n", "\n", "labeld_dict = dict({\n", " record_col+\"_percent\": 'Percent of related co-patents',\n", " \"person_ctry_code_fullname\": \"Country\",\n", " \"person_ctry_type\": \"Country type\",\n", " \"appln_auth_fullname\": \"Authority\",\n", " \"auth_ctry_type\": \"Authority type\",\n", " \"Country_Type\":\"Country type\",\n", " \"Eurovoc_Class\":\"Region\"\n", " },**c_dict)\n", "\n", "for c in [\"person_ctry_code\",\"appln_auth\"]:\n", " pers_sub = appln_pers_f\n", " if c == \"person_ctry_code\":\n", " for role in [\"invt\",\"applt\"]:\n", " pers_sub = appln_pers_f[appln_pers_f[role+\"_seq_nr\"]!=0]\n", "\n", " data = (pers_sub.groupby(c+\"_fullname\",as_index=False).agg({'appln_id': 'nunique', 'person_ctry_ISO3': 'first',\"person_ctry_type\":\"first\"}))\n", " data[record_col+\"_percent\"] = data[record_col]/pers_sub[record_col].nunique()\n", " fig = px.bar(data, x=record_col+\"_percent\", y=c+\"_fullname\",color_discrete_map=color_discrete_map,text_auto=True,color=\"person_ctry_type\",\n", " labels = labeld_dict)\n", " fig.update_layout(xaxis_tickformat='.1%',font_family=\"Montserrat\",\n", " yaxis={'categoryorder':'total ascending'},)\n", " figsuper = fig\n", " figsuper.update_layout(yaxis={'categoryorder':'total ascending'}, barmode='relative',yaxis2={'categoryorder':'total ascending'},yaxis3={'categoryorder':'total ascending'})\n", " figsuper.update_yaxes(\n", " showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n", " ticks=\"outside\")\n", " figsuper.update_xaxes(\n", " showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n", " ticks=\"outside\")\n", " figsuper.update_layout({'template':\"plotly\",\"font_family\":\"Montserrat\"})\n", "\n", " figsuper['layout'][\"font\"][\"size\"]=12\n", " for a in figsuper['layout'][\"annotations\"]:\n", " a[\"font\"][\"size\"] = 14\n", " figsuper[\"layout\"][\"yaxis\"][\"tickfont\"][\"size\"] = 10\n", "\n", " figsuper.update_layout(uniformtext_minsize=10)\n", " figsuper.show()\n", " else:\n", " data = pers_sub.groupby(c+\"_fullname\",as_index=False).agg({'appln_id': 'nunique', 'auth_ISO3': 'first',\"auth_ctry_type\":\"first\"})\n", " data[record_col+\"_percent\"] = data[record_col]/pers_sub[record_col].nunique()\n", " fig = px.bar(data, x=record_col+\"_percent\", y=c+\"_fullname\",color_discrete_map=color_discrete_map,text_auto=True,color=\"auth_ctry_type\",\n", " labels = labeld_dict)\n", " fig.update_layout(xaxis_tickformat='.1%',font_family=\"Montserrat\",\n", " yaxis={'categoryorder':'total ascending'},)\n", " figsuper = fig\n", " figsuper.update_layout(yaxis={'categoryorder':'total ascending'}, barmode='relative',yaxis2={'categoryorder':'total ascending'},yaxis3={'categoryorder':'total ascending'})\n", " figsuper.update_yaxes(\n", " showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n", " ticks=\"outside\")\n", " figsuper.update_xaxes(\n", " showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n", " ticks=\"outside\")\n", " figsuper.update_layout({'template':\"plotly\",\"font_family\":\"Montserrat\"})\n", "\n", " figsuper['layout'][\"font\"][\"size\"]=12\n", " for a in figsuper['layout'][\"annotations\"]:\n", " a[\"font\"][\"size\"] = 14\n", " figsuper[\"layout\"][\"yaxis\"][\"tickfont\"][\"size\"] = 10\n", "\n", " figsuper.update_layout(uniformtext_minsize=10)\n", " figsuper.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 \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 \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 \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 \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 \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 \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 \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 \n \n \n \n \n
appln_authappln_idappln_id_percent
0AT60160.009362
1BE17720.002758
2BG2290.000356
3CH19260.002997
4CN3046540.474115
5CZ13730.002137
6DE1240350.193028
7DK14800.002303
8EE460.000072
9EP540820.084165
10ES84840.013203
11FI47190.007344
12FR573910.089314
13GB510690.079476
14GR5150.000801
15HR1350.000210
16HU8070.001256
17IE700.000109
18IT55350.008614
19LT580.000090
20LU10540.001640
21LV600.000093
22MA3630.000565
23NL73770.011480
24PL18540.002885
25PT3850.000599
26RO2350.000366
27SE62070.009660
28SI4300.000669
29SK2130.000331
\n
" }, "execution_count": 126, "metadata": {}, "output_type": "execute_result" } ], "source": [ "data" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": null, "outputs": [], "source": [], "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": null, "outputs": [], "source": [], "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 \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 \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 \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 \n \n \n \n \n \n \n
person_idpsn_sectorhan_idhan_name
26949548715290COMPANY148715290TECHFLOW MARINE LIMITED
22540145096499GOV NON-PROFIT986555FUNDACIO INSTITUT CATALA D INVESTIGACIO QUIMIC...
42648458455492NaN158455492DING ZHIJIAO
5080515325724INDIVIDUAL115325724FOURNIER, THIERRY
11250328064269NaN128064269ADRIAN WALLER
...............
46470859491689NaN159491689LIU YANZHI
16995042286280INDIVIDUAL4099527RIEMANN STEFAN
48567960214508NaN160214508WAN BO
54221062188978NaN162188978CHU WEI
75213681407527NaN181407527GARCIA MONSONIS, Javier
\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": 80, "outputs": [ { "data": { "text/plain": " appln_id appln_auth appln_kind filing_year nb_applicants \n1322402 523940692 EP A 2019 2 \\\n765767 476494118 EP A 2017 1 \n34130 378211797 DE U 2011 1 \n789796 480385078 GB A 2017 1 \n701348 451567585 NL A 2016 1 \n... ... ... ... ... ... \n1361812 536054394 EP A 2020 1 \n242632 424885398 DE A 2013 1 \n1108772 503145148 EP A 2018 1 \n538788 447597102 EP A 2015 1 \n272481 412013115 EP A 2013 1 \n\n nb_inventors ipc_class_symbol ipc_class_level cpc_id \n1322402 2 B60W 50/14 A B60W50/14 \\\n765767 4 B60H 1/34 A B60H1/34 \n34130 0 F04B 17/04 A F04B17/04 \n789796 2 H04W 76/14 A H04W76/14 \n701348 3 E04F 13/077 A E04F13/077 \n... ... ... ... ... \n1361812 4 G05B 23/02 A G05B23/02 \n242632 1 F02M 51/06 A F02M51/06 \n1108772 2 G08G 1/01 A G08G1/01 \n538788 6 H01F 38/30 A H01F38/30 \n272481 3 C04B 28/04 A C04B28/04 \n\n ipc_class ipc_classname \n1322402 B-Operations; transporting Operations; transporting \n765767 B-Operations; transporting Operations; transporting \n34130 F-Engineering Engineering \n789796 H-Electricity Electricity \n701348 E-Fixed constructions Fixed constructions \n... ... ... \n1361812 G-Physics Physics \n242632 F-Engineering Engineering \n1108772 G-Physics Physics \n538788 H-Electricity Electricity \n272481 C-Chemistry; metallurgy Chemistry; metallurgy \n\n[100 rows x 11 columns]", "text/html": "
\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 \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 \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 \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 \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 \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 \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
appln_idappln_authappln_kindfiling_yearnb_applicantsnb_inventorsipc_class_symbolipc_class_levelcpc_idipc_classipc_classname
1322402523940692EPA201922B60W 50/14AB60W50/14B-Operations; transportingOperations; transporting
765767476494118EPA201714B60H 1/34AB60H1/34B-Operations; transportingOperations; transporting
34130378211797DEU201110F04B 17/04AF04B17/04F-EngineeringEngineering
789796480385078GBA201712H04W 76/14AH04W76/14H-ElectricityElectricity
701348451567585NLA201613E04F 13/077AE04F13/077E-Fixed constructionsFixed constructions
....................................
1361812536054394EPA202014G05B 23/02AG05B23/02G-PhysicsPhysics
242632424885398DEA201311F02M 51/06AF02M51/06F-EngineeringEngineering
1108772503145148EPA201812G08G 1/01AG08G1/01G-PhysicsPhysics
538788447597102EPA201516H01F 38/30AH01F38/30H-ElectricityElectricity
272481412013115EPA201313C04B 28/04AC04B28/04C-Chemistry; metallurgyChemistry; metallurgy
\n

100 rows × 11 columns

\n
" }, "execution_count": 80, "metadata": {}, "output_type": "execute_result" } ], "source": [ "appln_ipc_f = pd.read_csv(f\"{fromdir}/first-filings-with-IPC-raw.csv\", header=None,\n", " names=[\"appln_id\",\"appln_auth\",\"appln_kind\",\"filing_year\",\"nb_applicants\",'nb_inventors',\n", " 'ipc_class_symbol','ipc_class_level'])\n", "\n", "appln_ipc_f = appln_ipc_f[appln_ipc_f[\"filing_year\"]>2010]\n", "appln_ipc_f = appln_ipc_f[appln_ipc_f[\"appln_id\"].isin(appln_f[\"appln_id\"])]\n", "\n", "appln_ipc_f[\"cpc_id\"] = appln_ipc_f[\"ipc_class_symbol\"].str.replace(\" \",\"\")\n", "appln_ipc_f[\"ipc_class\"] = appln_ipc_f[\"ipc_class_symbol\"].str.replace(\" \",\"\").str[0]\n", "appln_ipc_f[\"ipc_classname\"] = appln_ipc_f[\"ipc_class\"].replace({\"A\":\"Human necessities\",\n", " \"B\":\"Performing operations; transporting\",\n", " \"B\":\"Operations; transporting\",\n", " \"C\":\"Chemistry; metallurgy\",\n", " \"D\":\"Textiles; paper\",\n", " \"E\":\"Fixed constructions\",\n", " \"F\":\"Mechanical engineering; lightning; heating; weapons; blasting\",\n", " \"F\":\"Engineering\",\n", " \"G\":\"Physics\",\n", " \"H\":\"Electricity\"})\n", "\n", "appln_ipc_f[\"ipc_class\"] = appln_ipc_f[\"ipc_class\"]+\"-\"+appln_ipc_f[\"ipc_classname\"]\n", "appln_ipc_f.sample(100)" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 81, "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": 82, "outputs": [ { "data": { "text/plain": " filing_year ipc_class appln_id filing_year_relative_growth \n0 2011 A-Human necessities 7.0 2011 \\\n1 2012 A-Human necessities 5.0 2011 \n2 2013 A-Human necessities 18.0 2011 \n3 2014 A-Human necessities 9.0 2011 \n4 2015 A-Human necessities 10.0 2011 \n.. ... ... ... ... \n83 2017 H-Electricity 71.0 2011 \n84 2018 H-Electricity 65.0 2011 \n85 2019 H-Electricity 27.0 2011 \n86 2020 H-Electricity 27.0 2011 \n87 2021 H-Electricity 11.0 2011 \n\n appln_id_relative_growth appln_id_cumsum \n0 0.000000 7.0 \n1 -0.285714 12.0 \n2 1.571429 30.0 \n3 0.285714 39.0 \n4 0.428571 49.0 \n.. ... ... \n83 3.437500 213.0 \n84 3.062500 278.0 \n85 0.687500 305.0 \n86 0.687500 332.0 \n87 -0.312500 343.0 \n\n[88 rows x 6 columns]", "text/html": "
\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 \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 \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 \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 \n \n \n \n \n \n \n \n \n \n \n
filing_yearipc_classappln_idfiling_year_relative_growthappln_id_relative_growthappln_id_cumsum
02011A-Human necessities7.020110.0000007.0
12012A-Human necessities5.02011-0.28571412.0
22013A-Human necessities18.020111.57142930.0
32014A-Human necessities9.020110.28571439.0
42015A-Human necessities10.020110.42857149.0
.....................
832017H-Electricity71.020113.437500213.0
842018H-Electricity65.020113.062500278.0
852019H-Electricity27.020110.687500305.0
862020H-Electricity27.020110.687500332.0
872021H-Electricity11.02011-0.312500343.0
\n

88 rows × 6 columns

\n
" }, "execution_count": 82, "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": 83, "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": 87, "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": [ 108 ], "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": [ 357 ], "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": [ 150 ], "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": [ 15 ], "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": [ 50 ], "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": [ 155 ], "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": [ 248 ], "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": [ 343 ], "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 ], "xaxis": "x2", "y": [ 7.0, 12.0, 30.0, 39.0, 49.0, 60.0, 73.0, 83.0, 98.0, 103.0, 108.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 ], "xaxis": "x2", "y": [ 17.0, 26.0, 47.0, 64.0, 77.0, 97.0, 138.0, 199.0, 272.0, 333.0, 357.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 ], "xaxis": "x2", "y": [ 9.0, 20.0, 34.0, 43.0, 53.0, 63.0, 79.0, 88.0, 114.0, 141.0, 150.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 ], "xaxis": "x2", "y": [ 1.0, 1.0, 1.0, 2.0, 5.0, 6.0, 9.0, 11.0, 13.0, 15.0, 15.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 ], "xaxis": "x2", "y": [ 2.0, 4.0, 4.0, 5.0, 6.0, 10.0, 14.0, 24.0, 31.0, 45.0, 50.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 ], "xaxis": "x2", "y": [ 8.0, 11.0, 28.0, 34.0, 43.0, 51.0, 67.0, 94.0, 122.0, 148.0, 155.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 ], "xaxis": "x2", "y": [ 6.0, 18.0, 30.0, 46.0, 71.0, 89.0, 112.0, 151.0, 198.0, 232.0, 248.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 ], "xaxis": "x2", "y": [ 16.0, 33.0, 44.0, 63.0, 99.0, 142.0, 213.0, 278.0, 305.0, 332.0, 343.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 ], "xaxis": "x3", "y": [ 7.0, 5.0, 18.0, 9.0, 10.0, 11.0, 13.0, 10.0, 15.0, 5.0, 5.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 ], "xaxis": "x3", "y": [ 17.0, 9.0, 21.0, 17.0, 13.0, 20.0, 41.0, 61.0, 73.0, 61.0, 24.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 ], "xaxis": "x3", "y": [ 9.0, 11.0, 14.0, 9.0, 10.0, 10.0, 16.0, 9.0, 26.0, 27.0, 9.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 ], "xaxis": "x3", "y": [ 1.0, 0.0, 0.0, 1.0, 3.0, 1.0, 3.0, 2.0, 2.0, 2.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 ], "xaxis": "x3", "y": [ 2.0, 2.0, 0.0, 1.0, 1.0, 4.0, 4.0, 10.0, 7.0, 14.0, 5.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 ], "xaxis": "x3", "y": [ 8.0, 3.0, 17.0, 6.0, 9.0, 8.0, 16.0, 27.0, 28.0, 26.0, 7.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 ], "xaxis": "x3", "y": [ 6.0, 12.0, 12.0, 16.0, 25.0, 18.0, 23.0, 39.0, 47.0, 34.0, 16.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 ], "xaxis": "x3", "y": [ 16.0, 17.0, 11.0, 19.0, 36.0, 43.0, 71.0, 65.0, 27.0, 27.0, 11.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 ], "xaxis": "x4", "y": [ 0.0, -0.2857142857142857, 1.5714285714285714, 0.2857142857142857, 0.42857142857142855, 0.5714285714285714, 0.8571428571428571, 0.42857142857142855, 1.1428571428571428, -0.2857142857142857, -0.2857142857142857 ], "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 ], "xaxis": "x4", "y": [ 0.0, -0.47058823529411764, 0.23529411764705882, 0.0, -0.23529411764705882, 0.17647058823529413, 1.411764705882353, 2.588235294117647, 3.2941176470588234, 2.588235294117647, 0.4117647058823529 ], "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 ], "xaxis": "x4", "y": [ 0.0, 0.2222222222222222, 0.5555555555555556, 0.0, 0.1111111111111111, 0.1111111111111111, 0.7777777777777778, 0.0, 1.8888888888888888, 2.0, 0.0 ], "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 ], "xaxis": "x4", "y": [ 0.0, -1.0, -1.0, 0.0, 2.0, 0.0, 2.0, 1.0, 1.0, 1.0, -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 ], "xaxis": "x4", "y": [ 0.0, 0.0, -1.0, -0.5, -0.5, 1.0, 1.0, 4.0, 2.5, 6.0, 1.5 ], "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 ], "xaxis": "x4", "y": [ 0.0, -0.625, 1.125, -0.25, 0.125, 0.0, 1.0, 2.375, 2.5, 2.25, -0.125 ], "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 ], "xaxis": "x4", "y": [ 0.0, 1.0, 1.0, 1.6666666666666667, 3.1666666666666665, 2.0, 2.8333333333333335, 5.5, 6.833333333333333, 4.666666666666667, 1.6666666666666667 ], "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 ], "xaxis": "x4", "y": [ 0.0, 0.0625, -0.3125, 0.1875, 1.25, 1.6875, 3.4375, 3.0625, 0.6875, 0.6875, -0.3125 ], "yaxis": "y4", "type": "scatter" } ], "layout": { "template": { "data": { "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "xaxis": { "anchor": "y", "domain": [ 0.0, 0.45 ], "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside", "tickformat": ".0f", "range": [ 0, 400 ] }, "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,400]\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 \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 \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 \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 \n \n \n \n \n \n \n
person_idappln_idapplt_seq_nrinvt_seq_nr
0141360176810
12133201560510
22133349008410
32133590380510
47635290877610
...............
9522041714756710
9622041793295210
9722042071252610
9822042092794710
9922042094763110
\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(scope_countries)).any()|\n", " (gr[\"appln_auth\"].isin(scope_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 }