{ "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": 297, "outputs": [ { "data": { "text/plain": "'C:\\\\Users\\\\radvanyi\\\\PycharmProjects\\\\ZSI_analytics\\\\PATSTAT'" }, "execution_count": 297, "metadata": {}, "output_type": "execute_result" } ], "source": [ "os.getcwd()" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 429, "outputs": [], "source": [ "fromdir=\"first_round\"\n", "\n", "os.makedirs(fr'{fromdir}/plots')" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 392, "outputs": [], "source": [ "appln_pers_f = pd.read_csv(f\"{fromdir}/first-filings-with-persons-raw.csv\", header=None,\n", " names=[\"appln_id\",\"appln_auth\",\"person_id\",\"invt_seq_nr\",\"applt_seq_nr\",'person_name',\"person_ctry_code\"])\n", "\n", "appln_pers_haninfo = pd.read_csv(f\"{outdir}/tls_206_scope.csv\", usecols=[\"person_id\",\"han_id\",\"han_name\",\"psn_sector\"])\n", "\n", "appln_pers_haninfo[\"han_name\"] = appln_pers_haninfo[\"han_name\"].str.replace(\"Zhejiang Geely Holding Group Co., Ltd.\",\n", " \"ZHEJIANG GEELY HOLDINGGROUP CO LTD\")\n", "\n", "\n", "appln_pers_haninfo.loc[appln_pers_haninfo[\"han_name\"]==\"ZHEJIANG GEELY HOLDINGGROUP CO LTD\",\"han_id\"] = 3345915\n", "# appln_pers_haninfo[\"psn_sector\"] = appln_pers_haninfo[\"psn_sector\"].fillna(\"UNKNOWN\")\n", "\n", "appln_pers_f = appln_pers_f.merge(appln_pers_haninfo, on=\"person_id\")" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 393, "outputs": [ { "data": { "text/plain": "han_id\n3345915 6\nName: count, dtype: int64" }, "execution_count": 393, "metadata": {}, "output_type": "execute_result" } ], "source": [ "appln_pers_haninfo[appln_pers_haninfo[\"han_name\"]==\"ZHEJIANG GEELY HOLDINGGROUP CO LTD\"][\"han_id\"].value_counts()" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 394, "outputs": [], "source": [ "pers_sector_primary = pers.groupby(\"han_id\", as_index=False)[\"psn_sector\"].agg(\n", " lambda x: pd.Series.mode(x)[0]).rename(columns={\"psn_sector\":\"psn_sector_primary\"})\n", "appln_pers_f = appln_pers_f.merge(pers_sector_primary, on='han_id')" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 395, "outputs": [], "source": [ "tls_801 = pd.read_csv(r\"./EU_CH_scope/table_tls801.csv\", low_memory=False)\n", "# tls_801.head()\n", "scope_df = tls_801[((tls_801.eu_member==\"Y\")|\n", " (tls_801.ctry_code == 'NO')|\n", " (tls_801.ctry_code == 'CH')|\n", " (tls_801.ctry_code == 'GB'))]\n", "scope_countries = scope_df[\"ctry_code\"].unique()" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 396, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "1055\n" ] } ], "source": [ "\n", "\n", "# appln_ch = appln_pers.groupby(\"appln_id\").filter(lambda gr: ((gr[\"person_ctry_code\"]==\"CN\").any()|\n", "# (gr[\"appln_auth\"]==\"CN\")).any())\n", "# appln_scope = appln_ch.groupby(\"appln_id\").filter(lambda gr: ((gr[\"person_ctry_code\"].isin(scope_countries)).any()|\n", "# (gr[\"appln_auth\"].isin(scope_countries))).any())\n", "\n", "appln_ch = appln_pers_f.groupby(\"appln_id\").filter(lambda gr: (gr[\"person_ctry_code\"]==\"CN\").any())\n", "appln_scope = appln_ch.groupby(\"appln_id\").filter(lambda gr: (gr[\"person_ctry_code\"].isin(scope_countries)).any())\n", "\n", "print(appln_scope[\"appln_id\"].nunique())" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 397, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "1055\n" ] } ], "source": [ "appln_pers_f = appln_scope[appln_scope[\"person_ctry_code\"].isin(list(scope_countries)+[\"CN\"])].copy()\n", "print(appln_pers_f[\"appln_id\"].nunique())" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 398, "outputs": [ { "data": { "text/plain": " appln_id appln_auth person_id invt_seq_nr applt_seq_nr \n76 410448968 DE 7067540 0 1 \\\n87 420386087 DE 7067540 0 1 \n88 420386089 DE 7067540 0 1 \n173 337088926 EP 21790 0 1 \n974 410512383 EP 220 0 1 \n... ... ... ... ... ... \n147073 549690891 EP 85841201 1 0 \n147074 549690895 EP 85841201 1 0 \n147075 549690901 EP 85841201 1 0 \n147076 549690897 EP 85841201 1 0 \n147077 549788919 EP 85774895 2 0 \n\n person_name person_ctry_code psn_sector han_id \n76 Evonik Degussa GmbH DE COMPANY 840063 \\\n87 Evonik Degussa GmbH DE COMPANY 840063 \n88 Evonik Degussa GmbH DE COMPANY 840063 \n173 Evonik Degussa GmbH DE COMPANY 840063 \n974 SIEMENS AKTIENGESELLSCHAFT DE COMPANY 2709504 \n... ... ... ... ... \n147073 JONSSON, Tony SE UNKNOWN 185841201 \n147074 JONSSON, Tony SE UNKNOWN 185841201 \n147075 JONSSON, Tony SE UNKNOWN 185841201 \n147076 JONSSON, Tony SE UNKNOWN 185841201 \n147077 TRAN NGUYEN, Johnny SE UNKNOWN 185774895 \n\n han_name psn_sector_primary \n76 EVONIK DEGUSSA GMBH COMPANY \n87 EVONIK DEGUSSA GMBH COMPANY \n88 EVONIK DEGUSSA GMBH COMPANY \n173 EVONIK DEGUSSA GMBH COMPANY \n974 SIEMENS AG COMPANY \n... ... ... \n147073 JONSSON, Tony UNKNOWN \n147074 JONSSON, Tony UNKNOWN \n147075 JONSSON, Tony UNKNOWN \n147076 JONSSON, Tony UNKNOWN \n147077 TRAN NGUYEN, Johnny UNKNOWN \n\n[4367 rows x 11 columns]", "text/html": "
\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \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_namepsn_sector_primary
76410448968DE706754001Evonik Degussa GmbHDECOMPANY840063EVONIK DEGUSSA GMBHCOMPANY
87420386087DE706754001Evonik Degussa GmbHDECOMPANY840063EVONIK DEGUSSA GMBHCOMPANY
88420386089DE706754001Evonik Degussa GmbHDECOMPANY840063EVONIK DEGUSSA GMBHCOMPANY
173337088926EP2179001Evonik Degussa GmbHDECOMPANY840063EVONIK DEGUSSA GMBHCOMPANY
974410512383EP22001SIEMENS AKTIENGESELLSCHAFTDECOMPANY2709504SIEMENS AGCOMPANY
....................................
147073549690891EP8584120110JONSSON, TonySEUNKNOWN185841201JONSSON, TonyUNKNOWN
147074549690895EP8584120110JONSSON, TonySEUNKNOWN185841201JONSSON, TonyUNKNOWN
147075549690901EP8584120110JONSSON, TonySEUNKNOWN185841201JONSSON, TonyUNKNOWN
147076549690897EP8584120110JONSSON, TonySEUNKNOWN185841201JONSSON, TonyUNKNOWN
147077549788919EP8577489520TRAN NGUYEN, JohnnySEUNKNOWN185774895TRAN NGUYEN, JohnnyUNKNOWN
\n

4367 rows × 11 columns

\n
" }, "execution_count": 398, "metadata": {}, "output_type": "execute_result" } ], "source": [ "appln_pers_f" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 399, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "1055\n" ] }, { "data": { "text/plain": " appln_id appln_auth appln_kind filing_year nb_applicants \n114926 405478585 EP A 2013 1 \\\n670680 532677899 EP A 2020 2 \n568605 520224479 EP A 2019 1 \n441101 483520394 FR A 2017 1 \n687085 554756101 DE A 2020 1 \n... ... ... ... ... ... \n235723 443704166 FR A 2015 3 \n670840 532706785 EP A 2020 2 \n415863 486019755 EP A 2017 1 \n608249 520115105 EP A 2019 1 \n753188 549690895 EP A 2021 2 \n\n nb_inventors \n114926 4 \n670680 2 \n568605 2 \n441101 2 \n687085 3 \n... ... \n235723 3 \n670840 2 \n415863 2 \n608249 4 \n753188 1 \n\n[100 rows x 6 columns]", "text/html": "
\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \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
114926405478585EPA201314
670680532677899EPA202022
568605520224479EPA201912
441101483520394FRA201712
687085554756101DEA202013
.....................
235723443704166FRA201533
670840532706785EPA202022
415863486019755EPA201712
608249520115105EPA201914
753188549690895EPA202121
\n

100 rows × 6 columns

\n
" }, "execution_count": 399, "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": 399, "outputs": [], "source": [], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 399, "outputs": [], "source": [], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 400, "outputs": [ { "data": { "text/plain": "appln_kind\nA 1059\nU 7\nName: count, dtype: int64" }, "execution_count": 400, "metadata": {}, "output_type": "execute_result" } ], "source": [ "appln_f[\"appln_kind\"].value_counts()" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 401, "outputs": [], "source": [ "# Co-patents per year" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 430, "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": [ 48.0, 42.0, 64.0, 58.0, 83.0, 94.0, 148.0, 174.0, 151.0, 135.0, 58.0 ], "textfont": { "size": 12 }, "textposition": "top center", "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x", "y": [ 48, 42, 64, 58, 83, 94, 148, 174, 151, 135, 58 ], "yaxis": "y", "type": "scatter" }, { "hovertemplate": "Year:%{x:d}
Rel.growth in co-publications:%{y:.0%}", "legendgroup": "", "line": { "color": "#636efa", "dash": "solid" }, "marker": { "symbol": "circle" }, "mode": "markers+text+lines", "name": "", "orientation": "v", "showlegend": false, "text": [ 0.0, -0.125, 0.3333333333333333, 0.20833333333333334, 0.7291666666666666, 0.9583333333333334, 2.0833333333333335, 2.625, 2.1458333333333335, 1.8125, 0.20833333333333334 ], "textfont": { "size": 12 }, "textposition": "top center", "texttemplate": "%{y:.0%}", "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x2", "y": [ 0.0, -0.125, 0.3333333333333333, 0.20833333333333334, 0.7291666666666666, 0.9583333333333334, 2.0833333333333335, 2.625, 2.1458333333333335, 1.8125, 0.20833333333333334 ], "yaxis": "y2", "type": "scatter" } ], "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),height=800,width=1600,scale = 4)\n", "\n", "figsuper.write_image(f\"{fromdir}/plots/overall_distr&trends.png\",height=900,width=900,scale = 4)" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 440, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "EP not found in ISO2\n" ] }, { "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": "x11", "y": [ 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 2.0, 2.0, 0.0 ], "yaxis": "y11", "type": "scatter" }, { "hovertemplate": "%{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": "x12", "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0 ], "yaxis": "y12", "type": "scatter" }, { "hovertemplate": "%{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": "x13", "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 2.0, 1.0, 0.0 ], "yaxis": "y13", "type": "scatter" }, { "hovertemplate": "%{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": "x14", "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.0, 0.0, 0.0 ], "yaxis": "y14", "type": "scatter" }, { "hovertemplate": "%{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": "x15", "y": [ 17.0, 15.0, 16.0, 19.0, 28.0, 34.0, 56.0, 102.0, 109.0, 86.0, 33.0 ], "yaxis": "y15", "type": "scatter" }, { "hovertemplate": "%{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": "x6", "y": [ 3.0, 2.0, 1.0, 1.0, 3.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], "yaxis": "y6", "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": "x7", "y": [ 10.0, 9.0, 14.0, 5.0, 13.0, 12.0, 13.0, 6.0, 11.0, 14.0, 6.0 ], "yaxis": "y7", "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": "x8", "y": [ 14.0, 14.0, 31.0, 29.0, 24.0, 18.0, 30.0, 28.0, 19.0, 19.0, 15.0 ], "yaxis": "y8", "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": "x9", "y": [ 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.0, 2.0 ], "yaxis": "y9", "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": "x10", "y": [ 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 7.0, 7.0, 1.0, 8.0, 1.0 ], "yaxis": "y10", "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": "x", "y": [ 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], "yaxis": "y", "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": "x2", "y": [ 4.0, 1.0, 0.0, 1.0, 3.0, 2.0, 3.0, 0.0, 1.0, 0.0, 0.0 ], "yaxis": "y2", "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": "x3", "y": [ 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 3.0, 1.0, 0.0, 1.0, 0.0 ], "yaxis": "y3", "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": "x4", "y": [ 0.0, 0.0, 1.0, 1.0, 10.0, 24.0, 36.0, 29.0, 4.0, 1.0, 0.0 ], "yaxis": "y4", "type": "scatter" } ], "layout": { "annotations": [ { "showarrow": false, "text": "Portugal", "x": 0.09200000000000001, "xanchor": "center", "xref": "paper", "y": 0.2866666666666666, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Spain", "x": 0.29600000000000004, "xanchor": "center", "xref": "paper", "y": 0.2866666666666666, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Sweden", "x": 0.5, "xanchor": "center", "xref": "paper", "y": 0.2866666666666666, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "United Kingdom", "x": 0.7040000000000002, "xanchor": "center", "xref": "paper", "y": 0.2866666666666666, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Finland", "x": 0.09200000000000001, "xanchor": "center", "xref": "paper", "y": 0.6433333333333333, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "France", "x": 0.29600000000000004, "xanchor": "center", "xref": "paper", "y": 0.6433333333333333, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Germany", "x": 0.5, "xanchor": "center", "xref": "paper", "y": 0.6433333333333333, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Luxembourg", "x": 0.7040000000000002, "xanchor": "center", "xref": "paper", "y": 0.6433333333333333, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Netherlands", "x": 0.908, "xanchor": "center", "xref": "paper", "y": 0.6433333333333333, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Austria", "x": 0.09200000000000001, "xanchor": "center", "xref": "paper", "y": 0.9999999999999999, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Belgium", "x": 0.29600000000000004, "xanchor": "center", "xref": "paper", "y": 0.9999999999999999, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Czech Republic", "x": 0.5, "xanchor": "center", "xref": "paper", "y": 0.9999999999999999, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Denmark", "x": 0.7040000000000002, "xanchor": "center", "xref": "paper", "y": 0.9999999999999999, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "European Patent Office", "x": 0.908, "xanchor": "center", "xref": "paper", "y": 0.9999999999999999, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } } ], "font": { "family": "Montserrat", "size": 22 }, "legend": { "tracegroupgap": 0 }, "template": { "data": { "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "title": { "text": "Yearly output of co-patents by patent authority" }, "xaxis": { "anchor": "y", "domain": [ 0.0, 0.18400000000000002 ], "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.20400000000000001, 0.388 ], "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.40800000000000003, 0.5920000000000001 ], "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.6120000000000001, 0.7960000000000002 ], "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.8160000000000001, 1.0 ], "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.0, 0.18400000000000002 ], "linecolor": "black", "linewidth": 1, "matches": "x", "mirror": true, "showgrid": true, "showline": true, "showticklabels": false, "ticks": "outside", "title": { "text": "" }, "tickfont": { "size": 16 }, "tickangle": 45 }, "yaxis6": { "anchor": "x6", "domain": [ 0.35666666666666663, 0.6433333333333333 ], "linecolor": "black", "linewidth": 1, "matches": "y", "mirror": true, "showgrid": true, "showline": true, "ticks": "outside", "title": { "text": "" }, "tickfont": { "size": 16 } }, "xaxis7": { "anchor": "y7", "domain": [ 0.20400000000000001, 0.388 ], "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, "showticklabels": false, "ticks": "outside", "title": { "text": "" }, "tickfont": { "size": 16 } }, "xaxis8": { "anchor": "y8", "domain": [ 0.40800000000000003, 0.5920000000000001 ], "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.6120000000000001, 0.7960000000000002 ], "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.8160000000000001, 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 }, "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.0, 0.18400000000000002 ], "linecolor": "black", "linewidth": 1, "matches": "x", "mirror": true, "showgrid": true, "showline": true, "showticklabels": false, "ticks": "outside", "title": { "text": "" }, "tickfont": { "size": 16 }, "tickangle": 45 }, "yaxis11": { "anchor": "x11", "domain": [ 0.7133333333333333, 0.9999999999999999 ], "linecolor": "black", "linewidth": 1, "matches": "y", "mirror": true, "showgrid": true, "showline": true, "ticks": "outside", "title": { "text": "" }, "tickfont": { "size": 16 } }, "xaxis12": { "anchor": "y12", "domain": [ 0.20400000000000001, 0.388 ], "linecolor": "black", "linewidth": 1, "matches": "x", "mirror": true, "showgrid": true, "showline": true, "showticklabels": false, "ticks": "outside", "title": { "text": "" }, "tickfont": { "size": 16 }, "tickangle": 45 }, "yaxis12": { "anchor": "x12", "domain": [ 0.7133333333333333, 0.9999999999999999 ], "linecolor": "black", "linewidth": 1, "matches": "y", "mirror": true, "showgrid": true, "showline": true, "showticklabels": false, "ticks": "outside", "title": { "text": "" }, "tickfont": { "size": 16 } }, "xaxis13": { "anchor": "y13", "domain": [ 0.40800000000000003, 0.5920000000000001 ], "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, "showticklabels": false, "ticks": "outside", "title": { "text": "" }, "tickfont": { "size": 16 } }, "xaxis14": { "anchor": "y14", "domain": [ 0.6120000000000001, 0.7960000000000002 ], "linecolor": "black", "linewidth": 1, "matches": "x", "mirror": true, "showgrid": true, "showline": true, "showticklabels": false, "ticks": "outside", "title": { "text": "" }, "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.8160000000000001, 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 }, "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 } } }, "config": { "plotlyServerURL": "https://plotly.com" } }, "text/html": "
" }, "metadata": {}, "output_type": "display_data" } ], "source": [ "data = (appln_f.groupby(['filing_year',\"appln_auth\"])[record_col]\n", " .nunique(dropna=False).unstack()\n", " .fillna(0)\n", " .stack()\n", " .reset_index()\n", " .rename(columns={0:record_col}))\n", "\n", "data[\"appln_auth\"].str.replace(\"MO\",\"CN\")\n", "\n", "data = data.merge(data[data[record_col]>0].sort_values(by=[\"filing_year\"], ascending=True).drop_duplicates(subset=\"appln_auth\"),\n", " on=[\"appln_auth\"], suffixes=[None,\"_relative_growth\"])\n", "data[record_col+\"_relative_growth\"] = (data[record_col]-data[record_col+\"_relative_growth\"])/data[record_col+\"_relative_growth\"]\n", "data = data.sort_values(by =[\"appln_auth\",\"filing_year\"], ascending=[True,True])\n", "data[record_col+\"_cumsum\"] = (data.groupby('appln_auth',as_index=False)[record_col].cumsum())\n", "data[\"Country\"] = cc.pandas_convert(series=data[\"appln_auth\"], to='name_short')\n", "data[\"Country\"] = data[\"Country\"].str.replace(\"not found\",\"European Patent Office\")\n", "\n", "\n", "fig = px.line(data.sort_values(ascending=True, by='filing_year'),\n", " y=record_col,\n", " x='filing_year'\n", " ,facet_col=\"Country\",facet_col_wrap=5,category_orders={\"Country\": sorted(data[\"Country\"].unique())},\n", " markers=True,\n", " labels={\n", " record_col: 'Number of co-patents',\n", " },\n", " title=\"Yearly output of co-patents by patent authority\",hover_name= \"Country\")\n", "fig.update_traces(hovertemplate='%{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\"},font_family=\"Montserrat\")\n", "fig.update_yaxes(title='')\n", "fig.update_xaxes(title='')\n", "fig.for_each_annotation(lambda a: a.update(text=a.text.split(\"=\")[-1]))\n", "# fig.show(config= dict(displayModeBar = False, responsive = True))\n", "figsuper_ppt = go.Figure(fig)\n", "\n", "figsuper_ppt['layout'][\"font\"][\"size\"]=22\n", "# figsuper['layout'][\"xaxis\"][\"range\"] = [20,2022.5]\n", "for a in figsuper_ppt['layout'][\"annotations\"]:\n", " a[\"font\"][\"size\"] = 22\n", "\n", "s=16\n", "figsuper_ppt.update_yaxes(tickfont=dict(size=s))\n", "figsuper_ppt.update_xaxes(tickfont=dict(size=s),tickangle=45)\n", "figsuper_ppt.show(height=800,width=1600,scale = 4)\n", "figsuper_ppt.write_image(f\"{fromdir}/plots/yearly_outputs.png\",height=800,width=1600,scale = 4)" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": null, "outputs": [], "source": [], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 442, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "data": [ { "hovertemplate": "%{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": "x11", "y": [ -1.0, 0.0, -1.0, -1.0, 0.0, -1.0, -1.0, -1.0, 1.0, 1.0, -1.0 ], "yaxis": "y11", "type": "scatter" }, { "hovertemplate": "%{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": "x12", "y": [ -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, 0.0, 0.0 ], "yaxis": "y12", "type": "scatter" }, { "hovertemplate": "%{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": "x13", "y": [ -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, 0.0, 1.0, 0.0, -1.0 ], "yaxis": "y13", "type": "scatter" }, { "hovertemplate": "%{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": "x14", "y": [ -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, 0.0, -1.0, -1.0 ], "yaxis": "y14", "type": "scatter" }, { "hovertemplate": "%{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": "x15", "y": [ 0.0, -0.11764705882352941, -0.058823529411764705, 0.11764705882352941, 0.6470588235294118, 1.0, 2.2941176470588234, 5.0, 5.411764705882353, 4.0588235294117645, 0.9411764705882353 ], "yaxis": "y15", "type": "scatter" }, { "hovertemplate": "%{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": "x6", "y": [ 0.0, -0.3333333333333333, -0.6666666666666666, -0.6666666666666666, 0.0, -0.6666666666666666, -1.0, -1.0, -1.0, -1.0, -1.0 ], "yaxis": "y6", "type": "scatter" }, { "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": "x7", "y": [ 0.0, -0.1, 0.4, -0.5, 0.3, 0.2, 0.3, -0.4, 0.1, 0.4, -0.4 ], "yaxis": "y7", "type": "scatter" }, { "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": "x8", "y": [ 0.0, 0.0, 1.2142857142857142, 1.0714285714285714, 0.7142857142857143, 0.2857142857142857, 1.1428571428571428, 1.0, 0.35714285714285715, 0.35714285714285715, 0.07142857142857142 ], "yaxis": "y8", "type": "scatter" }, { "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": "x9", "y": [ -1.0, -1.0, -1.0, 0.0, -1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0 ], "yaxis": "y9", "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": "x10", "y": [ -1.0, -1.0, 0.0, 0.0, -1.0, 0.0, 6.0, 6.0, 0.0, 7.0, 0.0 ], "yaxis": "y10", "type": "scatter" }, { "hovertemplate": "%{hovertext}
%{x}
Co-publications: %{y}", "hovertext": [ "Portugal", "Portugal", "Portugal", "Portugal", "Portugal", "Portugal", "Portugal", "Portugal", "Portugal", "Portugal", "Portugal" ], "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": [ -1.0, -1.0, -1.0, -1.0, -1.0, 0.0, -1.0, -1.0, -1.0, -1.0, -1.0 ], "yaxis": "y", "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": "x2", "y": [ 0.0, -0.75, -1.0, -0.75, -0.25, -0.5, -0.25, -1.0, -0.75, -1.0, -1.0 ], "yaxis": "y2", "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": "x3", "y": [ -1.0, -1.0, -1.0, -1.0, 0.0, 0.0, 2.0, 0.0, -1.0, 0.0, -1.0 ], "yaxis": "y3", "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": "x4", "y": [ -1.0, -1.0, 0.0, 0.0, 9.0, 23.0, 35.0, 28.0, 3.0, 0.0, -1.0 ], "yaxis": "y4", "type": "scatter" } ], "layout": { "annotations": [ { "showarrow": false, "text": "Portugal", "x": 0.09200000000000001, "xanchor": "center", "xref": "paper", "y": 0.2866666666666666, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Spain", "x": 0.29600000000000004, "xanchor": "center", "xref": "paper", "y": 0.2866666666666666, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Sweden", "x": 0.5, "xanchor": "center", "xref": "paper", "y": 0.2866666666666666, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "United Kingdom", "x": 0.7040000000000002, "xanchor": "center", "xref": "paper", "y": 0.2866666666666666, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Finland", "x": 0.09200000000000001, "xanchor": "center", "xref": "paper", "y": 0.6433333333333333, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "France", "x": 0.29600000000000004, "xanchor": "center", "xref": "paper", "y": 0.6433333333333333, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Germany", "x": 0.5, "xanchor": "center", "xref": "paper", "y": 0.6433333333333333, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Luxembourg", "x": 0.7040000000000002, "xanchor": "center", "xref": "paper", "y": 0.6433333333333333, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Netherlands", "x": 0.908, "xanchor": "center", "xref": "paper", "y": 0.6433333333333333, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Austria", "x": 0.09200000000000001, "xanchor": "center", "xref": "paper", "y": 0.9999999999999999, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Belgium", "x": 0.29600000000000004, "xanchor": "center", "xref": "paper", "y": 0.9999999999999999, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Czech Republic", "x": 0.5, "xanchor": "center", "xref": "paper", "y": 0.9999999999999999, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "Denmark", "x": 0.7040000000000002, "xanchor": "center", "xref": "paper", "y": 0.9999999999999999, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } }, { "showarrow": false, "text": "European Patent Office", "x": 0.908, "xanchor": "center", "xref": "paper", "y": 0.9999999999999999, "yanchor": "bottom", "yref": "paper", "font": { "size": 22 } } ], "font": { "family": "Montserrat", "size": 22 }, "legend": { "tracegroupgap": 0 }, "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 rel. output of co-patents by patent authority" }, "xaxis": { "anchor": "y", "domain": [ 0.0, 0.18400000000000002 ], "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.20400000000000001, 0.388 ], "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.40800000000000003, 0.5920000000000001 ], "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.6120000000000001, 0.7960000000000002 ], "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.8160000000000001, 1.0 ], "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.0, 0.18400000000000002 ], "linecolor": "black", "linewidth": 1, "matches": "x", "mirror": true, "showgrid": true, "showline": true, "showticklabels": false, "ticks": "outside", "title": { "text": "" }, "tickfont": { "size": 16 }, "tickangle": 45 }, "yaxis6": { "anchor": "x6", "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 } }, "xaxis7": { "anchor": "y7", "domain": [ 0.20400000000000001, 0.388 ], "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, "showticklabels": false, "ticks": "outside", "title": { "text": "" }, "zeroline": true, "zerolinewidth": 2, "zerolinecolor": "grey", "tickformat": ".0%", "tickfont": { "size": 16 } }, "xaxis8": { "anchor": "y8", "domain": [ 0.40800000000000003, 0.5920000000000001 ], "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.6120000000000001, 0.7960000000000002 ], "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.8160000000000001, 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 }, "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.0, 0.18400000000000002 ], "linecolor": "black", "linewidth": 1, "matches": "x", "mirror": true, "showgrid": true, "showline": true, "showticklabels": false, "ticks": "outside", "title": { "text": "" }, "tickfont": { "size": 16 }, "tickangle": 45 }, "yaxis11": { "anchor": "x11", "domain": [ 0.7133333333333333, 0.9999999999999999 ], "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 } }, "xaxis12": { "anchor": "y12", "domain": [ 0.20400000000000001, 0.388 ], "linecolor": "black", "linewidth": 1, "matches": "x", "mirror": true, "showgrid": true, "showline": true, "showticklabels": false, "ticks": "outside", "title": { "text": "" }, "tickfont": { "size": 16 }, "tickangle": 45 }, "yaxis12": { "anchor": "x12", "domain": [ 0.7133333333333333, 0.9999999999999999 ], "linecolor": "black", "linewidth": 1, "matches": "y", "mirror": true, "showgrid": true, "showline": true, "showticklabels": false, "ticks": "outside", "title": { "text": "" }, "zeroline": true, "zerolinewidth": 2, "zerolinecolor": "grey", "tickformat": ".0%", "tickfont": { "size": 16 } }, "xaxis13": { "anchor": "y13", "domain": [ 0.40800000000000003, 0.5920000000000001 ], "linecolor": "black", "linewidth": 1, "matches": "x", "mirror": true, "showgrid": true, "showline": true, "showticklabels": false, "ticks": "outside", "title": { "text": "" }, "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, "showticklabels": false, "ticks": "outside", "title": { "text": "" }, "zeroline": true, "zerolinewidth": 2, "zerolinecolor": "grey", "tickformat": ".0%", "tickfont": { "size": 16 } }, "xaxis14": { "anchor": "y14", "domain": [ 0.6120000000000001, 0.7960000000000002 ], "linecolor": "black", "linewidth": 1, "matches": "x", "mirror": true, "showgrid": true, "showline": true, "showticklabels": false, "ticks": "outside", "title": { "text": "" }, "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.8160000000000001, 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 }, "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 } } }, "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=5,category_orders={\"Country\": sorted(data[\"Country\"].unique())},\n", " markers=True,\n", " labels={\n", " record_col+\"_relative_growth\": 'Relative growth of co-patents (%)',\n", " },\n", " title=\"Yearly rel. output of co-patents by patent authority\",hover_name= \"Country\")\n", "fig.update_traces(hovertemplate='%{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\"},font_family=\"Montserrat\")\n", "fig.update_yaxes(title='')\n", "fig.update_xaxes(title='')\n", "fig.for_each_annotation(lambda a: a.update(text=a.text.split(\"=\")[-1]))\n", "# fig.show(config= dict(displayModeBar = False, responsive = True))\n", "\n", "figsuper_ppt = go.Figure(fig)\n", "\n", "figsuper_ppt['layout'][\"font\"][\"size\"]=22\n", "for a in figsuper_ppt['layout'][\"annotations\"]:\n", " a[\"font\"][\"size\"] = 22\n", "\n", "s=16\n", "figsuper_ppt.update_yaxes(title='',zeroline=True, zerolinewidth=2, zerolinecolor='grey',tickformat=\".0%\")\n", "figsuper_ppt.update_yaxes(tickfont=dict(size=s))\n", "figsuper_ppt.update_xaxes(tickfont=dict(size=s),tickangle=45)\n", "figsuper_ppt.show(height=800,width=1600,scale = 4)\n", "figsuper_ppt.write_image(f\"{fromdir}/plots/yearly_rel_outputs.png\",height=800,width=1600,scale = 4)" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 405, "outputs": [], "source": [], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 446, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "EP not found in ISO2\n", "European Patent Office not found in regex\n" ] }, { "data": { "application/vnd.plotly.v1+json": { "data": [ { "alignmentgroup": "True", "hovertemplate": "Country type=China
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, 89, 83, 62, 13, 10, 9, 8, 8, 7, 7, 6, 5, 3, 3 ], "xaxis": "x", "y": [ "NINGBO GEELY AUTOMOBILE R
D CO LTD (CHN)", "TCL COMM LTD (CHN)", "ZHEJIANG GEELY HOLDINGGROUP CO LTD (CHN)", "HUAWEI TECH CO LTD (CHN)", "CRRC QINGDAO SIFANG CO LTD (CHN)", "BEIJING XIAOMI MOBILE SOFTWARE CO LTD (CHN)", "ZF DRIVETECH SUZHOU CO LTD (CHN)", "VENUS MEDTECH HANGZHOU INC (CHN)", "ZHANGJIAGANG KANGDE XIN OPTRONICS MATERIAL CO LTD (CHN)", "CNBM BENGBU DESIGN
RESEARCH INSTITUTE FOR GLASS IND CO LTD (CHN)", "SHENZHEN GOODIX TECH CO LTD (CHN)", "NOKIA SHANGHAI BELL CO LTD (CHN)", "KEIPER SEATING MECHANISMS CO LTD (CHN)", "HANERGY HOLDINGGROUP LTD (CHN)", "SHANGHAI HENGXU MATERIALS CO LTD (CHN)" ], "yaxis": "y", "type": "bar" } ], "layout": { "template": { "data": { "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "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": 12 } }, "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": 12 } }, "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": "Sector=COMPANY
Number of co-patents=%{x}
Name=%{y}", "legendgroup": "COMPANY", "marker": { "color": "#FFA15A", "pattern": { "shape": "" } }, "name": "COMPANY", "offsetgroup": "COMPANY", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 252, 89, 83, 62, 13, 10, 9, 8, 8, 7, 7, 6, 3, 3 ], "xaxis": "x", "y": [ "NINGBO GEELY AUTOMOBILE R
D CO LTD (CHN)", "TCL COMM LTD (CHN)", "ZHEJIANG GEELY HOLDINGGROUP CO LTD (CHN)", "HUAWEI TECH CO LTD (CHN)", "CRRC QINGDAO SIFANG CO LTD (CHN)", "BEIJING XIAOMI MOBILE SOFTWARE CO LTD (CHN)", "ZF DRIVETECH SUZHOU CO LTD (CHN)", "VENUS MEDTECH HANGZHOU INC (CHN)", "ZHANGJIAGANG KANGDE XIN OPTRONICS MATERIAL CO LTD (CHN)", "CNBM BENGBU DESIGN
RESEARCH INSTITUTE FOR GLASS IND CO LTD (CHN)", "SHENZHEN GOODIX TECH CO LTD (CHN)", "NOKIA SHANGHAI BELL CO LTD (CHN)", "HANERGY HOLDINGGROUP LTD (CHN)", "SHANGHAI HENGXU MATERIALS CO LTD (CHN)" ], "yaxis": "y", "type": "bar" }, { "alignmentgroup": "True", "hovertemplate": "Sector=UNKNOWN
Number of co-patents=%{x}
Name=%{y}", "legendgroup": "UNKNOWN", "marker": { "color": "#19d3f3", "pattern": { "shape": "" } }, "name": "UNKNOWN", "offsetgroup": "UNKNOWN", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 5 ], "xaxis": "x", "y": [ "KEIPER SEATING MECHANISMS CO LTD (CHN)" ], "yaxis": "y", "type": "bar" } ], "layout": { "template": { "data": { "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "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": 12 } }, "legend": { "title": { "text": "Sector" }, "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": "Sector=COMPANY
Number of co-patents=%{x}
Name=%{y}", "legendgroup": "COMPANY", "marker": { "color": "#FFA15A", "pattern": { "shape": "" } }, "name": "COMPANY", "offsetgroup": "COMPANY", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 39, 24, 14, 13, 13, 12, 11, 9, 9, 9, 8, 6, 6, 5 ], "xaxis": "x", "y": [ "ROBERT BOSCH GMBH (DEU)", "ARKEMA FR (FRA)", "ZF FRIEDRICHSHAFEN AG (DEU)", "CG RAIL CHINESISCH DEUTSCHES FORSCHUNGS
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" }, { "alignmentgroup": "True", "hovertemplate": "Sector=GOV NON-PROFIT
Number of co-patents=%{x}
Name=%{y}", "legendgroup": "GOV NON-PROFIT", "marker": { "color": "#19d3f3", "pattern": { "shape": "" } }, "name": "GOV NON-PROFIT", "offsetgroup": "GOV NON-PROFIT", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 23 ], "xaxis": "x", "y": [ "CNRS (FRA)" ], "yaxis": "y", "type": "bar" } ], "layout": { "template": { "data": { "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "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": 12 } }, "legend": { "title": { "text": "Sector" }, "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" } ], "source": [ "# appln_pers_f = pd.read_csv(f\"{outdir}/first-filings-with-persons-raw.csv\", header=None,\n", "# names=[\"appln_id\",\"appln_auth\",\"person_id\",\"invt_seq_nr\",\"applt_seq_nr\",'person_name',\"person_ctry_code\"])\n", "\n", "# appln_pers_haninfo = pd.read_csv(f\"{outdir}/tls_206_scope.csv\", usecols=[\"person_id\",\"han_id\",\"han_name\",\"psn_sector\"])\n", "#\n", "# appln_pers_f = appln_pers_f.merge(appln_pers_haninfo, on=\"person_id\")\n", "#\n", "# tls_801 = pd.read_csv(r\"./EU_CH_scope/table_tls801.csv\", low_memory=False)\n", "# # tls_801.head()\n", "# scope_df = tls_801[((tls_801.eu_member==\"Y\")|\n", "# (tls_801.ctry_code == 'CN')|\n", "# (tls_801.ctry_code == 'NO')|\n", "# (tls_801.ctry_code == 'CH')|\n", "# (tls_801.ctry_code == 'UK'))]\n", "# scope_countries = scope_df[\"ctry_code\"].unique()\n", "#\n", "# appln_pers_f = appln_pers_f[appln_pers_f[\"person_ctry_code\"].isin(scope_countries)]\n", "\n", "for c in [\"person_ctry_code\",\"appln_auth\"]:\n", " appln_pers_f[c+\"_fullname\"] = cc.pandas_convert(series=appln_pers_f[c], to='name_short')\n", "\n", "appln_pers_f[\"appln_auth_fullname\"] = appln_pers_f[\"appln_auth_fullname\"].str.replace(\"not found\",\"European Patent Office\")\n", "appln_pers_f[\"person_ctry_ISO3\"] = cc.pandas_convert(series=appln_pers_f[\"person_ctry_code_fullname\"], to='ISO3')\n", "appln_pers_f[\"person_ctry_type\"] = appln_pers_f[\"person_ctry_ISO3\"].apply(lambda x: \"China\" if x == \"CHN\" else \"Non-EU associate\" if x in [\"GBR\",\"CHE\",\"NOR\"] else \"EU\")\n", "\n", "appln_pers_f[\"auth_ISO3\"] = cc.pandas_convert(series=appln_pers_f[\"appln_auth_fullname\"], to='ISO3')\n", "appln_pers_f[\"auth_ctry_type\"] = appln_pers_f[\"auth_ISO3\"].apply(lambda x: \"China\" if x == \"CHN\" else \"Non-EU associate\" if x in [\"GBR\",\"CHE\",\"NOR\"] else \"EU\" if x!='not found' else \"EPO\")\n", "\n", "# top 25\n", "# - inventor\n", "# - applicant\n", "# in china, EU, EUextended\n", "color_discrete_map= {'China': '#EF553B',\n", " 'EU': '#636EFA',\n", " 'Non-EU associate': '#00CC96',\n", " 'EPO':'#9F2B68'}\n", "\n", "labeld_dict = dict({\n", " record_col: 'Number of co-patents',\n", " \"person_ctry_type\": \"Country type\",\n", " \"psn_sector_primary\":\"Sector\",\n", " \"han_label\": \"Name\",\n", " \"Country_Type\":\"Country type\",\n", " \"Eurovoc_Class\":\"Region\"\n", " })\n", "for trait in [\"person_ctry_type\",\"psn_sector_primary\"]:\n", " for ctry in [\"China\",'EU']:\n", " ctry_subset = appln_pers_f[appln_pers_f[\"person_ctry_type\"].str.contains(ctry)]\n", " # for role in [\"invt\",\"applt\"]:\n", " if True:\n", " role = \"applt\"\n", " pers_sub = ctry_subset[ctry_subset[role+\"_seq_nr\"]!=0]\n", " data = (pers_sub\n", " .groupby([\"han_id\",'han_name'],as_index=False)\n", " .agg({'appln_id': 'nunique', 'person_ctry_ISO3': 'first',trait:\"first\"})\n", " .sort_values(by=\"appln_id\", ascending=False)\n", " .head(15))\n", " data[\"han_label\"] = (data[\"han_name\"]\n", " .str.upper()\n", " .str.strip(\".\")\n", " .str.replace(\"&\",\"
\")\n", " + \" (\"+data[\"person_ctry_ISO3\"]+\")\")\n", "\n", " fig = px.bar(data, x=record_col, y=\"han_label\", color=trait,\n", " color_discrete_map=color_discrete_map,text_auto=True,labels=labeld_dict)\n", " fig.update_layout(font_family=\"Montserrat\",\n", " yaxis={'categoryorder':'total ascending'})\n", "\n", " figsuper = fig\n", " figsuper.update_layout(yaxis={'categoryorder':'total ascending'}, barmode='relative',yaxis2={'categoryorder':'total ascending'},yaxis3={'categoryorder':'total ascending'})\n", " figsuper.update_yaxes(\n", " showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n", " ticks=\"outside\")\n", " figsuper.update_xaxes(\n", " showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n", " ticks=\"outside\")\n", " figsuper.update_layout({'template':\"plotly\",\"font_family\":\"Montserrat\"})\n", "\n", " figsuper['layout'][\"font\"][\"size\"]=12\n", " for a in figsuper['layout'][\"annotations\"]:\n", " a[\"font\"][\"size\"] = 14\n", " figsuper[\"layout\"][\"yaxis\"][\"tickfont\"][\"size\"] = 12\n", "\n", " figsuper.update_layout(uniformtext_minsize=10)\n", "\n", " figsuper.show(config= dict(displayModeBar = False, responsive = True),height=800,width=1600,scale = 4)\n", " figsuper.write_image(f\"{fromdir}/plots/top15_applt_{trait}_{ctry}.png\",height=900,width=1200,scale = 4)" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 452, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "C:\\Users\\radvanyi\\.conda\\envs\\MOME_BIGDATA\\lib\\site-packages\\pandas\\core\\internals\\blocks.py:329: RuntimeWarning:\n", "\n", "divide by zero encountered in log10\n", "\n" ] }, { "data": { "application/vnd.plotly.v1+json": { "data": [ { "coloraxis": "coloraxis", "name": "0", "texttemplate": "%{text}", "x": [ "Sweden", "Germany", "France", "Austria", "Netherlands", "Finland", "Spain", "Belgium", "Italy" ], "y": [ "NINGBO GEELY AUTOMOBILE R&D CO LTD", "TCL COMM LTD", "ZHEJIANG GEELY HOLDINGGROUP CO LTD", "HUAWEI TECH CO LTD", "ZF DRIVETECH SUZHOU CO LTD", "CRRC QINGDAO SIFANG CO LTD", "BEIJING XIAOMI MOBILE SOFTWARE CO LTD", "ZHANGJIAGANG KANGDE XIN OPTRONICS MATERIAL CO LTD", "VENUS MEDTECH HANGZHOU INC", "CNBM BENGBU DESIGN & RESEARCH INSTITUTE FOR GLASS IND CO LTD", "SHENZHEN GOODIX TECH CO LTD", "NOKIA SHANGHAI BELL CO LTD", "KEIPER SEATING MECHANISMS CO LTD", "HANERGY HOLDINGGROUP LTD", "INKRON LTD", "FOCUSLIGHT TECH INC", "CHINA TRIUMPH INT ENGINEERING CO LTD", "MICRO TECH NANJING CO LTD", "ANHUI MEIZHI COMPRESSOR CO LTD", "SHANGHAI HENGXU MATERIALS CO LTD" ], "z": [ [ 3.399673721481038, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0 ], [ 0.0, 0.0, 2.949390006644913, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ 2.9190780923760737, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ 1.9542425094393248, 2.681241237375587, 0.0, 0.0, 0.0, 1.0, 0.0, 1.6989700043360187, 0.0 ], [ 0.0, 1.9542425094393248, 0.0, 1.9542425094393248, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ 0.0, 2.113943352306837, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ 0.0, 0.0, 2.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ 0.0, 0.0, 0.0, 0.0, 1.9030899869919435, 0.0, 1.0, 0.0, 0.0 ], [ 0.0, 1.9030899869919435, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ 0.0, 1.845098040014257, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ 0.0, 1.845098040014257, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ 0.0, 1.0, 1.6989700043360187, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ 0.0, 1.6989700043360187, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ 1.0, 1.4771212547196624, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 1.4771212547196624, 0.0, 0.0, 0.0 ], [ 0.0, 1.4771212547196624, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ 0.0, 1.4771212547196624, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ 0.0, 1.4771212547196624, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ 0.0, 0.0, 0.0, 1.4771212547196624, 0.0, 0.0, 0.0, 0.0, 0.0 ], [ 0.0, 1.4771212547196624, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ], "type": "heatmap", "xaxis": "x", "yaxis": "y", "hovertemplate": "Inventor (EU): %{x}
Applicant (CN): %{y}
color: %{z}", "text": [ [ 251, 0, 0, 0, 0, 0, 0, 0, 1 ], [ 0, 0, 89, 0, 0, 0, 0, 0, 0 ], [ 83, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 9, 48, 0, 0, 0, 1, 0, 5, 0 ], [ 0, 9, 0, 9, 0, 0, 0, 0, 0 ], [ 0, 13, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 10, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 8, 0, 1, 0, 0 ], [ 0, 8, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 7, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 7, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 1, 5, 0, 0, 0, 0, 0, 0 ], [ 0, 5, 0, 0, 0, 0, 0, 0, 0 ], [ 1, 3, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 3, 0, 0, 0 ], [ 0, 3, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 3, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 3, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 3, 0, 0, 0, 0, 0 ], [ 0, 3, 0, 0, 0, 0, 0, 0, 0 ] ] } ], "layout": { "template": { "data": { "barpolar": [ { "marker": { "line": { "color": "white", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "white", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "#C8D4E3", "linecolor": "#C8D4E3", "minorgridcolor": "#C8D4E3", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "#C8D4E3", "linecolor": "#C8D4E3", "minorgridcolor": "#C8D4E3", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "white", "showlakes": true, "showland": true, "subunitcolor": "#C8D4E3" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "white", "polar": { "angularaxis": { "gridcolor": "#EBF0F8", "linecolor": "#EBF0F8", "ticks": "" }, "bgcolor": "white", "radialaxis": { "gridcolor": "#EBF0F8", "linecolor": "#EBF0F8", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "white", "gridcolor": "#DFE8F3", "gridwidth": 2, "linecolor": "#EBF0F8", "showbackground": true, "ticks": "", "zerolinecolor": "#EBF0F8" }, "yaxis": { "backgroundcolor": "white", "gridcolor": "#DFE8F3", "gridwidth": 2, "linecolor": "#EBF0F8", "showbackground": true, "ticks": "", "zerolinecolor": "#EBF0F8" }, "zaxis": { "backgroundcolor": "white", "gridcolor": "#DFE8F3", "gridwidth": 2, "linecolor": "#EBF0F8", "showbackground": true, "ticks": "", "zerolinecolor": "#EBF0F8" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "#DFE8F3", "linecolor": "#A2B1C6", "ticks": "" }, "baxis": { "gridcolor": "#DFE8F3", "linecolor": "#A2B1C6", "ticks": "" }, "bgcolor": "white", "caxis": { "gridcolor": "#DFE8F3", "linecolor": "#A2B1C6", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "#EBF0F8", "linecolor": "#EBF0F8", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "#EBF0F8", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "#EBF0F8", "linecolor": "#EBF0F8", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "#EBF0F8", "zerolinewidth": 2 } } }, "xaxis": { "anchor": "y", "domain": [ 0.0, 1.0 ], "scaleanchor": "y", "constrain": "domain", "title": { "text": "Inventor (EU)" }, "showgrid": false, "tickangle": 45, "ticks": "outside", "tickfont": { "size": 16 } }, "yaxis": { "anchor": "x", "domain": [ 0.0, 1.0 ], "autorange": "reversed", "constrain": "domain", "title": { "text": "Applicant (CN)" }, "showgrid": false, "ticks": "outside", "tickfont": { "size": 16 } }, "coloraxis": { "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "colorbar": { "thicknessmode": "pixels", "thickness": 25, "ticks": "outside", "ticksuffix": " ", "dtick": 20, "outlinewidth": 1 }, "showscale": false }, "margin": { "t": 60 }, "title": { "x": 0.5 }, "font": { "family": "Montserrat", "size": 16 }, "width": 1000, "height": 1000 }, "config": { "displayModeBar": false, "responsive": true, "plotlyServerURL": "https://plotly.com" } }, "text/html": "
" }, "metadata": {}, "output_type": "display_data" } ], "source": [ "applt_sub = appln_pers_f[((appln_pers_f[\"applt_seq_nr\"]!=0)&\n", " (appln_pers_f[\"psn_sector_primary\"]!=\"INDIVIDUAL\"))]\n", "invt_sub = appln_pers_f[appln_pers_f[\"invt_seq_nr\"]!=0]\n", "\n", "eu_applt_subset = applt_sub[~applt_sub[\"person_ctry_type\"].str.contains(\"China\")]\n", "ch_applt_subset = applt_sub[applt_sub[\"person_ctry_type\"].str.contains(\"China\")]\n", "\n", "eu_invt_subset = invt_sub[~invt_sub[\"person_ctry_type\"].str.contains(\"China\")]\n", "ch_invt_subset = invt_sub[invt_sub[\"person_ctry_type\"].str.contains(\"China\")]\n", "\n", "#\n", "# patstat_applt_dipol = eu_invt_subset.merge(ch_applt_subset, on=record_col, suffixes=('_eu', '_ch'))\n", "# patstat_applt_dipol.sample(100)\n", "\n", "patstat_applt_dipol = eu_applt_subset.merge(ch_applt_subset, on=record_col, suffixes=('_eu', '_ch'))\n", "patstat_applt_inv_dipol = eu_invt_subset.merge(ch_applt_subset, on=record_col, suffixes=('_eu', '_ch'))\n", "\n", "# co_occur = pd.crosstab(patstat_applt_dipol['han_name_eu'], patstat_applt_dipol['han_name_ch'],\n", "# values=patstat_applt_dipol[record_col], aggfunc='nunique').fillna(0).astype(int)\n", "co_occur = pd.crosstab(patstat_applt_inv_dipol['person_ctry_code_fullname_eu'], patstat_applt_inv_dipol['han_name_ch'],\n", " values=patstat_applt_inv_dipol[record_col], aggfunc='nunique').fillna(0).astype(int)\n", "\n", "\n", "co_occur = co_occur.T\n", "co_occur[\"sum\"] = co_occur.sum(axis=1)\n", "co_occur = co_occur[co_occur.sum(0).sort_values(ascending=False).index]\n", "\n", "co_occur = (co_occur\n", " .sort_values(by=\"sum\", ascending=False)\n", " .head(20)\n", " .drop(columns=\"sum\")\n", " .replace(0,np.nan)\n", " .dropna(axis=1,how=\"all\")\n", " .replace(np.nan,0)\n", " .astype(int))\n", "\n", "fig = px.imshow(np.nan_to_num(np.log10(co_occur)+1,neginf=0),#co_occur,\n", " labels=dict(x=\"Inventor (EU)\", y=\"Applicant (CN)\", z=co_occur.values.astype(str)),# color=\"Co-patent\"),\n", " x=list(co_occur.columns),\n", " text_auto=True,\n", " y=list(co_occur.index))\n", "\n", "\n", "fig.update_layout(title_x=0.5,\n", " width=1000, height=1000,\n", " xaxis_showgrid=False,\n", " yaxis_showgrid=False,\n", " yaxis_autorange='reversed',\n", " font_family=\"Montserrat\",\n", " template='plotly_white',\n", " coloraxis_colorbar=dict(\n", " thicknessmode=\"pixels\", thickness=25,\n", " ticks=\"outside\", ticksuffix=\" \",\n", " dtick=20,outlinewidth=1,\n", " ))\n", "\n", "# fig.update_traces(texttemplate='%{z}')\n", "# fig.update_traces(z=co_occur.values)\n", "# fig.update(data=[{'customdata': co_occur}])\n", "# fig.update(data=[{'customdata': co_occur,\n", "# 'hovertemplate': \"(x) %{x} product: %{customdata[0]}
(y) %{y} product: %{customdata[1]}
%{z}\"}])\n", "# fig.update_traces(texttemplate='%{customdata}')\n", "fig.update_traces(text=co_occur, texttemplate=\"%{text}\")\n", "fig.update(layout_coloraxis_showscale=False)\n", "fig.update_xaxes(tickangle= -45)\n", "fig.update_yaxes(\n", " ticks=\"outside\")\n", "fig.update_xaxes(\n", " ticks=\"outside\")\n", "\n", "figsuper_ppt = fig\n", "figsuper_ppt['layout'][\"font\"][\"size\"]=16\n", "for a in figsuper_ppt['layout'][\"annotations\"]:\n", " a[\"font\"][\"size\"] = 16\n", "\n", "s=16\n", "figsuper_ppt.update_yaxes(tickfont=dict(size=s))\n", "figsuper_ppt.update_xaxes(tickfont=dict(size=s),tickangle=45)\n", "\n", "figsuper_ppt.show(config= dict(displayModeBar = False, responsive = True))\n", "\n", "figsuper_ppt.write_image(rf\"{fromdir}/plots/CN_applt_ctry.png\",height=900,width=1200,scale = 4)" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 453, "outputs": [], "source": [ "patstat_applt_dipol_2 = (patstat_applt_dipol\n", " .groupby([\"han_name_ch\",\"han_name_eu\"], as_index=False)\n", " .agg({\"psn_sector_primary_ch\":\"first\",\n", " \"psn_sector_primary_eu\":\"first\",\n", " \"person_ctry_ISO3_eu\":\"first\",\n", " record_col:\"nunique\"})\n", " .sort_values(by=record_col, ascending=False)\n", " .head(-1))\n", "patstat_applt_dipol_2[\"applt_eu_label\"] = (patstat_applt_dipol_2[\"han_name_eu\"]\n", " +\" (\"\n", " +patstat_applt_dipol_2[\"person_ctry_ISO3_eu\"]\n", " +\"; \"\n", " +patstat_applt_dipol_2[\"psn_sector_primary_eu\"]\n", " +\")\")\n", "\n", "patstat_applt_dipol_2[\"applt_ch_label\"] = (patstat_applt_dipol_2[\"han_name_ch\"]\n", " +\" (\"\n", " +patstat_applt_dipol_2[\"psn_sector_primary_ch\"]\n", " +\")\")\n", "\n", "patstat_applt_dipol_2[[\"applt_ch_label\",\"applt_eu_label\",\"appln_id\"]].to_excel(rf\"{fromdir}/plots/applt_table.xlsx\", index=False)" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 456, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "data": [ { "alignmentgroup": "True", "hovertemplate": "Country type=EU
Percent of related co-patents=%{x}
Inventor's country=%{y}", "legendgroup": "EU", "marker": { "color": "#636EFA", "pattern": { "shape": "" } }, "name": "EU", "offsetgroup": "EU", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 0.026590693257359924, 0.027540360873694207, 0.005698005698005698, 0.003798670465337132, 0.012345679012345678, 0.2222222222222222, 0.3380816714150047, 0.001899335232668566, 0.002849002849002849, 9.49667616334283E-4, 0.020892687559354226, 9.49667616334283E-4, 0.023741690408357077, 0.003798670465337132, 9.49667616334283E-4, 9.49667616334283E-4, 0.02564102564102564, 0.26020892687559355 ], "xaxis": "x", "y": [ "Austria", "Belgium", "Czech Republic", "Denmark", "Finland", "France", "Germany", "Greece", "Hungary", "Ireland", "Italy", "Luxembourg", "Netherlands", "Poland", "Portugal", "Romania", "Spain", "Sweden" ], "yaxis": "y", "type": "bar" }, { "alignmentgroup": "True", "hovertemplate": "Country type=China
Percent of related co-patents=%{x}
Inventor's country=%{y}", "legendgroup": "China", "marker": { "color": "#EF553B", "pattern": { "shape": "" } }, "name": "China", "offsetgroup": "China", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 0.5042735042735043 ], "xaxis": "x", "y": [ "China" ], "yaxis": "y", "type": "bar" }, { "alignmentgroup": "True", "hovertemplate": "Country type=Non-EU associate
Percent of related co-patents=%{x}
Inventor's 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.49667616334283E-4, 0.010446343779677113 ], "xaxis": "x", "y": [ "Norway", "Switzerland" ], "yaxis": "y", "type": "bar" } ], "layout": { "template": { "data": { "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "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": "Inventor's country" }, "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside", "tickfont": { "size": 14 } }, "legend": { "title": { "text": "Country type" }, "tracegroupgap": 0 }, "margin": { "t": 60 }, "barmode": "relative", "font": { "family": "Montserrat", "size": 14 }, "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}
Applicant's country=%{y}", "legendgroup": "EU", "marker": { "color": "#636EFA", "pattern": { "shape": "" } }, "name": "EU", "offsetgroup": "EU", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 0.003872216844143272, 0.007744433688286544, 9.68054211035818E-4, 0.002904162633107454, 0.001936108422071636, 0.013552758954501452, 0.14908034849951599, 0.2575024201355276, 0.00484027105517909, 0.00484027105517909, 0.003872216844143272, 0.011616650532429816, 9.68054211035818E-4, 0.021297192642787996, 0.00968054211035818 ], "xaxis": "x", "y": [ "Austria", "Belgium", "Cyprus", "Czech Republic", "Denmark", "Finland", "France", "Germany", "Ireland", "Italy", "Luxembourg", "Netherlands", "Portugal", "Spain", "Sweden" ], "yaxis": "y", "type": "bar" }, { "alignmentgroup": "True", "hovertemplate": "Country type=China
Percent of related co-patents=%{x}
Applicant's country=%{y}", "legendgroup": "China", "marker": { "color": "#EF553B", "pattern": { "shape": "" } }, "name": "China", "offsetgroup": "China", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 0.5575992255566312 ], "xaxis": "x", "y": [ "China" ], "yaxis": "y", "type": "bar" }, { "alignmentgroup": "True", "hovertemplate": "Country type=Non-EU associate
Percent of related co-patents=%{x}
Applicant's 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.68054211035818E-4, 0.018393030009680542 ], "xaxis": "x", "y": [ "Norway", "Switzerland" ], "yaxis": "y", "type": "bar" } ], "layout": { "template": { "data": { "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "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": "Applicant's country" }, "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside", "tickfont": { "size": 14 } }, "legend": { "title": { "text": "Country type" }, "tracegroupgap": 0 }, "margin": { "t": 60 }, "barmode": "relative", "font": { "family": "Montserrat", "size": 14 }, "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}
Application authority=%{y}", "legendgroup": "EU", "marker": { "color": "#636EFA", "pattern": { "shape": "" } }, "name": "EU", "offsetgroup": "EU", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 0.005687203791469194, 0.0018957345971563982, 0.0037914691943127963, 0.0018957345971563982, 0.01042654028436019, 0.10710900473933649, 0.22843601895734597, 0.004739336492890996, 0.025592417061611375, 9.478672985781991E-4, 0.014218009478672985, 0.006635071090047393 ], "xaxis": "x", "y": [ "Austria", "Belgium", "Czech Republic", "Denmark", "Finland", "France", "Germany", "Luxembourg", "Netherlands", "Portugal", "Spain", "Sweden" ], "yaxis": "y", "type": "bar" }, { "alignmentgroup": "True", "hovertemplate": "Authority type=EPO
Percent of related co-patents=%{x}
Application authority=%{y}", "legendgroup": "EPO", "marker": { "color": "#7F00FF", "pattern": { "shape": "" } }, "name": "EPO", "offsetgroup": "EPO", "orientation": "h", "showlegend": true, "textposition": "auto", "texttemplate": "%{x}", "x": [ 0.4881516587677725 ], "xaxis": "x", "y": [ "European Patent Office" ], "yaxis": "y", "type": "bar" }, { "alignmentgroup": "True", "hovertemplate": "Authority type=Non-EU associate
Percent of related co-patents=%{x}
Application 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.1004739336492891 ], "xaxis": "x", "y": [ "United Kingdom" ], "yaxis": "y", "type": "bar" } ], "layout": { "template": { "data": { "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "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": "Application authority" }, "categoryorder": "total ascending", "showgrid": true, "showline": true, "linewidth": 1, "linecolor": "black", "mirror": true, "ticks": "outside", "tickfont": { "size": 14 } }, "legend": { "title": { "text": "Authority type" }, "tracegroupgap": 0 }, "margin": { "t": 60 }, "barmode": "relative", "font": { "family": "Montserrat", "size": 14 }, "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", "\n", "labeld_dict = dict({\n", " record_col+\"_percent\": 'Percent of related co-patents',\n", " \"person_ctry_code_fullname\": \"Country\",\n", " \"person_ctry_type\": \"Country type\",\n", " \"appln_auth_fullname\": \"Application authority\",\n", " \"auth_ctry_type\": \"Authority type\",\n", " \"Country_Type\":\"Country type\",\n", " \"Eurovoc_Class\":\"Region\"\n", " })\n", "\n", "for c in [\"person_ctry_code\",\"appln_auth\"]:\n", " pers_sub = appln_pers_f\n", " if c == \"person_ctry_code\":\n", " for role in [\"invt\",\"applt\"]:\n", " pers_sub = appln_pers_f[appln_pers_f[role+\"_seq_nr\"]!=0]\n", " role_name = {\"invt\":\"Inventor's\", \"applt\":\"Applicant's\"}.get(role)\n", " labeld_dict[\"person_ctry_code_fullname\"] = role_name+\" country\"\n", "\n", "\n", " data = (pers_sub.groupby(c+\"_fullname\",as_index=False).agg({'appln_id': 'nunique', 'person_ctry_ISO3': 'first',\"person_ctry_type\":\"first\"}))\n", " data[record_col+\"_percent\"] = data[record_col]/pers_sub[record_col].nunique()\n", " fig = px.bar(data, x=record_col+\"_percent\", y=c+\"_fullname\",color_discrete_map=color_discrete_map,text_auto=True,color=\"person_ctry_type\",\n", " labels = labeld_dict)\n", " fig.update_layout(xaxis_tickformat='.1%',font_family=\"Montserrat\",\n", " yaxis={'categoryorder':'total ascending'},)\n", " figsuper = fig\n", " figsuper.update_layout(yaxis={'categoryorder':'total ascending'}, barmode='relative',yaxis2={'categoryorder':'total ascending'},yaxis3={'categoryorder':'total ascending'})\n", " figsuper.update_yaxes(\n", " showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n", " ticks=\"outside\")\n", " figsuper.update_xaxes(\n", " showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n", " ticks=\"outside\")\n", " figsuper.update_layout({'template':\"plotly\",\"font_family\":\"Montserrat\"})\n", "\n", " figsuper['layout'][\"font\"][\"size\"]=14\n", " for a in figsuper['layout'][\"annotations\"]:\n", " a[\"font\"][\"size\"] = 14\n", " figsuper[\"layout\"][\"yaxis\"][\"tickfont\"][\"size\"] = 14\n", "\n", " figsuper.update_layout(uniformtext_minsize=10)\n", " figsuper.write_image(rf\"{fromdir}/plots/{role}_loc_ctry.png\",height=900,width=1200,scale = 4)\n", " figsuper.show()\n", " else:\n", " data = pers_sub.groupby(c+\"_fullname\",as_index=False).agg({'appln_id': 'nunique', 'auth_ISO3': 'first',\"auth_ctry_type\":\"first\"})\n", " data[record_col+\"_percent\"] = data[record_col]/pers_sub[record_col].nunique()\n", " fig = px.bar(data, x=record_col+\"_percent\", y=c+\"_fullname\",color_discrete_map=color_discrete_map,text_auto=True,color=\"auth_ctry_type\",\n", " labels = labeld_dict)\n", " fig.update_layout(xaxis_tickformat='.1%',font_family=\"Montserrat\",\n", " yaxis={'categoryorder':'total ascending'},)\n", " figsuper = fig\n", " figsuper.update_layout(yaxis={'categoryorder':'total ascending'}, barmode='relative',yaxis2={'categoryorder':'total ascending'},yaxis3={'categoryorder':'total ascending'})\n", " figsuper.update_yaxes(\n", " showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n", " ticks=\"outside\")\n", " figsuper.update_xaxes(\n", " showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n", " ticks=\"outside\")\n", " figsuper.update_layout({'template':\"plotly\",\"font_family\":\"Montserrat\"})\n", "\n", " figsuper['layout'][\"font\"][\"size\"]=14\n", " for a in figsuper['layout'][\"annotations\"]:\n", " a[\"font\"][\"size\"] = 14\n", " figsuper[\"layout\"][\"yaxis\"][\"tickfont\"][\"size\"] = 14\n", "\n", " figsuper.update_layout(uniformtext_minsize=10)\n", " figsuper.write_image(rf\"{fromdir}/plots/auth_loc_ctry.png\",height=900,width=1200,scale = 4)\n", " figsuper.show()" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 420, "outputs": [], "source": [], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 420, "outputs": [], "source": [], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 420, "outputs": [], "source": [], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 457, "outputs": [], "source": [ "appln_ipc_f = pd.read_csv(f\"{fromdir}/first-filings-with-IPC-raw.csv\", header=None,\n", " names=[\"appln_id\",\"appln_auth\",\"appln_kind\",\"filing_year\",\"nb_applicants\",'nb_inventors',\n", " 'ipc_class_symbol','ipc_class_level'])\n", "\n", "appln_ipc_f = appln_ipc_f[appln_ipc_f[\"filing_year\"]>2010]\n", "appln_ipc_f = appln_ipc_f[appln_ipc_f[\"appln_id\"].isin(appln_f[\"appln_id\"])]\n", "\n", "appln_ipc_f[\"cpc_id\"] = appln_ipc_f[\"ipc_class_symbol\"].str.replace(\" \",\"\")\n", "appln_ipc_f[\"ipc_class\"] = appln_ipc_f[\"ipc_class_symbol\"].str.replace(\" \",\"\").str[0]\n", "appln_ipc_f[\"ipc_classname\"] = appln_ipc_f[\"ipc_class\"].replace({\"A\":\"Human necessities\",\n", " \"B\":\"Performing operations; transporting\",\n", " \"B\":\"Operations; transporting\",\n", " \"C\":\"Chemistry; metallurgy\",\n", " \"D\":\"Textiles; paper\",\n", " \"E\":\"Fixed constructions\",\n", " \"F\":\"Mechanical engineering; lightning; heating; weapons; blasting\",\n", " \"F\":\"Engineering\",\n", " \"G\":\"Physics\",\n", " \"H\":\"Electricity\"})\n", "\n", "appln_ipc_f[\"ipc_class\"] = appln_ipc_f[\"ipc_class\"]+\"-\"+appln_ipc_f[\"ipc_classname\"]" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 458, "outputs": [], "source": [ "group = 'ipc_class'\n", "data = appln_ipc_f.groupby(group, as_index=False)[record_col].nunique().sort_values(ascending=False, by=record_col)\n", "\n", "fig = px.bar(data.sort_values(by=group), x=record_col, y=group, color=group,barmode='relative',text_auto=True,\n", " labels={\n", " record_col: 'Number of co-publications',\n", " group: \"\",\n", " },\n", " title=\"Distribution of Domains\", template='plotly')\n", "fig.update_layout(showlegend=False, xaxis_tickformat='d',font_family=\"Montserrat\")\n", "fig.update_traces(hovertemplate='%{x:d}')\n", "fig.update_traces(textfont_size=12, textangle=0, textposition=\"outside\", cliponaxis=True)\n", "fig.add_shape(\n", " # Rectangle with reference to the plot\n", " type=\"rect\",\n", " xref=\"paper\",\n", " yref=\"paper\",\n", " x0=0,\n", " y0=0,\n", " x1=1.0,\n", " y1=1.0,\n", " line=dict(\n", " color=\"black\",\n", " width=0.5,\n", " )\n", " )\n", "fig.update_layout(yaxis={'categoryorder':'total ascending'})\n", "fig.update_yaxes(\n", " showgrid=True,\n", " ticks=\"outside\")\n", "fig.update_xaxes(\n", " showgrid=True,\n", " ticks=\"outside\")\n", "dom_distr = go.Figure(fig)" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 459, "outputs": [], "source": [ "data = (appln_ipc_f.groupby(['filing_year','ipc_class'])[record_col].nunique(dropna=False).unstack()\n", " .fillna(0)\n", " .stack()\n", " .reset_index()\n", " .rename(columns={0:record_col}))\n", "data = data.merge(data[data[record_col]>0].sort_values(by=[\"filing_year\"], ascending=True).drop_duplicates(subset='ipc_class'),\n", " on='ipc_class', suffixes=[None,\"_relative_growth\"])\n", "data[record_col+\"_relative_growth\"] = (data[record_col]-data[record_col+\"_relative_growth\"])/data[record_col+\"_relative_growth\"]\n", "\n", "data = data.sort_values(by =[\"ipc_class\",\"filing_year\"], ascending=[True,True])\n", "data[record_col+\"_cumsum\"] = (data.groupby('ipc_class',as_index=False)[record_col].cumsum())\n" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 460, "outputs": [], "source": [ "group = ['filing_year','ipc_class']\n", "fig = px.line(data.sort_values(ascending=[True,True], by=[group[0],group[-1]]),y=record_col,x=group[0], color=group[-1], markers=True, labels={\n", " record_col: 'Number of co-publications',\n", " group[-1]: \"Domain\",\n", " },\n", " title=\"Yearly output of co-publications\", template='plotly')\n", "fig.update_traces(hovertemplate='%{y:d}')\n", "fig.update_layout(hovermode='x unified')\n", "fig.add_shape(\n", " # Rectangle with reference to the plot\n", " type=\"rect\",\n", " xref=\"paper\",\n", " yref=\"paper\",\n", " x0=0,\n", " y0=0,\n", " x1=1.0,\n", " y1=1.0,\n", " line=dict(\n", " color=\"black\",\n", " width=0.5,\n", " )\n", " )\n", "fig.update_yaxes(\n", " showgrid=True,\n", " ticks=\"outside\")\n", "fig.update_xaxes(\n", " showgrid=True,\n", " ticks=\"outside\")\n", "\n", "year_output_by_domain = go.Figure(fig)\n", "\n", "fig = px.line(data.sort_values(ascending=[True,True], by=[group[0],group[-1]]),y=record_col+\"_relative_growth\",x=group[0], color=group[-1], markers=True, labels={\n", " record_col+\"_relative_growth\": 'Rel. growth
in co-publications (%)',\n", " group[-1]: \"Domain\",\n", " },\n", " title=\"Relative growth in the output of co-publications\", template='plotly')\n", "\n", "fig.update_layout(hovermode='x unified',yaxis_tickformat='.0f%',font_family=\"Montserrat\")\n", "fig.update_traces(hovertemplate='%{y:.0f}00%')\n", "fig.add_shape(\n", " # Rectangle with reference to the plot\n", " type=\"rect\",\n", " xref=\"paper\",\n", " yref=\"paper\",\n", " x0=0,\n", " y0=0,\n", " x1=1.0,\n", " y1=1.0,\n", " line=dict(\n", " color=\"black\",\n", " width=0.5,\n", " )\n", " )\n", "fig.update_yaxes(\n", " showgrid=True,\n", " ticks=\"outside\")\n", "fig.update_xaxes(\n", " showgrid=True,\n", " ticks=\"outside\")\n", "\n", "rel_output_by_domain = go.Figure(fig)\n", "\n", "\n", "fig = px.area(data.sort_values(ascending=[True,True], by=[group[0],group[-1]]),y=record_col+\"_cumsum\",x=group[0], color=group[-1],line_group=group[-1],\n", " labels={\n", " record_col+\"_cumsum\": 'Cumulative number of co-publications',\n", " group[-1]: \"Domain\",\n", " },\n", " title=\"Cumulative number of co-publications\", template='plotly')\n", "fig.update_traces(hovertemplate='%{y:d}')\n", "fig.update_layout(hovermode='x unified')\n", "fig.add_shape(\n", " # Rectangle with reference to the plot\n", " type=\"rect\",\n", " xref=\"paper\",\n", " yref=\"paper\",\n", " x0=0,\n", " y0=0,\n", " x1=1.0,\n", " y1=1.0,\n", " line=dict(\n", " color=\"black\",\n", " width=0.5,\n", " )\n", " )\n", "fig.update_yaxes(\n", " showgrid=True,\n", " ticks=\"outside\")\n", "fig.update_xaxes(\n", " showgrid=True,\n", " ticks=\"outside\")\n", "\n", "cumsum_by_domain = go.Figure(fig)" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 463, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "data": [ { "alignmentgroup": "True", "cliponaxis": true, "hovertemplate": "%{x:d}", "legendgroup": "A-Human necessities", "marker": { "color": "#636efa", "pattern": { "shape": "" } }, "name": "A-Human necessities", "offsetgroup": "A-Human necessities", "orientation": "h", "showlegend": false, "textangle": 0, "textfont": { "size": 12 }, "textposition": "outside", "texttemplate": "%{x}", "x": [ 99 ], "xaxis": "x", "y": [ "A-Human necessities" ], "yaxis": "y", "type": "bar" }, { "alignmentgroup": "True", "cliponaxis": true, "hovertemplate": "%{x:d}", "legendgroup": "B-Operations; transporting", "marker": { "color": "#EF553B", "pattern": { "shape": "" } }, "name": "B-Operations; transporting", "offsetgroup": "B-Operations; transporting", "orientation": "h", "showlegend": false, "textangle": 0, "textfont": { "size": 12 }, "textposition": "outside", "texttemplate": "%{x}", "x": [ 341 ], "xaxis": "x", "y": [ "B-Operations; transporting" ], "yaxis": "y", "type": "bar" }, { "alignmentgroup": "True", "cliponaxis": true, "hovertemplate": "%{x:d}", "legendgroup": "C-Chemistry; metallurgy", "marker": { "color": "#00cc96", "pattern": { "shape": "" } }, "name": "C-Chemistry; metallurgy", "offsetgroup": "C-Chemistry; metallurgy", "orientation": "h", "showlegend": false, "textangle": 0, "textfont": { "size": 12 }, "textposition": "outside", "texttemplate": "%{x}", "x": [ 145 ], "xaxis": "x", "y": [ "C-Chemistry; metallurgy" ], "yaxis": "y", "type": "bar" }, { "alignmentgroup": "True", "cliponaxis": true, "hovertemplate": "%{x:d}", "legendgroup": "D-Textiles; paper", "marker": { "color": "#ab63fa", "pattern": { "shape": "" } }, "name": "D-Textiles; paper", "offsetgroup": "D-Textiles; paper", "orientation": "h", "showlegend": false, "textangle": 0, "textfont": { "size": 12 }, "textposition": "outside", "texttemplate": "%{x}", "x": [ 14 ], "xaxis": "x", "y": [ "D-Textiles; paper" ], "yaxis": "y", "type": "bar" }, { "alignmentgroup": "True", "cliponaxis": true, "hovertemplate": "%{x:d}", "legendgroup": "E-Fixed constructions", "marker": { "color": "#FFA15A", "pattern": { "shape": "" } }, "name": "E-Fixed constructions", "offsetgroup": "E-Fixed constructions", "orientation": "h", "showlegend": false, "textangle": 0, "textfont": { "size": 12 }, "textposition": "outside", "texttemplate": "%{x}", "x": [ 49 ], "xaxis": "x", "y": [ "E-Fixed constructions" ], "yaxis": "y", "type": "bar" }, { "alignmentgroup": "True", "cliponaxis": true, "hovertemplate": "%{x:d}", "legendgroup": "F-Engineering", "marker": { "color": "#19d3f3", "pattern": { "shape": "" } }, "name": "F-Engineering", "offsetgroup": "F-Engineering", "orientation": "h", "showlegend": false, "textangle": 0, "textfont": { "size": 12 }, "textposition": "outside", "texttemplate": "%{x}", "x": [ 148 ], "xaxis": "x", "y": [ "F-Engineering" ], "yaxis": "y", "type": "bar" }, { "alignmentgroup": "True", "cliponaxis": true, "hovertemplate": "%{x:d}", "legendgroup": "G-Physics", "marker": { "color": "#FF6692", "pattern": { "shape": "" } }, "name": "G-Physics", "offsetgroup": "G-Physics", "orientation": "h", "showlegend": false, "textangle": 0, "textfont": { "size": 12 }, "textposition": "outside", "texttemplate": "%{x}", "x": [ 231 ], "xaxis": "x", "y": [ "G-Physics" ], "yaxis": "y", "type": "bar" }, { "alignmentgroup": "True", "cliponaxis": true, "hovertemplate": "%{x:d}", "legendgroup": "H-Electricity", "marker": { "color": "#B6E880", "pattern": { "shape": "" } }, "name": "H-Electricity", "offsetgroup": "H-Electricity", "orientation": "h", "showlegend": false, "textangle": 0, "textfont": { "size": 12 }, "textposition": "outside", "texttemplate": "%{x}", "x": [ 328 ], "xaxis": "x", "y": [ "H-Electricity" ], "yaxis": "y", "type": "bar" }, { "fillpattern": { "shape": "" }, "hovertemplate": "%{y:d}", "legendgroup": "A-Human necessities", "line": { "color": "#636efa" }, "marker": { "symbol": "circle" }, "mode": "lines", "name": "A-Human necessities", "orientation": "v", "showlegend": false, "stackgroup": "1", "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x2", "y": [ 7.0, 10.0, 25.0, 33.0, 43.0, 53.0, 66.0, 75.0, 90.0, 94.0, 99.0 ], "yaxis": "y2", "type": "scatter" }, { "fillpattern": { "shape": "" }, "hovertemplate": "%{y:d}", "legendgroup": "B-Operations; transporting", "line": { "color": "#EF553B" }, "marker": { "symbol": "circle" }, "mode": "lines", "name": "B-Operations; transporting", "orientation": "v", "showlegend": false, "stackgroup": "1", "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x2", "y": [ 15.0, 23.0, 38.0, 52.0, 65.0, 85.0, 126.0, 186.0, 258.0, 317.0, 341.0 ], "yaxis": "y2", "type": "scatter" }, { "fillpattern": { "shape": "" }, "hovertemplate": "%{y:d}", "legendgroup": "C-Chemistry; metallurgy", "line": { "color": "#00cc96" }, "marker": { "symbol": "circle" }, "mode": "lines", "name": "C-Chemistry; metallurgy", "orientation": "v", "showlegend": false, "stackgroup": "1", "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x2", "y": [ 9.0, 20.0, 33.0, 42.0, 52.0, 62.0, 78.0, 87.0, 111.0, 136.0, 145.0 ], "yaxis": "y2", "type": "scatter" }, { "fillpattern": { "shape": "" }, "hovertemplate": "%{y:d}", "legendgroup": "D-Textiles; paper", "line": { "color": "#ab63fa" }, "marker": { "symbol": "circle" }, "mode": "lines", "name": "D-Textiles; paper", "orientation": "v", "showlegend": false, "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, 14.0, 14.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": false, "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, 9.0, 13.0, 23.0, 30.0, 44.0, 49.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": false, "stackgroup": "1", "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x2", "y": [ 7.0, 10.0, 26.0, 32.0, 39.0, 46.0, 62.0, 88.0, 115.0, 141.0, 148.0 ], "yaxis": "y2", "type": "scatter" }, { "fillpattern": { "shape": "" }, "hovertemplate": "%{y:d}", "legendgroup": "G-Physics", "line": { "color": "#FF6692" }, "marker": { "symbol": "circle" }, "mode": "lines", "name": "G-Physics", "orientation": "v", "showlegend": false, "stackgroup": "1", "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x2", "y": [ 5.0, 17.0, 29.0, 44.0, 69.0, 87.0, 110.0, 147.0, 185.0, 215.0, 231.0 ], "yaxis": "y2", "type": "scatter" }, { "fillpattern": { "shape": "" }, "hovertemplate": "%{y:d}", "legendgroup": "H-Electricity", "line": { "color": "#B6E880" }, "marker": { "symbol": "circle" }, "mode": "lines", "name": "H-Electricity", "orientation": "v", "showlegend": false, "stackgroup": "1", "x": [ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 ], "xaxis": "x2", "y": [ 14.0, 28.0, 38.0, 55.0, 90.0, 133.0, 204.0, 268.0, 291.0, 317.0, 328.0 ], "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, 3.0, 15.0, 8.0, 10.0, 10.0, 13.0, 9.0, 15.0, 4.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": [ 15.0, 8.0, 15.0, 14.0, 13.0, 20.0, 41.0, 60.0, 72.0, 59.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, 13.0, 9.0, 10.0, 10.0, 16.0, 9.0, 24.0, 25.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, 1.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, 3.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": [ 7.0, 3.0, 16.0, 6.0, 7.0, 7.0, 16.0, 26.0, 27.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": [ 5.0, 12.0, 12.0, 15.0, 25.0, 18.0, 23.0, 37.0, 38.0, 30.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": [ 14.0, 14.0, 10.0, 17.0, 35.0, 43.0, 71.0, 64.0, 23.0, 26.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.5714285714285714, 1.1428571428571428, 0.14285714285714285, 0.42857142857142855, 0.42857142857142855, 0.8571428571428571, 0.2857142857142857, 1.1428571428571428, -0.42857142857142855, -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.4666666666666667, 0.0, -0.06666666666666667, -0.13333333333333333, 0.3333333333333333, 1.7333333333333334, 3.0, 3.8, 2.933333333333333, 0.6 ], "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.4444444444444444, 0.0, 0.1111111111111111, 0.1111111111111111, 0.7777777777777778, 0.0, 1.6666666666666667, 1.7777777777777777, 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, 0.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, 0.5, 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.5714285714285714, 1.2857142857142858, -0.14285714285714285, 0.0, 0.0, 1.2857142857142858, 2.7142857142857144, 2.857142857142857, 2.7142857142857144, 0.0 ], "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.4, 1.4, 2.0, 4.0, 2.6, 3.6, 6.4, 6.6, 5.0, 2.2 ], "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.0, -0.2857142857142857, 0.21428571428571427, 1.5, 2.0714285714285716, 4.071428571428571, 3.5714285714285716, 0.6428571428571429, 0.8571428571428571, -0.21428571428571427 ], "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": 14 } }, "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", " trace.showlegend=False\n", " figsuper.add_trace(trace,\n", " row=1, col=2\n", " )\n", "\n", "for trace in list(year_output_by_domain.select_traces()):\n", " trace.showlegend=False\n", " figsuper.add_trace(trace,\n", " row=2, col=1\n", " )\n", "\n", "for trace in list(rel_output_by_domain.select_traces()):\n", " trace.showlegend=False\n", " figsuper.add_trace(trace,\n", " row=2, col=2\n", " )\n", "\n", "\n", "figsuper.update_layout(yaxis={'categoryorder':'total ascending'}, barmode='relative')\n", "figsuper.update_yaxes(\n", " showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n", " ticks=\"outside\")\n", "figsuper.update_xaxes(\n", " showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n", " ticks=\"outside\")\n", "\n", "figsuper.update_layout({'template':\"plotly\",\"font_family\":\"Montserrat\"})\n", "figsuper['layout']['xaxis1'].update(tickformat=\".0f\")\n", "figsuper['layout']['yaxis2'].update(tickformat=\".0f\")\n", "figsuper['layout']['yaxis4'].update(zeroline=True, zerolinewidth=0.5, zerolinecolor='grey',tickformat=\".0%\")\n", "figsuper['layout'][f'xaxis'][\"range\"] = [0,400]\n", "for i in range(2,5):\n", " figsuper['layout'][f'xaxis{i}'][\"range\"] = [2010.8,2022.2]\n", "figsuper['layout'][\"font\"][\"size\"]=14\n", "for a in figsuper['layout'][\"annotations\"]:\n", " a[\"font\"][\"size\"] = 14\n", "figsuper.show(config= dict(displayModeBar = False, responsive = True),height=800,width=1600,scale = 4)\n", "figsuper.write_image(rf\"{fromdir}/plots/ipc_classes.png\",height=900,width=1600,scale = 4)" ], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 425, "outputs": [], "source": [], "metadata": { "collapsed": false } } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", "version": "2.7.6" } }, "nbformat": 4, "nbformat_minor": 0 }