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

20349 lines
4.2 MiB
Plaintext

1 year ago
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"outputs": [
{
"data": {
"text/html": " <script type=\"text/javascript\">\n window.PlotlyConfig = {MathJaxConfig: 'local'};\n if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: \"STIX-Web\"}});}\n if (typeof require !== 'undefined') {\n require.undef(\"plotly\");\n define('plotly', function(require, exports, module) {\n /**\n* plotly.js v2.20.0\n* Copyright 2012-2023, Plotly, Inc.\n* All rights reserved.\n* Licensed under the MIT license\n*/\n/*! For license information please see plotly.min.js.LICENSE.txt */\n!function(t,e){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define([],e):\"object\"==typeof exports?exports.Plotly=e():t.Plotly=e()}(self,(function(){return function(){var t={98847:function(t,e,r){\"use strict\";var n=r(71828),i={\"X,X div\":'direction:ltr;font-family:\"Open Sans\",verdana,arial,sans-serif;margin:0;padding:0;',\"X input,X button\":'font-family:\"Open Sans\",verdana,arial,sans-serif;',\"X input:focus,X button:focus\":\"outline:none;\",\"X a\":\"text-decoration:none;\",\"X a:hover\":\"text-decoration:none;\",\"X .crisp\":\"shape-rendering:crispEdges;\",\"X .user-select-none\":\"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;\",\"X svg\":\"overflow:hidden;\",\"X svg a\":\"fill:#447adb;\",\"X svg a:hover\":\"fill:#3c6dc5;\",\"X .main-svg\":\"position:absolute;top:0;left:0;pointer-events:none;\",\"X .main-svg .draglayer\":\"pointer-events:all;\",\"X .cursor-default\":\"cursor:default;\",\"X .cursor-pointer\":\"cursor:pointer;\",\"X .cursor-crosshair\":\"cursor:crosshair;\",\"X .cursor-move\":\"cursor:move;\",\"X .cursor-col-resize\":\"cursor:col-resize;\",\"X .cursor-row-resize\":\"cursor:row-resize;\",\"X .cursor-ns-resize\":\"cursor:ns-resize;\",\"X .cursor-ew-resize\":\"cursor:ew-resize;\",\"X .cursor-sw-resize\":\"cursor:sw-resize;\",\"X .cursor-s-resize\":\"cursor:s-resize;\",\"X .cursor-se-resize\":\"cursor:se-resize;\",\"X .cursor-w-resize\":\"cursor:w-resize;\",\"X .cursor-e-resize\":\"cursor:e-resize;\",\"X .cursor-nw-resize\":\"cursor:nw-resize;\",\"X .cursor-n-resize\":\"cursor:n-resize;\",\"X .cursor-ne-resize\":\"cursor:ne-resize;\",\"X .cursor-grab\":\"cursor:-webkit-grab;cursor:grab;\",\"X .modebar\":\"position:absolute;top:2px;right:2px;\",\"X .ease-bg\":\"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;\",\"X .modebar--hover>:not(.watermark)\":\"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;\",\"X:hover .modebar--hover .modebar-group\":\"opacity:1;\",\"X .modebar-group\":\"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;\",\"X .modebar-btn\":\"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;\",\"X .modebar-btn svg\":\"position:relative;top:2px;\",\"X .modebar.vertical\":\"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;\",\"X .modebar.vertical svg\":\"top:-1px;\",\"X .modebar.vertical .modebar-group\":\"display:block;float:none;padding-left:0px;padding-bottom:8px;\",\"X .modebar.vertical .modebar-group .modebar-btn\":\"display:block;text-align:center;\",\"X [data-title]:before,X [data-title]:after\":\"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;\",\"X [data-title]:hover:before,X [data-title]:hover:after\":\"display:block;opacity:1;\",\"X [data-title]:before
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"import os\n",
"import numpy as np\n",
"import pandas as pd\n",
"import janitor\n",
"import matplotlib.pyplot as plt\n",
"import seaborn as sns\n",
"from matplotlib.ticker import MaxNLocator\n",
"import math\n",
"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
}
1 year ago
},
{
"cell_type": "code",
"execution_count": 2,
"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": 44,
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" ctry_code iso_alpha3 st3_name organisation_flag continent eu_member \n",
"137 MA MAR Morocco Africa \\\n",
"\n",
" epo_member oecd_member discontinued \n",
"137 \n"
]
}
],
"source": [
"print(tls_801[tls_801[\"ctry_code\"]==\"MA\"])"
1 year ago
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 3,
"outputs": [],
"source": [
"outdir=\"raw_files_csv\""
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 4,
"outputs": [
{
"data": {
"text/plain": " appln_id appln_auth appln_nr appln_kind appln_filing_date \n8641708 531710630 CN 201811380088 A 2018-11-20 \\\n5246513 489770910 CN 201711004155 A 2017-10-24 \n6383260 503205376 CN 201810447617 A 2018-05-11 \n1437288 417129813 GR 20120100519 A 2012-10-12 \n4304665 479561975 CN 201510807721 A 2015-11-19 \n8099995 524172492 CN 201911055629 A 2019-10-31 \n2496404 443580404 CN 201510312381 A 2015-06-08 \n2862771 448112136 CN 201510736913 A 2015-11-03 \n8746800 533540106 CN 202010109483 A 2020-02-22 \n12407625 580940603 CN 202210840515 A 2022-07-18 \n\n appln_filing_year appln_nr_original ipr_type receiving_office \n8641708 2018 201811380088 PI NaN \\\n5246513 2017 201711004155 PI NaN \n6383260 2018 201810447617 PI NaN \n1437288 2012 20120100519 PI NaN \n4304665 2015 201510807721 PI NaN \n8099995 2019 201911055629 PI NaN \n2496404 2015 2015103123811 PI NaN \n2862771 2015 2015107369134 PI NaN \n8746800 2020 202010109483 PI NaN \n12407625 2022 202210840515 PI NaN \n\n internat_appln_id ... earliest_pat_publn_id granted \n8641708 0 ... 531710631 N \\\n5246513 0 ... 489770911 N \n6383260 0 ... 503205377 N \n1437288 0 ... 417129814 Y \n4304665 0 ... 479561976 N \n8099995 0 ... 524172493 N \n2496404 0 ... 443580405 N \n2862771 0 ... 448112137 N \n8746800 0 ... 533540107 Y \n12407625 0 ... 580940604 N \n\n docdb_family_id inpadoc_family_id docdb_family_size \n8641708 70744210 531710630 1 \\\n5246513 61141626 489770910 1 \n6383260 64213024 503205376 1 \n1437288 50483672 417129813 1 \n4304665 58885008 479561975 1 \n8099995 68978631 524172492 1 \n2496404 53812114 443580404 1 \n2862771 54991770 448112136 1 \n8746800 71149074 533540106 1 \n12407625 83518531 580940603 1 \n\n nb_citing_docdb_fam nb_applicants nb_inventors is_prior is_pct \n8641708 0 1 1 1 0 \n5246513 0 1 5 1 0 \n6383260 0 1 3 1 0 \n1437288 0 1 1 1 0 \n4304665 0 1 1 1 0 \n8099995 0 1 3 1 0 \n2496404 3 2 3 1 0 \n2862771 2 1 5 1 0 \n8746800 0 1 5 1 0 \n12407625 0 1 6 1 0 \n\n[10 rows x 28 columns]",
"text/html": "<div>\n<style scoped>\n .dataframe tbody tr th:only-of-type {\n vertical-align: middle;\n }\n\n .dataframe tbody tr th {\n vertical-align: top;\n }\n\n .dataframe thead th {\n text-align: right;\n }\n</style>\n<table border=\"1\" class=\"dataframe\">\n <thead>\n <tr style=\"text-align: right;\">\n <th></th>\n <th>appln_id</th>\n <th>appln_auth</th>\n <th>appln_nr</th>\n <th>appln_kind</th>\n <th>appln_filing_date</th>\n <th>appln_filing_year</th>\n <th>appln_nr_original</th>\n <th>ipr_type</th>\n <th>receiving_office</th>\n <th>internat_appln_id</th>\n <th>...</th>\n <th>earliest_pat_publn_id</th>\n <th>granted</th>\n <th>docdb_family_id</th>\n <th>inpadoc_family_id</th>\n <th>docdb_family_size</th>\n <th>nb_citing_docdb_fam</th>\n <th>nb_applicants</th>\n <th>nb_inventors</th>\n <th>is_prior</th>\n <th>is_pct</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>8641708</th>\n <td>531710630</td>\n <td>CN</td>\n <td>201811380088</td>\n <td>A</td>\n <td>2018-11-20</td>\n <td>2018</td>\n <td>201811380088</td>\n <td>PI</td>\n <td>NaN</td>\n <td>0</td>\n <td>...</td>\n <td>531710631</td>\n <td>N</td>\n <td>70744210</td>\n <td>531710630</td>\n <td>1</td>\n <td>0</td>\n <td>1</td>\n <td>1</td>\n <td>1</td>\n <td>0</td>\n </tr>\n <tr>\n <th>5246513</th>\n <td>489770910</td>\n <td>CN</td>\n <td>201711004155</td>\n <td>A</td>\n <td>2017-10-24</td>\n <td>2017</td>\n <td>201711004155</td>\n <td>PI</td>\n <td>NaN</td>\n <td>0</td>\n <td>...</td>\n <td>489770911</td>\n <td>N</td>\n <td>61141626</td>\n <td>489770910</td>\n <td>1</td>\n <td>0</td>\n <td>1</td>\n <td>5</td>\n <td>1</td>\n <td>0</td>\n </tr>\n <tr>\n <th>6383260</th>\n <td>503205376</td>\n <td>CN</td>\n <td>201810447617</td>\n <td>A</td>\n <td>2018-05-11</td>\n <td>2018</td>\n <td>201810447617</td>\n <td>PI</td>\n <td>NaN</td>\n <td>0</td>\n <td>...</td>\n <td>503205377</td>\n <td>N</td>\n <td>64213024</td>\n <td>503205376</td>\n <td>1</td>\n <td>0</td>\n <td>1</td>\n <td>3</td>\n <td>1</td>\n <td>0</td>\n </tr>\n <tr>\n <th>1437288</th>\n <td>417129813</td>\n <td>GR</td>\n <td>20120100519</td>\n <td>A</td>\n <td>2012-10-12</td>\n <td>2012</td>\n <td>20120100519</td>\n <td>PI</td>\n <td>NaN</td>\n <td>0</td>\n <td>...</td>\n <td>417129814</td>\n <td>Y</td>\n <td>50483672</td>\n <td>417129813</td>\n <td>1</td>\n <td>0</td>\n <td>1</td>\n <td>1</td>\n <td>1</td>\n <td>0</td>\n </tr>\n <tr>\n <th>4304665</th>\n <td>479561975</td>\n <td>CN</td>\n <td>201510807721</td>\n <td>A</td>\n <td>2015-11-19</td>\n <td>2015</td>\n <td>201510807721</td>\n <td>PI</td>\n <td>NaN</td>\n <td>0</td>\n <td>...</td>\n <td>479561976</td>\n <td>N</td>\n <td>58885008</td>\n <td>479561975</td>\n <td>1</td>\n <td>0</td>\n <td>1</td>\n <td>1</td>\n <td>1</td>\n <td>0</td>\n </tr>\n <tr>\n <th>8099995</th>\n <td>524172492</td>\n <td>CN</td>\n <td>201911055629</td>\n <td>A</td>\n <td>2019-10-31</td>\n <td>2019</td>\n <td>201911055629</td>\n <td>PI</td>\n <td>NaN</td>\n <td>0</td>\n <td>...</td>\n <td>524172493</td>\n <td>N</td>\n <td>68978631</td>\n <td>524172492</td>\n <td>1</td>\n <td>0</td>\n <td>1</td>\n <td>3</td>\n <td>1</td>\n <td>0</td>\n </tr>\n <tr>\n <th>2496404</th>\n <td>443580404</td>\n <td>CN</td>\n <td>201510312
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln = pd.read_csv(f\"{outdir}/01_patent_subset.csv\", low_memory=False)\n",
"appln.sample(10)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 5,
"outputs": [
{
"data": {
"text/plain": "(54368949, 13184309)"
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln_pers = pd.read_csv(f\"{outdir}/02_persons_2011_2022.csv\",low_memory=False)\n",
"len(appln_pers[\"appln_id\"]), len(appln[\"appln_id\"])"
1 year ago
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 6,
"outputs": [
{
"data": {
"text/plain": "(54368949, 12646904)"
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
1 year ago
"source": [
"appln_pers[\"appln_id\"].isin(appln[\"appln_id\"]).sum(), appln[\"appln_id\"].isin(appln_pers[\"appln_id\"]).sum()"
1 year ago
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 7,
"outputs": [
{
"data": {
"text/plain": "12415"
1 year ago
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln_ch_ids = appln_pers[appln_pers[\"person_ctry_code\"] == \"CN\"][\"appln_id\"].unique()\n",
"appln_eu_ids = appln_pers[appln_pers[\"person_ctry_code\"].isin(scope_countries)][\"appln_id\"].unique()\n",
"\n",
"appln_scope_ids = np.intersect1d(appln_ch_ids, appln_eu_ids, assume_unique=False)\n",
"appln_scope = appln_pers[((appln_pers[\"appln_id\"].isin(appln_scope_ids)) &\n",
" (appln_pers[\"person_ctry_code\"].isin(list(scope_countries) + [\"CN\"])))]\n",
"\n",
"appln_scope[\"appln_id\"].nunique()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 8,
"outputs": [
{
"data": {
"text/plain": "(6584667, 18789)"
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln_pers_haninfo = pd.read_csv(f\"first_round/tls_206_scope_v2.csv\",\n",
" usecols=[\"person_id\", \"han_id\", \"han_name\", \"psn_sector\"])\n",
"\n",
"appln_pers_haninfo[\"han_id\"].nunique(), appln_scope[\"han_id\"].nunique()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"pers_sector_primary = appln_pers_haninfo.groupby(\"han_id\", as_index=False)[\"psn_sector\"].agg(\n",
" lambda x: \"UNKNOWN\" if len(pd.Series.mode(x))==0 else pd.Series.mode(x)[0]).rename(columns={\"psn_sector\":\"psn_sector_primary\"})"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 80,
"outputs": [
{
"data": {
"text/plain": "Index(['appln_id', 'appln_auth', 'person_id', 'invt_seq_nr', 'applt_seq_nr',\n 'person_name', 'person_ctry_code', 'han_id', 'han_name', 'psn_sector_x',\n 'psn_sector_y', 'person_ctry_code_fullname', 'appln_auth_fullname',\n 'person_ctry_ISO3', 'person_ctry_type', 'auth_ISO3', 'auth_ctry_type',\n 'psn_sector_primary_x', 'psn_sector_primary_y'],\n dtype='object')"
},
"execution_count": 80,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln_pers_f.columns"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 81,
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"12415\n"
]
}
],
"source": [
"appln_pers_f = appln_scope.merge(pers_sector_primary, on='han_id', how=\"left\").rename(columns={\"psn_sector_primary_y\":\"psn_sector_primary\"})\n",
"appln_pers_f[\"psn_sector_primary\"] = appln_pers_f[\"psn_sector_primary\"].fillna(\"UNKNOWN\")\n",
"print(appln_pers_f[\"appln_id\"].nunique())"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 84,
"outputs": [],
"source": [
"appln_pers_f[\"han_name\"] = appln_pers_f[\"han_name\"].str.replace(\"Zhejiang Geely Holding Group Co., Ltd.\",\n",
" \"ZHEJIANG GEELY HOLDINGGROUP CO LTD\")"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 29,
"outputs": [],
"source": [
"g = appln_pers.groupby('appln_id')[\"person_ctry_code\"]\n",
"missing_ctry_data = g.count().rsub(g.size(), axis=0).ge(1).astype(int).reset_index()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 186,
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" appln_id appln_auth person_id invt_seq_nr applt_seq_nr \n",
"21408 556911606 MA 42012433 2 0 \\\n",
"\n",
" person_name person_ctry_code han_id han_name \n",
"21408 TURTINEN, SAMULI FI 142012433 TURTINEN, SAMULI \\\n",
"\n",
" psn_sector_x psn_sector_y person_ctry_code_fullname appln_auth_fullname \n",
"21408 INDIVIDUAL INDIVIDUAL Finland Morocco \\\n",
"\n",
" person_ctry_ISO3 person_ctry_type auth_ISO3 auth_ctry_type \n",
"21408 FIN EU MAR EU \\\n",
"\n",
" psn_sector_primary_x psn_sector_primary \n",
"21408 INDIVIDUAL INDIVIDUAL \n"
]
}
],
"source": [
"print(appln_pers_f.sample())"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 190,
"outputs": [
{
"data": {
"text/plain": "(10810, 10084)"
},
"execution_count": 190,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appl_eu_applt = appln_pers_f[((appln_pers_f[\"applt_seq_nr\"]>0)&\n",
" (appln_pers_f[\"person_ctry_type\"]!=\"China\"))][\"appln_id\"].unique()\n",
"\n",
"appl_ch_applt = appln_pers_f[((appln_pers_f[\"applt_seq_nr\"]>0)&\n",
" (appln_pers_f[\"person_ctry_type\"]==\"China\"))][\"appln_id\"].unique()\n",
"\n",
"len(appl_eu_applt),len(appl_ch_applt)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 201,
"outputs": [
{
"data": {
"text/plain": "(7638, 8788)"
},
"execution_count": 201,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appl_eu_invt = appln_pers_f[((appln_pers_f[\"invt_seq_nr\"]>0)&\n",
" (appln_pers_f[\"person_ctry_type\"]!=\"China\"))][\"appln_id\"].unique()\n",
"\n",
"appl_ch_invt = appln_pers_f[((appln_pers_f[\"invt_seq_nr\"]>0)&\n",
" (appln_pers_f[\"person_ctry_type\"]==\"China\"))][\"appln_id\"].unique()\n",
"\n",
"len(appl_eu_invt),len(appl_ch_invt)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 194,
"outputs": [
{
"data": {
"text/plain": "12197"
},
"execution_count": 194,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln_pers_f[((appln_pers_f[\"applt_seq_nr\"]>0))][\"appln_id\"].nunique()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 41,
"outputs": [],
"source": [
"# missing_ctry_data[missing_ctry_data[\"person_ctry_code\"]>0]"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 31,
"outputs": [],
"source": [
"appln_ana = appln.merge(missing_ctry_data,on=\"appln_id\")"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 32,
"outputs": [
{
"data": {
"text/plain": "(12646904, 13184309)"
},
"execution_count": 32,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln_ana[\"appln_id\"].nunique(),appln[\"appln_id\"].nunique()"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 45,
"outputs": [
{
"data": {
"text/plain": "<Axes: xlabel='appln_auth'>"
},
"execution_count": 45,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"text/plain": "<Figure size 640x480 with 1 Axes>",
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAiEAAAG6CAYAAADeXpaaAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAABAA0lEQVR4nO3deXwU9f3H8fduAgQIJAEkClZUUAh3SNBao6VcAnIEFAtyKSIgZxXUAlUiyB2tkGg5JAoKohQIFQE5PUAEjUBKNPwItYBAJEA4chMyvz9oVpbdTXazCcPxej4ePB5kZj4z353dnXnPzHdmLYZhGAIAALjKrGY3AAAA3JwIIQAAwBSEEAAAYApCCAAAMAUhBAAAmIIQAgAATEEIAQAApiCEAAAAUxBCAACAKXzNbkBxTp06L2fPdLVYpOrVq7gcXxzqqaeeeuqpp7706wvHu+OaDyGGoSJXUnHjvZ0/9dRTTz311FNf+vUSl2MAAIBJCCEAAMAUhBAAAGAKQggAADAFIQQAAJiCEAIAAExBCAEAAKYghAAAAFMQQgAAgCkIIQAAwBQlDiF5eXnq3Lmzdu7c6XKaH3/8UT179lSzZs302GOPad++fSVdHAAAuMGUKITk5ubqhRde0IEDB1xOk5WVpcGDBys8PFwrV65UaGiohgwZoqysrBI3FgAA3Dg8DiEpKSl64okndPjw4SKnW7t2rSpUqKCXXnpJdevW1YQJE1S5cmWtX7++xI0FAAA3Do9DyK5du3T//ffr448/LnK6vXv3KiwsTBaLRZJksVjUokUL7dmzp0QNBQAANxZfTwuefPJJt6ZLS0tTvXr17IZVr169yEs4zvwvw7gc7mq8u/OlnnrqqaeeeuqLZrVaLjupcGmYr69VhnHp/4ZhqKDA8Hi+HocQd2VnZ6t8+fJ2w8qXL6+8vDyP5lO9ehWvxns7f+qpp5566qm/2esvFhjysdqni8DAykWOd0eZhZAKFSo4BI68vDz5+fl5NJ9Tp87bktblLJZLK9DV+OJQTz311FNPPfXFT+/jY1VQUGWNXrZbKScyHMbXq+mv2b1ClZ6eqYsXC2zzd0eZhZDg4GCdPHnSbtjJkydVs2ZNj+ZjGCpyJRU33tv5U0899dRTTz31UsqJDCUdO1fsPD1RZg8ra9asmXbv3i3jfy0yDEM//PCDmjVrVlaLBAAA15FSDSFpaWnKycmRJHXo0EHnzp3TlClTlJKSoilTpig7O1sdO3YszUUCAIDrVKmGkIiICK1du1aS5O/vr3nz5ikhIUE9evTQ3r17NX/+fFWqVKk0FwkAAK5TXvUJ2b9/f5F/N23aVKtWrfJmEQAAwEtWq0XWK+5e8fH57TxEQcFvt9heTWXWMRUAAJjParUoILCSfH3sL34EBf12i23+xQKdPZN11YMIIQQAgBuY1WqRr4+12FtsrVYLIQQAAJQ+d26xvdrK7BZdAACAohBCAACAKQghAADAFIQQAABgCkIIAAAwBSEEAACYghACAABMQQgBAACmIIQAAABTEEIAAIApCCEAAMAUhBAAAGAKQggAADAFIQQAAJiCEAIAAExBCAEAAKYghAAAAFMQQgAAgCkIIQAAwBSEEAAAYApCCAAAMAUhBAAAmIIQAgAATEEIAQAApiCEAAAAUxBCAACAKQghAADAFIQQAABgCkIIAAAwBSEEAACYghACAABMQQgBAACmIIQAAABTEEIAAIApCCEAAMAUhBAAAGAKQggAADAFIQQAAJiCEAIAAExBCAEAAKYghAAAAFMQQgAAgCkIIQAAwBSEEAAAYApCCAAAMAUhBAAAmIIQAgAATEEIAQAApiCEAAAAUxBCAACAKQghAADAFIQQAABgCkIIAAAwBSEEAACYghACAABM4XEIyc3N1fjx4xUeHq6IiAjFxcW5nHbjxo3q2LGjQkND1bt3byUlJXnVWAAAcOPwOITMnDlT+/bt06JFizRx4kTFxsZq/fr1DtMdOHBAY8aM0ZAhQ7R69WqFhIRoyJAhys7OLpWGAwCA65tHISQrK0vLly/XhAkT1KhRI7Vr106DBg3SkiVLHKbdvn276tWrp8jISN1xxx164YUXlJaWppSUlFJrPAAANwOr1SJfX6t8fa3y8bm06/bxsdqGWa0Wk1tYMh6FkOTkZOXn5ys0NNQ2LCwsTHv37lVBQYHdtIGBgUpJSVFCQoIKCgq0cuVK+fv764477iidlgMAcBOwWi0KCKykoKDKtn+S7P4OCKx0XQYRX08mTktLU1BQkMqXL28bVqNGDeXm5urMmTOqVq2abXinTp20ZcsWPfnkk/Lx8ZHVatW8efMUEBDgUQMtLtZp4XBX492dL/XUU0899dRfy/VWq0W+PlaNXrZbKScyHMbXq+mv2b1CZbVaZBhGyRp1Rdu8qfdkHh6FkOzsbLsAIsn2d15ent3w9PR0paWl6dVXX1WzZs300Ucfady4cVq1apWqV6/u9jKrV6/i1Xhv50899dRTTz3110J9yokMJR0753J84RmSkjKj3qMQUqFCBYewUfi3n5+f3fDo6Gjde++96tOnjyRp8uTJ6tixo1asWKHBgwe7vcxTp87LWbCzWC69ga7GF4d66qmnnnrqr4d6Hx+rWzv49PRMXbxY4DD8atcXvj53eBRCgoODlZ6ervz8fPn6XipNS0uTn5+fqlatajdtUlKS+vXrZ/vbarWqQYMGOnbsmCeLlGGoyDepuPHezp966qmnnnrqr8V6V/O8nuo96pgaEhIiX19f7dmzxzYsISFBTZo0kdVqP6uaNWvq4MGDdsN+/vln3X777Z61EAAA3JA8CiEVK1ZUZGSkoqKilJiYqE2bNikuLk79+/eXdOmsSE5OjiTpiSee0CeffKL4+HgdOnRI0dHROnbsmLp37176rwIAAFx3PLocI0njxo1TVFSUBgwYIH9/f40cOVLt27eXJEVERGjatGnq0aOHOnXqpMzMTM2bN0+pqakKCQnRokWLPOqUCgAAblweh5CKFStqxowZmjFjhsO4/fv32/3ds2dP9ezZs+StAwAANyx+wA4AAJiCEAIAAExBCAEAAKYghAAAAFMQQgAAgCkIIQAAwBSEEAAAYApCCAAAMAUhBAAAmIIQAgAATEEIAQAApiCEAAAAUxBCAACAKQghAADAFIQQAABgCkIIAAAwBSEEAACYghACAABMQQgBAACmIIQAAABTEEIAAIApCCEAAMAUhBAAAGAKQggAADAFIQQAAJiCEAIAAExBCAEAAKYghAAAAFMQQgAAgCkIIQAAwBSEEAAAYApCCAAAMAUhBAAAmIIQAgAATEEIAQAApiCEAAAAUxBCAACAKQghAADAFIQQAABgCkIIAAAwBSEEAACYghACAABMQQgBAACmIIQAAABTEEIAAIApfM1uAAAANzqr1SKr1WI3zMfnt/MABQWGCgqMq90s0xFCAAAoQ1arRQGBleTrY3/xISiosu3/+RcLdPZM1k0XRAghAACUIavVIl8fq0Yv262UExkO4+vV9NfsXqGyWi2EEAAAUPpSTmQo6dg5s5txTaFjKgAAMAUhBAAAmIIQAgAATEEIAQAApiCEAAAAUxBCAACAKQghAADAFIQQAABgCkIIAAAwBSEEAACYwuMQkpubq/Hjxys8PFwRERGKi4tzOe3+/fvVu3dvNW3aVF26dNG3337rVWMBAMCNw+MQMnPmTO3bt0+LFi3SxIkTFRsbq/Xr1ztMd/78eQ0cOFD16tXTp59+qnbt2mnEiBE6depUqTQcAABc3zwKIVlZWVq+fLkmTJigRo0aqV27dho0aJCWLFniMO2qVatUqVIlRUVFqU6dOho1apTq1Kmjffv2lVrjAQDA9cujX9FNTk5Wfn6+QkNDbcPCwsI0d+5cFRQUyGr9LdPs2rVLbdq0kY+Pj23YihUrSqHJAADgRuBRCElLS1NQUJDKly9vG1ajRg3l5ubqzJkzqlatmm34kSNH1LRpU73yyivasmWLateurZdffllhYWEeNdBiKXq4q/Huzpd66qmnnnrqr2a9O/O+nus9mYdHISQ7O9sugEiy/Z2Xl2c
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"ctry_ana = appln_ana.groupby(\"appln_auth\")[\"person_ctry_code\"]\n",
"(ctry_ana.sum()/ctry_ana.size()).sort_values().plot(kind=\"bar\")"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 51,
"outputs": [
{
"data": {
"text/plain": "<Axes: xlabel='appln_filing_year'>"
},
"execution_count": 51,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"text/plain": "<Figure size 640x480 with 1 Axes>",
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjgAAAGxCAYAAABvIsx7AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAABSpklEQVR4nO3de1xUdf4/8NfAyHATRW6CkpoKKuKIoFJi65aadGW9tOJuZmlai9r2y6WUXUVd1l3EvRjdzCBNa42NzZX8Wuu3zW9asYUySEoK3hC5zCA3GS4Oc35/4BydiGT0DGcur+fj4ePhzPnMOZ/PmylenvM556MQBEEAERERkQNxkbsDRERERFJjwCEiIiKHw4BDREREDocBh4iIiBwOAw4RERE5HAYcIiIicjgMOERERORwGHCIiIjI4TDgEBERkcNhwCEiIiKHo5S7A3KqrW2CMy5UoVAAfn59nXb8UmEdpcE6SoN1lAbrKA1r1dG0355w6oAjCHDqL7Czj18qrKM0WEdpsI7SYB2lIWcdeYmKiIiIHA4DDhERETkcBhwiIiJyOAw4RERE5HAYcIiIiMjhMOAQERGRw2HAISIiIofDgENEREQOhwGHiIiIHA4DDhERETkcBhwiIiJyOAw4RERE5HCcerFNZ1Xd1IY+nu5yd4OIiMhqeAbHyeiutGFu1td49JXDaDMY5e4OERGRVTDgOJlvyhvQctWIc7V65BRekrs7REREVsGA42SKLjWKf8/Ov4ArbQYZe0NERGQdDDhOxhRw+rgq0NBiwDvfXJS5R0RERNJjwHEize0GnNZeAQCkPDAaAPDuNxdR29wuZ7eIiIgkx4DjRL6tbIJRAAb2VeGJu4ciYmBftBqMyPrqgtxdIyIikhQDjhMxXZ4aN8gHCoUCK+4ZBgDILarExfoWObtGREQkKQYcJyIGnBAfAEDMHf0RO8QXBqOAN744L2fXiIiIJMWA4ySMgoDjlZ0BZ/wgH/H9pKlDAQAfn6zBqZorcnSNiIhIcgw4TuJMrR5X2jrgrnTBiABv8f1RQX0xIzwAAoDXjpyTrX9ERERSYsBxEqbLU2OD+0LpojDb9syUoXB1UeDwmcs4drFBju4RERFJigHHSXx//s2N7vD1QELkQABA5udnIQhCr/aNiIhIagw4TqKoovPMzLhB/X5w++LYO6BSuqDoUiM+P3O5N7tGREQkOQYcJ3BZ347y+lYAQGRw3x9sE+CtwvwJgwAArx4+iw4jz+IQEZH9YsBxAsevXZ4a5ucJH/c+3bZbOHEw+qqUKNPpceBkTW91j4iISHIMOE7gx+bf3MjHvQ8WTQoFALzxxTm0G4xW7xsREZE1MOA4AU1FzwIOADwWFYIAbzdUNrYht6jS2l0jIiKyCgYcB9duMOJkdRMAQN2DgOPexxVL7hoCAMj66gKa2w1W7R8REZE1MOA4uO9qrqC9Q0A/dyXu8PXo0WceGTsQd/h6oK7lKt79psLKPSQiIpIeA46Du3H+jUKhuEnrTkoXBZ6dMhQAsOubi6jTt1ure0RERFbBgOPgND2cYPx994b5Y3SQN/RXO5CdX26NrhEREVkNA44DEwRBPIOj7uYBf91xUSiQFDcMAPAPzSVUNrZK3j8iIiJrsTjgtLW1Yc2aNYiJiUFcXByysrK6bXvixAnMmzcParUac+bMQXFxsdn2vLw8TJ8+HWq1GklJSbh8+foTdAVBQEZGBmJjYzFp0iSkp6fDaLx+23JDQwNeeOEFREVF4Z577sHOnTstHYrDu9TYitrmdri6KDA6yPvmH/ieyUN9MfGO/rjaIeCNL85boYdERETWYXHASU9PR3FxMXbs2IF169YhMzMTBw4c6NJOr9dj6dKliImJQW5uLqKiorBs2TLo9XoAQFFREVJSUrB8+XLs2bMHjY2NWL16tfj57Oxs5OXlITMzE1u3bsW+ffuQnZ0tbn/hhRdw8eJF7NmzB2vWrEFGRgY+//zzW6mBwzKdvRkV6A33Pq63tI+kqZ1ncfZ/W41SXbNkfSMiIrImiwKOXq9HTk4OUlJSEBERgRkzZmDJkiXYvXt3l7b79++HSqVCcnIyhg8fjpSUFHh5eYlhaNeuXYiPj0dCQgJGjRqF9PR0HDp0COXlnfM9du7ciZUrVyImJgaxsbFYtWqVeJySkhJ88cUXyMjIQFhYGGbNmoW5c+fi6NGjt1sPh2LJ82+6EzGwL+4d6Q8BwGuHz0nTMSIiIiuzKOCUlJTAYDAgKipKfC86Ohoajcbs8hEAaDQaREdHi3fuKBQKTJgwAYWFheL2mJgYsX1wcDBCQkKg0WhQXV2NyspKTJw40ew4FRUVqKmpwX//+1+MGjUKoaGh4va1a9fiueees2Q4Du/6/JtbDzgA8OyUoXBRAP9XVgvNtUU7iYiIbJnSksZarRa+vr5wc3MT3/P390dbWxvq6+sxYMAAs7YjRoww+7yfnx9Onz4NAKipqUFgYGCX7VVVVdBqtQBgtt3f3x8AUFVVhfLycgwePBhvvfUWdu/eDTc3NyxatAjz58+3ZDjo4V3TdulKmwFl1y4pqQf5mI3V9Peejn+YvyceGTsQHx6vwiuHz2Lbz9U9vuXckVlaR/phrKM0WEdpsI7SsFYdLdmfRQGnpaXFLNwAEF+3t7f3qK2pXWtra7fbW1tbzfb9/ePo9Xp88cUXMBgM+Nvf/oZTp05hw4YN8PX1xf3339/j8fj5/fDK2o6g5LQORgEY1N8Do4f6/2AbS8b/4kNjsP9kDY5dbETx5Vb8NDzw5h9yEo78PepNrKM0WEdpsI7SkLOOFgUclUrVJciYXru7u/eoraldd9s9PDzMwoxKpTI7joeHB1xdXdHR0YGMjAx4enoiMjISJSUl2LNnj0UBp7a2CYLQ4+Z25fOTVQCAsQO9odM1mW1TKDq/dJaMvw+An48PwTvfXMSmvBOIGOAOFyf/J86t1JG6Yh2lwTpKg3WUhrXqaNpvT1gUcIKCglBXVweDwQClsvOjWq0W7u7u8PHx6dJWp9OZvafT6cTLTt1tDwgIQFBQkLjvwYMHi38HgICAAAQGBmLgwIHw9PQUPzts2DAcPnzYkuFAEOCwX+DrE4z7dTtGS8f/xKRQ/PN4JU5pm/HxSS1mjeZZHMCxv0e9iXWUBusoDdZRGnLW0aJJxqNHj4ZSqRQnCgNAQUEBIiMj4eJiviu1Wo1jx45BuDYyQRBw9OhRqNVqcXtBQYHYvrKyEpWVlVCr1QgKCkJISIjZ9oKCAoSEhCAwMBBqtRoVFRVoarp+ZuLMmTMYNGiQJcNxWB1GAccrr00wvo07qL6vn0cfLJzYObH79SPncLXDeJNPEBERycOigOPh4YGEhASkpqaiqKgIBw8eRFZWFhYuXAig8yyLaf7MrFmz0NjYiLS0NJSWliItLQ0tLS2Ij48HACQmJmLv3r3IyclBSUkJkpOTMW3aNPHOqMTERGRkZCA/Px/5+fnYsmWLeJy7774bw4YNw4svvoiysjLs378fOTk5SExMlKww9uxsrR7N7R3w6OOC4QFeku57/oRBGODZBxUNrfhnUZWk+yYiIpKKxQ/6W716NSIiIvDEE09g/fr1WLFiBWbOnAkAiIuLw/79+wEA3t7eeOONN1BQUIDZs2dDo9Fg27Zt4mWlqKgobNiwAa+88goSExPRr18/bNq0STzO4sWL8cADD2D58uV47rnn8Oijj2LRokUAAFdXV2zbtg1GoxGzZ89Geno6XnrpJdx33323Ww+HUHSp81buiGAfKF2knSfj0ccVS+4aAgB466vz0Ld3SLp/IiIiKSgEwXmvMup0jjmJbN3/lGD/iRosjr0Dz1xbFfxGCgXg79/3lsdv6DBi3tvf4GJ9K56dMhRPxd5x+522Q7dbR+rEOkqDdZQG6ygNa9XRtN+e4GKbDqjoFlcQ7ymlqwueuXsoAGDn1+Wob7lqleMQERHdKgYcB1Pb3I6L9Z3zoCKDrRNwAGDGqACEBXihub0Db+eXW+04REREt4IBx8Ecv3b25k4/T/R1t+gpABZxUSjEhThzCitQ1dhqtWMRERFZigHHwWgkWn+qJ+4
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"ch_ana = appln_ana.query(\"appln_auth=='CN'\").groupby(\"appln_filing_year\")[\"person_ctry_code\"]\n",
"((1-(ch_ana.sum()/ch_ana.size()))*100).plot(kind=\"line\")"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 11,
"outputs": [],
"source": [
"# That one Chinese auth co-patent"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 16,
"outputs": [
{
"data": {
"text/plain": " appln_id appln_auth person_id invt_seq_nr applt_seq_nr \n124 419052362 CN 5361204 0 1 \\\n137 419052362 CN 51988464 1 0 \n\n person_name person_ctry_code han_id \n124 Schneider Electric Industries SAS FR 808003 \\\n137 JUZHONG SONG CN 151988464 \n\n han_name psn_sector_x psn_sector_y \n124 SCHNEIDER ELECT IND SAS COMPANY COMPANY \n137 JUZHONG SONG UNKNOWN UNKNOWN ",
"text/html": "<div>\n<style scoped>\n .dataframe tbody tr th:only-of-type {\n vertical-align: middle;\n }\n\n .dataframe tbody tr th {\n vertical-align: top;\n }\n\n .dataframe thead th {\n text-align: right;\n }\n</style>\n<table border=\"1\" class=\"dataframe\">\n <thead>\n <tr style=\"text-align: right;\">\n <th></th>\n <th>appln_id</th>\n <th>appln_auth</th>\n <th>person_id</th>\n <th>invt_seq_nr</th>\n <th>applt_seq_nr</th>\n <th>person_name</th>\n <th>person_ctry_code</th>\n <th>han_id</th>\n <th>han_name</th>\n <th>psn_sector_x</th>\n <th>psn_sector_y</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>124</th>\n <td>419052362</td>\n <td>CN</td>\n <td>5361204</td>\n <td>0</td>\n <td>1</td>\n <td>Schneider Electric Industries SAS</td>\n <td>FR</td>\n <td>808003</td>\n <td>SCHNEIDER ELECT IND SAS</td>\n <td>COMPANY</td>\n <td>COMPANY</td>\n </tr>\n <tr>\n <th>137</th>\n <td>419052362</td>\n <td>CN</td>\n <td>51988464</td>\n <td>1</td>\n <td>0</td>\n <td>JUZHONG SONG</td>\n <td>CN</td>\n <td>151988464</td>\n <td>JUZHONG SONG</td>\n <td>UNKNOWN</td>\n <td>UNKNOWN</td>\n </tr>\n </tbody>\n</table>\n</div>"
},
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln_scope.query(\"appln_auth=='CN'\")"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 17,
"outputs": [
{
"data": {
"text/plain": " appln_id appln_auth appln_nr appln_kind appln_filing_date \n1568550 419052362 CN 201210551425 A 2012-12-18 \\\n\n appln_filing_year appln_nr_original ipr_type receiving_office \n1568550 2012 2012105514252 PI NaN \\\n\n internat_appln_id ... earliest_pat_publn_id granted docdb_family_id \n1568550 0 ... 419052363 Y 49886800 \\\n\n inpadoc_family_id docdb_family_size nb_citing_docdb_fam \n1568550 413446088 4 15 \\\n\n nb_applicants nb_inventors is_prior is_pct \n1568550 1 1 1 0 \n\n[1 rows x 28 columns]",
"text/html": "<div>\n<style scoped>\n .dataframe tbody tr th:only-of-type {\n vertical-align: middle;\n }\n\n .dataframe tbody tr th {\n vertical-align: top;\n }\n\n .dataframe thead th {\n text-align: right;\n }\n</style>\n<table border=\"1\" class=\"dataframe\">\n <thead>\n <tr style=\"text-align: right;\">\n <th></th>\n <th>appln_id</th>\n <th>appln_auth</th>\n <th>appln_nr</th>\n <th>appln_kind</th>\n <th>appln_filing_date</th>\n <th>appln_filing_year</th>\n <th>appln_nr_original</th>\n <th>ipr_type</th>\n <th>receiving_office</th>\n <th>internat_appln_id</th>\n <th>...</th>\n <th>earliest_pat_publn_id</th>\n <th>granted</th>\n <th>docdb_family_id</th>\n <th>inpadoc_family_id</th>\n <th>docdb_family_size</th>\n <th>nb_citing_docdb_fam</th>\n <th>nb_applicants</th>\n <th>nb_inventors</th>\n <th>is_prior</th>\n <th>is_pct</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>1568550</th>\n <td>419052362</td>\n <td>CN</td>\n <td>201210551425</td>\n <td>A</td>\n <td>2012-12-18</td>\n <td>2012</td>\n <td>2012105514252</td>\n <td>PI</td>\n <td>NaN</td>\n <td>0</td>\n <td>...</td>\n <td>419052363</td>\n <td>Y</td>\n <td>49886800</td>\n <td>413446088</td>\n <td>4</td>\n <td>15</td>\n <td>1</td>\n <td>1</td>\n <td>1</td>\n <td>0</td>\n </tr>\n </tbody>\n</table>\n<p>1 rows × 28 columns</p>\n</div>"
},
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln.query('appln_id==419052362')"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 14,
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"12415\n"
]
},
{
"data": {
"text/plain": " appln_id appln_auth appln_nr appln_kind appln_filing_date \n863506 407017979 WO 2011083302 W 2011-12-01 \\\n7100916 510736006 WO 2019058105 W 2019-03-29 \n1603837 419656375 WO 2012087307 W 2012-12-24 \n7183441 511620156 WO 2017107161 W 2017-10-20 \n5588243 494153147 EP 18171845 A 2018-05-11 \n... ... ... ... ... ... \n2295082 440740099 WO 2013088240 W 2013-11-29 \n12569735 582929150 WO 2021092424 W 2021-05-08 \n8050187 523796882 WO 2018091667 W 2018-06-15 \n5582748 494089044 WO 2016104438 W 2016-11-03 \n716562 405080010 WO 2013056669 W 2013-03-28 \n\n appln_filing_year appln_nr_original ipr_type receiving_office \n863506 2011 CN2011/083302 PI CN \\\n7100916 2019 EP2019/058105 PI EP \n1603837 2012 CN2012/087307 PI CN \n7183441 2017 CN2017/107161 PI CN \n5588243 2018 18171845 PI NaN \n... ... ... ... ... \n2295082 2013 CN2013/088240 PI CN \n12569735 2021 CN2021/092424 PI CN \n8050187 2018 CN2018/091667 PI CN \n5582748 2016 CN2016/104438 PI CN \n716562 2013 EP2013/056669 PI EP \n\n internat_appln_id ... earliest_pat_publn_id granted \n863506 0 ... 407072959 N \\\n7100916 0 ... 538911303 N \n1603837 0 ... 419656376 N \n7183441 0 ... 511620157 N \n5588243 0 ... 520464429 N \n... ... ... ... ... \n2295082 0 ... 440740100 N \n12569735 0 ... 582929151 N \n8050187 0 ... 523796883 N \n5582748 0 ... 494089045 N \n716562 0 ... 422430381 N \n\n docdb_family_id inpadoc_family_id docdb_family_size \n863506 48534637 407017979 2 \\\n7100916 66001221 510736006 4 \n1603837 51019632 419626782 4 \n7183441 66173145 511620156 4 \n5588243 62152456 494153147 3 \n... ... ... ... \n2295082 53198253 440740099 4 \n12569735 84027865 582929150 1 \n8050187 68841789 523796882 4 \n5582748 62076012 494089044 3 \n716562 48045501 405080010 5 \n\n nb_citing_docdb_fam nb_applicants nb_inventors is_prior is_pct \n863506 1 6 5 1 1 \n7100916 0 2 2 1 1 \n1603837 12 2 5 1 1 \n7183441 1 2 3 1 1 \n5588243 3 1 2 1 0 \n... ... ... ... ... ... \n2295082 2 5 4 1 1 \n12569735
"text/html": "<div>\n<style scoped>\n .dataframe tbody tr th:only-of-type {\n vertical-align: middle;\n }\n\n .dataframe tbody tr th {\n vertical-align: top;\n }\n\n .dataframe thead th {\n text-align: right;\n }\n</style>\n<table border=\"1\" class=\"dataframe\">\n <thead>\n <tr style=\"text-align: right;\">\n <th></th>\n <th>appln_id</th>\n <th>appln_auth</th>\n <th>appln_nr</th>\n <th>appln_kind</th>\n <th>appln_filing_date</th>\n <th>appln_filing_year</th>\n <th>appln_nr_original</th>\n <th>ipr_type</th>\n <th>receiving_office</th>\n <th>internat_appln_id</th>\n <th>...</th>\n <th>earliest_pat_publn_id</th>\n <th>granted</th>\n <th>docdb_family_id</th>\n <th>inpadoc_family_id</th>\n <th>docdb_family_size</th>\n <th>nb_citing_docdb_fam</th>\n <th>nb_applicants</th>\n <th>nb_inventors</th>\n <th>is_prior</th>\n <th>is_pct</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>863506</th>\n <td>407017979</td>\n <td>WO</td>\n <td>2011083302</td>\n <td>W</td>\n <td>2011-12-01</td>\n <td>2011</td>\n <td>CN2011/083302</td>\n <td>PI</td>\n <td>CN</td>\n <td>0</td>\n <td>...</td>\n <td>407072959</td>\n <td>N</td>\n <td>48534637</td>\n <td>407017979</td>\n <td>2</td>\n <td>1</td>\n <td>6</td>\n <td>5</td>\n <td>1</td>\n <td>1</td>\n </tr>\n <tr>\n <th>7100916</th>\n <td>510736006</td>\n <td>WO</td>\n <td>2019058105</td>\n <td>W</td>\n <td>2019-03-29</td>\n <td>2019</td>\n <td>EP2019/058105</td>\n <td>PI</td>\n <td>EP</td>\n <td>0</td>\n <td>...</td>\n <td>538911303</td>\n <td>N</td>\n <td>66001221</td>\n <td>510736006</td>\n <td>4</td>\n <td>0</td>\n <td>2</td>\n <td>2</td>\n <td>1</td>\n <td>1</td>\n </tr>\n <tr>\n <th>1603837</th>\n <td>419656375</td>\n <td>WO</td>\n <td>2012087307</td>\n <td>W</td>\n <td>2012-12-24</td>\n <td>2012</td>\n <td>CN2012/087307</td>\n <td>PI</td>\n <td>CN</td>\n <td>0</td>\n <td>...</td>\n <td>419656376</td>\n <td>N</td>\n <td>51019632</td>\n <td>419626782</td>\n <td>4</td>\n <td>12</td>\n <td>2</td>\n <td>5</td>\n <td>1</td>\n <td>1</td>\n </tr>\n <tr>\n <th>7183441</th>\n <td>511620156</td>\n <td>WO</td>\n <td>2017107161</td>\n <td>W</td>\n <td>2017-10-20</td>\n <td>2017</td>\n <td>CN2017/107161</td>\n <td>PI</td>\n <td>CN</td>\n <td>0</td>\n <td>...</td>\n <td>511620157</td>\n <td>N</td>\n <td>66173145</td>\n <td>511620156</td>\n <td>4</td>\n <td>1</td>\n <td>2</td>\n <td>3</td>\n <td>1</td>\n <td>1</td>\n </tr>\n <tr>\n <th>5588243</th>\n <td>494153147</td>\n <td>EP</td>\n <td>18171845</td>\n <td>A</td>\n <td>2018-05-11</td>\n <td>2018</td>\n <td>18171845</td>\n <td>PI</td>\n <td>NaN</td>\n <td>0</td>\n <td>...</td>\n <td>520464429</td>\n <td>N</td>\n <td>62152456</td>\n <td>494153147</td>\n <td>3</td>\n <td>3</td>\n <td>1</td>\n <td>2</td>\n <td>1</td>\n <td>0</td>\n </tr>\n <tr>\n <th>...</th>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n <td>...</td>\n </tr>\n <tr>\n <th>2295082</th>\n <td>440740099</td>\n <td>WO</td>\n <td>2013088240</td>\n <td>W</td>\n <td>2013-11-29<
},
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln_f = appln[appln[\"appln_id\"].isin(appln_scope['appln_id'])].copy()\n",
"print(appln_f[\"appln_id\"].nunique())\n",
"\n",
"appln_f.sample(100)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 202,
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"C:\\Users\\radvanyi\\AppData\\Local\\Temp\\ipykernel_11448\\1187413588.py:1: SettingWithCopyWarning:\n",
"\n",
"\n",
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
"Try using .loc[row_indexer,col_indexer] = value instead\n",
"\n",
"See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy\n",
"\n",
"C:\\Users\\radvanyi\\AppData\\Local\\Temp\\ipykernel_11448\\1187413588.py:2: SettingWithCopyWarning:\n",
"\n",
"\n",
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
"Try using .loc[row_indexer,col_indexer] = value instead\n",
"\n",
"See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy\n",
"\n",
"C:\\Users\\radvanyi\\AppData\\Local\\Temp\\ipykernel_11448\\1187413588.py:3: SettingWithCopyWarning:\n",
"\n",
"\n",
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
"Try using .loc[row_indexer,col_indexer] = value instead\n",
"\n",
"See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy\n",
"\n",
"C:\\Users\\radvanyi\\AppData\\Local\\Temp\\ipykernel_11448\\1187413588.py:4: SettingWithCopyWarning:\n",
"\n",
"\n",
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
"Try using .loc[row_indexer,col_indexer] = value instead\n",
"\n",
"See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy\n",
"\n"
]
}
],
"source": [
"appln_f[\"ch_applt\"] = appln_f[\"appln_id\"].isin(appl_ch_applt)\n",
"appln_f[\"eu_applt\"] = appln_f[\"appln_id\"].isin(appl_eu_applt)\n",
"appln_f[\"ch_invt\"] = appln_f[\"appln_id\"].isin(appl_ch_invt)\n",
"appln_f[\"eu_invt\"] = appln_f[\"appln_id\"].isin(appl_eu_invt)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 204,
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"eu_applt False True \n",
"ch_applt \n",
"False 218 2113\n",
"True 1387 8697\n",
"eu_invt False True \n",
"ch_invt \n",
"False 74 3553\n",
"True 4703 4085\n"
]
}
],
"source": [
"applt_co_occur = pd.crosstab(appln_f[\"ch_applt\"], appln_f[\"eu_applt\"])\n",
"print(applt_co_occur)\n",
"invt_co_occur = pd.crosstab(appln_f[\"ch_invt\"], appln_f[\"eu_invt\"])\n",
"print(invt_co_occur)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 205,
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"C:\\Users\\radvanyi\\AppData\\Local\\Temp\\ipykernel_11448\\3989028682.py:11: SettingWithCopyWarning:\n",
"\n",
"\n",
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
"Try using .loc[row_indexer,col_indexer] = value instead\n",
"\n",
"See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy\n",
"\n",
"C:\\Users\\radvanyi\\AppData\\Local\\Temp\\ipykernel_11448\\3989028682.py:12: SettingWithCopyWarning:\n",
"\n",
"\n",
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
"Try using .loc[row_indexer,col_indexer] = value instead\n",
"\n",
"See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy\n",
"\n"
]
}
],
"source": [
"def bool_calc(eu,ch):\n",
" if eu==True and ch==False:\n",
" return \"European \"\n",
" if ch==True and eu==False:\n",
" return \"Chinese \"\n",
" if ch==False and eu==False:\n",
" return \"Third-party \"\n",
" if ch==True and eu==True:\n",
" return \"Co-\"\n",
"\n",
"appln_f[\"ownership\"] = appln_f.apply(lambda x: bool_calc(x[\"eu_applt\"],x[\"ch_applt\"])+\"ownership\" ,axis=1)\n",
"appln_f[\"invention\"] = appln_f.apply(lambda x: bool_calc(x[\"eu_invt\"],x[\"ch_invt\"])+\"invention\" ,axis=1)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 207,
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"invention Chinese invention Co-invention European invention \n",
"ownership \n",
"Chinese ownership 0 465 922 \\\n",
"Co-ownership 3994 1998 2631 \n",
"European ownership 709 1404 0 \n",
"Third-party ownership 0 218 0 \n",
"\n",
"invention Third-party invention \n",
"ownership \n",
"Chinese ownership 0 \n",
"Co-ownership 74 \n",
"European ownership 0 \n",
"Third-party ownership 0 \n"
]
}
],
"source": [
"ship_co_occur = pd.crosstab(appln_f[\"ownership\"], appln_f[\"invention\"])\n",
"print(ship_co_occur)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 52,
"outputs": [],
"source": [
"record_col=\"appln_id\"\n",
"fromdir =outdir"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 209,
"outputs": [],
"source": [
"ship_co_occur.to_excel(f\"{fromdir}/plots/_ships.xlsx\",index=True)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 55,
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"hovertemplate": "Year:%{x:d}<br>Number of co-publications:%{y:d}",
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+text+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"text": [
660.0,
924.0,
913.0,
867.0,
928.0,
1015.0,
1357.0,
1440.0,
1557.0,
1669.0,
1080.0,
5.0
],
"textfont": {
"size": 12
},
"textposition": "top center",
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x",
"y": [
660,
924,
913,
867,
928,
1015,
1357,
1440,
1557,
1669,
1080,
5
],
"yaxis": "y",
"type": "scatter"
},
{
"hovertemplate": "Year:%{x:d}<br>Rel.growth in co-publications:%{y:.0%}",
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+text+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"text": [
0.0,
0.4,
0.38333333333333336,
0.31363636363636366,
0.40606060606060607,
0.5378787878787878,
1.0560606060606061,
1.1818181818181819,
1.3590909090909091,
1.5287878787878788,
0.6363636363636364,
-0.9924242424242424
],
"textfont": {
"size": 12
},
"textposition": "top center",
"texttemplate": "%{y:.0%}",
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x2",
"y": [
0.0,
0.4,
0.38333333333333336,
0.31363636363636366,
0.40606060606060607,
0.5378787878787878,
1.0560606060606061,
1.1818181818181819,
1.3590909090909091,
1.5287878787878788,
0.6363636363636364,
-0.9924242424242424
],
"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,
2500
]
},
"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": "<div> <div id=\"9aa1148d-f419-4503-9225-0401b88047e5\" class=\"plotly-graph-div\" style=\"height:525px; width:100%;\"></div> <script type=\"text/javascript\"> require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"9aa1148d-f419-4503-9225-0401b88047e5\")) { Plotly.newPlot( \"9aa1148d-f419-4503-9225-0401b88047e5\", [{\"hovertemplate\":\"Year:%{x:d}<br>Number of co-publications:%{y:d}\",\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"},\"mode\":\"markers+text+lines\",\"name\":\"\",\"orientation\":\"v\",\"showlegend\":false,\"text\":[660.0,924.0,913.0,867.0,928.0,1015.0,1357.0,1440.0,1557.0,1669.0,1080.0,5.0],\"textfont\":{\"size\":12},\"textposition\":\"top center\",\"x\":[2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022],\"xaxis\":\"x\",\"y\":[660,924,913,867,928,1015,1357,1440,1557,1669,1080,5],\"yaxis\":\"y\",\"type\":\"scatter\"},{\"hovertemplate\":\"Year:%{x:d}<br>Rel.growth in co-publications:%{y:.0%}\",\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"},\"mode\":\"markers+text+lines\",\"name\":\"\",\"orientation\":\"v\",\"showlegend\":false,\"text\":[0.0,0.4,0.38333333333333336,0.31363636363636366,0.40606060606060607,0.5378787878787878,1.0560606060606061,1.1818181818181819,1.3590909090909091,1.5287878787878788,0.6363636363636364,-0.9924242424242424],\"textfont\":{\"size\":12},\"textposition\":\"top center\",\"texttemplate\":\"%{y:.0%}\",\"x\":[2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022],\"xaxis\":\"x2\",\"y\":[0.0,0.4,0.38333333333333336,0.31363636363636366,0.40606060606060607,0.5378787878787878,1.0560606060606061,1.1818181818181819,1.3590909090909091,1.5287878787878788,0.6363636363636364,-0.9924242424242424],\"yaxis\":\"y2\",\"type\":\"scatter\"}], {\"template\":{\"data\":{\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"barpolar\"}],\"bar\":[{\"error_x\":{\"color\":\"#2a3f5f\"},\"error_y\":{\"color\":\"#2a3f5f\"},\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"bar\"}],\"carpet\":[{\"aaxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"baxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"type\":\"carpet\"}],\"choropleth\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"choropleth\"}],\"contourcarpet\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"contourcarpet\"}],\"contour\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"contour\"}],\"heatmapgl\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"heatmapgl\"}],\"heatmap\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"# Co-patents per year\n",
"data = (appln_f.groupby(['appln_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=[\"appln_filing_year\"], ascending=True)[record_col][0]\n",
"data[record_col + \"_relative_growth\"] = (data[record_col] - data[record_col + \"_relative_growth\"]) / data[\n",
" record_col + \"_relative_growth\"]\n",
"\n",
"data = data.sort_values(by=[\"appln_filing_year\"], ascending=[True])\n",
"data[record_col + \"_cumsum\"] = (data[record_col].cumsum())\n",
"\n",
"year_output = px.line(data, x=\"appln_filing_year\", y=record_col, markers=True, text=record_col)\n",
"year_output.update_traces(textposition='top center', textfont_size=12)\n",
"year_output.update_traces(hovertemplate='Year:%{x:d}<br>Number of co-publications:%{y:d}')\n",
"\n",
"year_rel_output = px.line(data, x=\"appln_filing_year\", y=record_col + \"_relative_growth\", markers=True,\n",
" text=record_col + \"_relative_growth\")\n",
"year_rel_output.update_traces(textposition='top center', textfont_size=12, texttemplate='%{y:.0%}')\n",
"year_rel_output.update_traces(hovertemplate='Year:%{x:d}<br>Rel.growth in co-publications:%{y:.0%}')\n",
"\n",
"figsuper = make_subplots(rows=2, cols=1, subplot_titles=[\"Co-patents per year\", \"Relative growth of co-patents\"],\n",
" specs=[\n",
" [{\"type\": \"xy\"}],\n",
" [{\"type\": \"xy\"}]\n",
" ])\n",
"\n",
"for trace in list(year_output.select_traces()):\n",
" figsuper.add_trace(trace,\n",
" row=1, col=1\n",
" )\n",
"\n",
"for trace in list(year_rel_output.select_traces()):\n",
" figsuper.add_trace(trace,\n",
" row=2, col=1\n",
" )\n",
"\n",
"figsuper.update_layout(yaxis={'categoryorder': 'total ascending'}, barmode='relative')\n",
"figsuper.update_yaxes(\n",
" showgrid=True, showline=True, linewidth=1, linecolor='black', mirror=True,\n",
" ticks=\"outside\")\n",
"figsuper.update_xaxes(\n",
" showgrid=True, showline=True, linewidth=1, linecolor='black', mirror=True,\n",
" ticks=\"outside\")\n",
"figsuper.update_layout({'template': \"plotly\", \"font_family\": \"Montserrat\"})\n",
"figsuper['layout']['yaxis2'].update(zerolinecolor='grey', tickformat=\".0%\")\n",
"# for i in[\"xaxis\",\"xaxis2\"]:\n",
"# figsuper['layout'][f'{i}'][\"range\"] = [2010.8,2022.5]\n",
"#\n",
"figsuper['layout'][\"yaxis\"][\"range\"] = [0, 2500]\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": 61,
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Austria",
"Austria",
"Austria",
"Austria",
"Austria",
"Austria",
"Austria",
"Austria",
"Austria",
"Austria",
"Austria",
"Austria"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x21",
"y": [
0.0,
1.0,
0.0,
1.0,
1.0,
1.0,
2.0,
0.0,
0.0,
1.0,
0.0,
0.0
],
"yaxis": "y21",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x22",
"y": [
0.0,
1.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
2.0,
1.0,
1.0,
0.0
],
"yaxis": "y22",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"China",
"China",
"China",
"China",
"China",
"China",
"China",
"China",
"China",
"China",
"China",
"China"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x23",
"y": [
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"yaxis": "y23",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Czechia",
"Czechia",
"Czechia",
"Czechia",
"Czechia",
"Czechia",
"Czechia",
"Czechia",
"Czechia",
"Czechia",
"Czechia",
"Czechia"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x24",
"y": [
0.0,
0.0,
1.0,
0.0,
1.0,
0.0,
0.0,
1.0,
2.0,
1.0,
0.0,
0.0
],
"yaxis": "y24",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x25",
"y": [
0.0,
0.0,
2.0,
1.0,
1.0,
1.0,
0.0,
0.0,
3.0,
1.0,
0.0,
0.0
],
"yaxis": "y25",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"EPO",
"EPO",
"EPO",
"EPO",
"EPO",
"EPO",
"EPO",
"EPO",
"EPO",
"EPO",
"EPO",
"EPO"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x16",
"y": [
41.0,
48.0,
66.0,
71.0,
87.0,
88.0,
117.0,
159.0,
174.0,
159.0,
65.0,
0.0
],
"yaxis": "y16",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Finland",
"Finland",
"Finland",
"Finland",
"Finland",
"Finland",
"Finland",
"Finland",
"Finland",
"Finland",
"Finland",
"Finland"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x17",
"y": [
4.0,
3.0,
0.0,
1.0,
3.0,
8.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0
],
"yaxis": "y17",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"France",
"France",
"France",
"France",
"France",
"France",
"France",
"France",
"France",
"France",
"France",
"France"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x18",
"y": [
18.0,
20.0,
36.0,
16.0,
18.0,
28.0,
24.0,
17.0,
27.0,
30.0,
21.0,
0.0
],
"yaxis": "y18",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Germany",
"Germany",
"Germany",
"Germany",
"Germany",
"Germany",
"Germany",
"Germany",
"Germany",
"Germany",
"Germany",
"Germany"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x19",
"y": [
36.0,
47.0,
68.0,
81.0,
80.0,
46.0,
97.0,
57.0,
77.0,
54.0,
49.0,
0.0
],
"yaxis": "y19",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x20",
"y": [
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"yaxis": "y20",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x11",
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
1.0,
0.0,
0.0
],
"yaxis": "y11",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x12",
"y": [
1.0,
0.0,
0.0,
1.0,
0.0,
5.0,
1.0,
0.0,
4.0,
2.0,
5.0,
1.0
],
"yaxis": "y12",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Morocco",
"Morocco",
"Morocco",
"Morocco",
"Morocco",
"Morocco",
"Morocco",
"Morocco",
"Morocco",
"Morocco",
"Morocco",
"Morocco"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x13",
"y": [
0.0,
0.0,
0.0,
0.0,
2.0,
0.0,
1.0,
5.0,
1.0,
0.0,
0.0,
0.0
],
"yaxis": "y13",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x14",
"y": [
0.0,
0.0,
1.0,
6.0,
3.0,
4.0,
8.0,
11.0,
1.0,
13.0,
2.0,
0.0
],
"yaxis": "y14",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x15",
"y": [
0.0,
0.0,
0.0,
1.0,
1.0,
2.0,
1.0,
1.0,
0.0,
3.0,
0.0,
0.0
],
"yaxis": "y15",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x6",
"y": [
0.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0
],
"yaxis": "y6",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x7",
"y": [
0.0,
1.0,
0.0,
1.0,
0.0,
0.0,
0.0,
1.0,
0.0,
1.0,
0.0,
0.0
],
"yaxis": "y7",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x8",
"y": [
5.0,
2.0,
3.0,
5.0,
3.0,
3.0,
5.0,
0.0,
2.0,
1.0,
2.0,
3.0
],
"yaxis": "y8",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x9",
"y": [
0.0,
0.0,
0.0,
0.0,
2.0,
1.0,
3.0,
2.0,
0.0,
3.0,
1.0,
0.0
],
"yaxis": "y9",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x10",
"y": [
0.0,
1.0,
0.0,
0.0,
6.0,
0.0,
0.0,
0.0,
0.0,
4.0,
0.0,
0.0
],
"yaxis": "y10",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x",
"y": [
13.0,
32.0,
29.0,
27.0,
45.0,
66.0,
91.0,
57.0,
31.0,
14.0,
6.0,
0.0
],
"yaxis": "y",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"WIPO",
"WIPO",
"WIPO",
"WIPO",
"WIPO",
"WIPO",
"WIPO",
"WIPO",
"WIPO",
"WIPO",
"WIPO",
"WIPO"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x2",
"y": [
542.0,
766.0,
707.0,
655.0,
674.0,
761.0,
1007.0,
1128.0,
1232.0,
1380.0,
927.0,
1.0
],
"yaxis": "y2",
"type": "scatter"
}
],
"layout": {
"annotations": [
{
"showarrow": false,
"text": "United Kingdom",
"x": 0.09200000000000001,
"xanchor": "center",
"xref": "paper",
"y": 0.144,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "WIPO",
"x": 0.29600000000000004,
"xanchor": "center",
"xref": "paper",
"y": 0.144,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Portugal",
"x": 0.09200000000000001,
"xanchor": "center",
"xref": "paper",
"y": 0.358,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Romania",
"x": 0.29600000000000004,
"xanchor": "center",
"xref": "paper",
"y": 0.358,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Spain",
"x": 0.5,
"xanchor": "center",
"xref": "paper",
"y": 0.358,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Sweden",
"x": 0.7040000000000002,
"xanchor": "center",
"xref": "paper",
"y": 0.358,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Switzerland",
"x": 0.908,
"xanchor": "center",
"xref": "paper",
"y": 0.358,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Lithuania",
"x": 0.09200000000000001,
"xanchor": "center",
"xref": "paper",
"y": 0.572,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Luxembourg",
"x": 0.29600000000000004,
"xanchor": "center",
"xref": "paper",
"y": 0.572,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Morocco",
"x": 0.5,
"xanchor": "center",
"xref": "paper",
"y": 0.572,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Netherlands",
"x": 0.7040000000000002,
"xanchor": "center",
"xref": "paper",
"y": 0.572,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Poland",
"x": 0.908,
"xanchor": "center",
"xref": "paper",
"y": 0.572,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "EPO",
"x": 0.09200000000000001,
"xanchor": "center",
"xref": "paper",
"y": 0.7859999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Finland",
"x": 0.29600000000000004,
"xanchor": "center",
"xref": "paper",
"y": 0.7859999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "France",
"x": 0.5,
"xanchor": "center",
"xref": "paper",
"y": 0.7859999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Germany",
"x": 0.7040000000000002,
"xanchor": "center",
"xref": "paper",
"y": 0.7859999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Ireland",
"x": 0.908,
"xanchor": "center",
"xref": "paper",
"y": 0.7859999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Austria",
"x": 0.09200000000000001,
"xanchor": "center",
"xref": "paper",
"y": 1.0,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Belgium",
"x": 0.29600000000000004,
"xanchor": "center",
"xref": "paper",
"y": 1.0,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "China",
"x": 0.5,
"xanchor": "center",
"xref": "paper",
"y": 1.0,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Czechia",
"x": 0.7040000000000002,
"xanchor": "center",
"xref": "paper",
"y": 1.0,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Denmark",
"x": 0.908,
"xanchor": "center",
"xref": "paper",
"y": 1.0,
"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.144
],
"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.144
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis3": {
"anchor": "y3",
"domain": [
0.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.144
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis4": {
"anchor": "y4",
"domain": [
0.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.144
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis5": {
"anchor": "y5",
"domain": [
0.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.144
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis6": {
"anchor": "y6",
"domain": [
0.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.214,
0.358
],
"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.214,
0.358
],
"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.214,
0.358
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis9": {
"anchor": "y9",
"domain": [
0.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.214,
0.358
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis10": {
"anchor": "y10",
"domain": [
0.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.214,
0.358
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis11": {
"anchor": "y11",
"domain": [
0.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.428,
0.572
],
"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.428,
0.572
],
"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.428,
0.572
],
"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.428,
0.572
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis15": {
"anchor": "y15",
"domain": [
0.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.428,
0.572
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis16": {
"anchor": "y16",
"domain": [
0.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
},
"yaxis16": {
"anchor": "x16",
"domain": [
0.6419999999999999,
0.7859999999999999
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis17": {
"anchor": "y17",
"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
},
"yaxis17": {
"anchor": "x17",
"domain": [
0.6419999999999999,
0.7859999999999999
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis18": {
"anchor": "y18",
"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
},
"yaxis18": {
"anchor": "x18",
"domain": [
0.6419999999999999,
0.7859999999999999
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis19": {
"anchor": "y19",
"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
},
"yaxis19": {
"anchor": "x19",
"domain": [
0.6419999999999999,
0.7859999999999999
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis20": {
"anchor": "y20",
"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
},
"yaxis20": {
"anchor": "x20",
"domain": [
0.6419999999999999,
0.7859999999999999
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis21": {
"anchor": "y21",
"domain": [
0.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
},
"yaxis21": {
"anchor": "x21",
"domain": [
0.856,
1.0
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis22": {
"anchor": "y22",
"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
},
"yaxis22": {
"anchor": "x22",
"domain": [
0.856,
1.0
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis23": {
"anchor": "y23",
"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
},
"yaxis23": {
"anchor": "x23",
"domain": [
0.856,
1.0
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis24": {
"anchor": "y24",
"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
},
"yaxis24": {
"anchor": "x24",
"domain": [
0.856,
1.0
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
},
"xaxis25": {
"anchor": "y25",
"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
},
"yaxis25": {
"anchor": "x25",
"domain": [
0.856,
1.0
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"tickfont": {
"size": 16
}
}
},
"config": {
"plotlyServerURL": "https://plotly.com"
}
},
"text/html": "<div> <div id=\"f97807b2-0311-48cf-88fa-964c43f50aa6\" class=\"plotly-graph-div\" style=\"height:525px; width:100%;\"></div> <script type=\"text/javascript\"> require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"f97807b2-0311-48cf-88fa-964c43f50aa6\")) { Plotly.newPlot( \"f97807b2-0311-48cf-88fa-964c43f50aa6\", [{\"hovertemplate\":\"<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}\",\"hovertext\":[\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\"],\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"},\"mode\":\"markers+lines\",\"name\":\"\",\"orientation\":\"v\",\"showlegend\":false,\"x\":[2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022],\"xaxis\":\"x21\",\"y\":[0.0,1.0,0.0,1.0,1.0,1.0,2.0,0.0,0.0,1.0,0.0,0.0],\"yaxis\":\"y21\",\"type\":\"scatter\"},{\"hovertemplate\":\"<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}\",\"hovertext\":[\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\"],\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"},\"mode\":\"markers+lines\",\"name\":\"\",\"orientation\":\"v\",\"showlegend\":false,\"x\":[2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022],\"xaxis\":\"x22\",\"y\":[0.0,1.0,0.0,0.0,1.0,0.0,0.0,0.0,2.0,1.0,1.0,0.0],\"yaxis\":\"y22\",\"type\":\"scatter\"},{\"hovertemplate\":\"<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}\",\"hovertext\":[\"China\",\"China\",\"China\",\"China\",\"China\",\"China\",\"China\",\"China\",\"China\",\"China\",\"China\",\"China\"],\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"},\"mode\":\"markers+lines\",\"name\":\"\",\"orientation\":\"v\",\"showlegend\":false,\"x\":[2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022],\"xaxis\":\"x23\",\"y\":[0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],\"yaxis\":\"y23\",\"type\":\"scatter\"},{\"hovertemplate\":\"<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}\",\"hovertext\":[\"Czechia\",\"Czechia\",\"Czechia\",\"Czechia\",\"Czechia\",\"Czechia\",\"Czechia\",\"Czechia\",\"Czechia\",\"Czechia\",\"Czechia\",\"Czechia\"],\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"},\"mode\":\"markers+lines\",\"name\":\"\",\"orientation\":\"v\",\"showlegend\":false,\"x\":[2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022],\"xaxis\":\"x24\",\"y\":[0.0,0.0,1.0,0.0,1.0,0.0,0.0,1.0,2.0,1.0,0.0,0.0],\"yaxis\":\"y24\",\"type\":\"scatter\"},{\"hovertemplate\":\"<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}\",\"hovertext\":[\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\"],\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"},\"mode\":\"markers+lines\",\"name\":\"\",\"orientation\":\"v\",\"showlegend\":false,\"x\":[2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022],\"xaxis\":\"x25\",\"y\":[0.0,0.0,2.0,1.0,1.0,1.0,0.0,0.0,3.0,1.0,0.0,0.0],\"yaxis\":\"y25\",\"type\":\"scatter\"},{\"hovertemplate\":\"<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}\",\"hovertext\":[\"EPO\",\"EPO\",\"EPO\",\"EPO\",\"EPO\",\"EPO\",\"EPO\",\"EPO\",\"EPO\",\"EPO\",\"EPO\",\"EPO\"],\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"},\"mode\":\"markers+lines\",\"name\":\"\",\"orientation\":\"v\",\"showlegend\":false,\"x\":[2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022],\"xaxis\":\"x16\",\"y\":[41.0,48.0,66.0,71.0,87.0,88.0,1
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"data = (appln_f.groupby(['appln_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=[\"appln_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\",\"appln_filing_year\"], ascending=[True,True])\n",
"data[record_col+\"_cumsum\"] = (data.groupby('appln_auth',as_index=False)[record_col].cumsum())\n",
"\n",
"data = data.merge(tls_801,left_on='appln_auth', right_on =\"ctry_code\")\n",
"data[\"Country\"] = data[\"st3_name\"].str.split(\"(\").str[-1].str.strip(\")\")\n",
"\n",
"\n",
"fig = px.line(data.sort_values(ascending=True, by='appln_filing_year'),\n",
" y=record_col,\n",
" x='appln_filing_year'\n",
" ,facet_col=\"Country\",facet_col_wrap=5,category_orders={\"Country\": sorted(data[\"Country\"].unique())},\n",
" markers=True,\n",
" labels={\n",
" record_col: 'Number of co-patents',\n",
" },\n",
" title=\"Yearly output of co-patents by patent authority\",hover_name= \"Country\")\n",
"fig.update_traces(hovertemplate='<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}')\n",
"fig.update_yaxes(\n",
" showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n",
" ticks=\"outside\")\n",
"fig.update_xaxes(\n",
" showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n",
" ticks=\"outside\")\n",
"fig.update_layout({'template':\"plotly\"},font_family=\"Montserrat\")\n",
"fig.update_yaxes(title='')\n",
"fig.update_xaxes(title='')\n",
"fig.for_each_annotation(lambda a: a.update(text=a.text.split(\"=\")[-1]))\n",
"# fig.show(config= dict(displayModeBar = False, responsive = True))\n",
"figsuper_ppt = go.Figure(fig)\n",
"\n",
"figsuper_ppt['layout'][\"font\"][\"size\"]=22\n",
"# figsuper['layout'][\"xaxis\"][\"range\"] = [20,2022.5]\n",
"for a in figsuper_ppt['layout'][\"annotations\"]:\n",
" a[\"font\"][\"size\"] = 22\n",
"\n",
"s=16\n",
"figsuper_ppt.update_yaxes(tickfont=dict(size=s))\n",
"figsuper_ppt.update_xaxes(tickfont=dict(size=s),tickangle=45)\n",
"figsuper_ppt.show(height=800,width=1600,scale = 4)\n",
"figsuper_ppt.write_image(f\"{fromdir}/plots/yearly_outputs.png\",height=800,width=1600,scale = 4)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 64,
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Austria",
"Austria",
"Austria",
"Austria",
"Austria",
"Austria",
"Austria",
"Austria",
"Austria",
"Austria",
"Austria",
"Austria"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x21",
"y": [
-1.0,
0.0,
-1.0,
0.0,
0.0,
0.0,
1.0,
-1.0,
-1.0,
0.0,
-1.0,
-1.0
],
"yaxis": "y21",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium",
"Belgium"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x22",
"y": [
-1.0,
0.0,
-1.0,
-1.0,
0.0,
-1.0,
-1.0,
-1.0,
1.0,
0.0,
0.0,
-1.0
],
"yaxis": "y22",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"China",
"China",
"China",
"China",
"China",
"China",
"China",
"China",
"China",
"China",
"China",
"China"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x23",
"y": [
-1.0,
0.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0
],
"yaxis": "y23",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Czechia",
"Czechia",
"Czechia",
"Czechia",
"Czechia",
"Czechia",
"Czechia",
"Czechia",
"Czechia",
"Czechia",
"Czechia",
"Czechia"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x24",
"y": [
-1.0,
-1.0,
0.0,
-1.0,
0.0,
-1.0,
-1.0,
0.0,
1.0,
0.0,
-1.0,
-1.0
],
"yaxis": "y24",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark",
"Denmark"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x25",
"y": [
-1.0,
-1.0,
0.0,
-0.5,
-0.5,
-0.5,
-1.0,
-1.0,
0.5,
-0.5,
-1.0,
-1.0
],
"yaxis": "y25",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"EPO",
"EPO",
"EPO",
"EPO",
"EPO",
"EPO",
"EPO",
"EPO",
"EPO",
"EPO",
"EPO",
"EPO"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x16",
"y": [
0.0,
0.17073170731707318,
0.6097560975609756,
0.7317073170731707,
1.1219512195121952,
1.146341463414634,
1.853658536585366,
2.8780487804878048,
3.2439024390243905,
2.8780487804878048,
0.5853658536585366,
-1.0
],
"yaxis": "y16",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Finland",
"Finland",
"Finland",
"Finland",
"Finland",
"Finland",
"Finland",
"Finland",
"Finland",
"Finland",
"Finland",
"Finland"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x17",
"y": [
0.0,
-0.25,
-1.0,
-0.75,
-0.25,
1.0,
-1.0,
-1.0,
-1.0,
-1.0,
-0.75,
-1.0
],
"yaxis": "y17",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"France",
"France",
"France",
"France",
"France",
"France",
"France",
"France",
"France",
"France",
"France",
"France"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x18",
"y": [
0.0,
0.1111111111111111,
1.0,
-0.1111111111111111,
0.0,
0.5555555555555556,
0.3333333333333333,
-0.05555555555555555,
0.5,
0.6666666666666666,
0.16666666666666666,
-1.0
],
"yaxis": "y18",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Germany",
"Germany",
"Germany",
"Germany",
"Germany",
"Germany",
"Germany",
"Germany",
"Germany",
"Germany",
"Germany",
"Germany"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x19",
"y": [
0.0,
0.3055555555555556,
0.8888888888888888,
1.25,
1.2222222222222223,
0.2777777777777778,
1.6944444444444444,
0.5833333333333334,
1.1388888888888888,
0.5,
0.3611111111111111,
-1.0
],
"yaxis": "y19",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland",
"Ireland"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x20",
"y": [
-1.0,
0.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0
],
"yaxis": "y20",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania",
"Lithuania"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x11",
"y": [
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
0.0,
-1.0,
0.0,
-1.0,
-1.0
],
"yaxis": "y11",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg",
"Luxembourg"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x12",
"y": [
0.0,
-1.0,
-1.0,
0.0,
-1.0,
4.0,
0.0,
-1.0,
3.0,
1.0,
4.0,
0.0
],
"yaxis": "y12",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Morocco",
"Morocco",
"Morocco",
"Morocco",
"Morocco",
"Morocco",
"Morocco",
"Morocco",
"Morocco",
"Morocco",
"Morocco",
"Morocco"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x13",
"y": [
-1.0,
-1.0,
-1.0,
-1.0,
0.0,
-1.0,
-0.5,
1.5,
-0.5,
-1.0,
-1.0,
-1.0
],
"yaxis": "y13",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands",
"Netherlands"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x14",
"y": [
-1.0,
-1.0,
0.0,
5.0,
2.0,
3.0,
7.0,
10.0,
0.0,
12.0,
1.0,
-1.0
],
"yaxis": "y14",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland",
"Poland"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x15",
"y": [
-1.0,
-1.0,
-1.0,
0.0,
0.0,
1.0,
0.0,
0.0,
-1.0,
2.0,
-1.0,
-1.0
],
"yaxis": "y15",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal",
"Portugal"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x6",
"y": [
-1.0,
-1.0,
-1.0,
-1.0,
-1.0,
0.0,
-1.0,
-1.0,
0.0,
-1.0,
-1.0,
-1.0
],
"yaxis": "y6",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania",
"Romania"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x7",
"y": [
-1.0,
0.0,
-1.0,
0.0,
-1.0,
-1.0,
-1.0,
0.0,
-1.0,
0.0,
-1.0,
-1.0
],
"yaxis": "y7",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain",
"Spain"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x8",
"y": [
0.0,
-0.6,
-0.4,
0.0,
-0.4,
-0.4,
0.0,
-1.0,
-0.6,
-0.8,
-0.6,
-0.4
],
"yaxis": "y8",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden",
"Sweden"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x9",
"y": [
-1.0,
-1.0,
-1.0,
-1.0,
0.0,
-0.5,
0.5,
0.0,
-1.0,
0.5,
-0.5,
-1.0
],
"yaxis": "y9",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland",
"Switzerland"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x10",
"y": [
-1.0,
0.0,
-1.0,
-1.0,
5.0,
-1.0,
-1.0,
-1.0,
-1.0,
3.0,
-1.0,
-1.0
],
"yaxis": "y10",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom",
"United Kingdom"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x",
"y": [
0.0,
1.4615384615384615,
1.2307692307692308,
1.0769230769230769,
2.4615384615384617,
4.076923076923077,
6.0,
3.3846153846153846,
1.3846153846153846,
0.07692307692307693,
-0.5384615384615384,
-1.0
],
"yaxis": "y",
"type": "scatter"
},
{
"hovertemplate": "<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}",
"hovertext": [
"WIPO",
"WIPO",
"WIPO",
"WIPO",
"WIPO",
"WIPO",
"WIPO",
"WIPO",
"WIPO",
"WIPO",
"WIPO",
"WIPO"
],
"legendgroup": "",
"line": {
"color": "#636efa",
"dash": "solid"
},
"marker": {
"symbol": "circle"
},
"mode": "markers+lines",
"name": "",
"orientation": "v",
"showlegend": false,
"x": [
2011,
2012,
2013,
2014,
2015,
2016,
2017,
2018,
2019,
2020,
2021,
2022
],
"xaxis": "x2",
"y": [
0.0,
0.4132841328413284,
0.3044280442804428,
0.20848708487084872,
0.24354243542435425,
0.4040590405904059,
0.8579335793357934,
1.081180811808118,
1.2730627306273063,
1.5461254612546125,
0.7103321033210332,
-0.9981549815498155
],
"yaxis": "y2",
"type": "scatter"
}
],
"layout": {
"annotations": [
{
"showarrow": false,
"text": "United Kingdom",
"x": 0.09200000000000001,
"xanchor": "center",
"xref": "paper",
"y": 0.144,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "WIPO",
"x": 0.29600000000000004,
"xanchor": "center",
"xref": "paper",
"y": 0.144,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Portugal",
"x": 0.09200000000000001,
"xanchor": "center",
"xref": "paper",
"y": 0.358,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Romania",
"x": 0.29600000000000004,
"xanchor": "center",
"xref": "paper",
"y": 0.358,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Spain",
"x": 0.5,
"xanchor": "center",
"xref": "paper",
"y": 0.358,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Sweden",
"x": 0.7040000000000002,
"xanchor": "center",
"xref": "paper",
"y": 0.358,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Switzerland",
"x": 0.908,
"xanchor": "center",
"xref": "paper",
"y": 0.358,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Lithuania",
"x": 0.09200000000000001,
"xanchor": "center",
"xref": "paper",
"y": 0.572,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Luxembourg",
"x": 0.29600000000000004,
"xanchor": "center",
"xref": "paper",
"y": 0.572,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Morocco",
"x": 0.5,
"xanchor": "center",
"xref": "paper",
"y": 0.572,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Netherlands",
"x": 0.7040000000000002,
"xanchor": "center",
"xref": "paper",
"y": 0.572,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Poland",
"x": 0.908,
"xanchor": "center",
"xref": "paper",
"y": 0.572,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "EPO",
"x": 0.09200000000000001,
"xanchor": "center",
"xref": "paper",
"y": 0.7859999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Finland",
"x": 0.29600000000000004,
"xanchor": "center",
"xref": "paper",
"y": 0.7859999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "France",
"x": 0.5,
"xanchor": "center",
"xref": "paper",
"y": 0.7859999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Germany",
"x": 0.7040000000000002,
"xanchor": "center",
"xref": "paper",
"y": 0.7859999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Ireland",
"x": 0.908,
"xanchor": "center",
"xref": "paper",
"y": 0.7859999999999999,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Austria",
"x": 0.09200000000000001,
"xanchor": "center",
"xref": "paper",
"y": 1.0,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Belgium",
"x": 0.29600000000000004,
"xanchor": "center",
"xref": "paper",
"y": 1.0,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "China",
"x": 0.5,
"xanchor": "center",
"xref": "paper",
"y": 1.0,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Czechia",
"x": 0.7040000000000002,
"xanchor": "center",
"xref": "paper",
"y": 1.0,
"yanchor": "bottom",
"yref": "paper",
"font": {
"size": 22
}
},
{
"showarrow": false,
"text": "Denmark",
"x": 0.908,
"xanchor": "center",
"xref": "paper",
"y": 1.0,
"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.144
],
"linecolor": "black",
"linewidth": 1,
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"xaxis2": {
"anchor": "y2",
"domain": [
0.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.144
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"xaxis3": {
"anchor": "y3",
"domain": [
0.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.144
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"xaxis4": {
"anchor": "y4",
"domain": [
0.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.144
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"xaxis5": {
"anchor": "y5",
"domain": [
0.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.144
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"xaxis6": {
"anchor": "y6",
"domain": [
0.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.214,
0.358
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"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.214,
0.358
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"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.214,
0.358
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"xaxis9": {
"anchor": "y9",
"domain": [
0.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.214,
0.358
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"xaxis10": {
"anchor": "y10",
"domain": [
0.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.214,
0.358
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"xaxis11": {
"anchor": "y11",
"domain": [
0.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.428,
0.572
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"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.428,
0.572
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"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.428,
0.572
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"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.428,
0.572
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"xaxis15": {
"anchor": "y15",
"domain": [
0.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.428,
0.572
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"xaxis16": {
"anchor": "y16",
"domain": [
0.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
},
"yaxis16": {
"anchor": "x16",
"domain": [
0.6419999999999999,
0.7859999999999999
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"xaxis17": {
"anchor": "y17",
"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
},
"yaxis17": {
"anchor": "x17",
"domain": [
0.6419999999999999,
0.7859999999999999
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"xaxis18": {
"anchor": "y18",
"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
},
"yaxis18": {
"anchor": "x18",
"domain": [
0.6419999999999999,
0.7859999999999999
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"xaxis19": {
"anchor": "y19",
"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
},
"yaxis19": {
"anchor": "x19",
"domain": [
0.6419999999999999,
0.7859999999999999
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"xaxis20": {
"anchor": "y20",
"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
},
"yaxis20": {
"anchor": "x20",
"domain": [
0.6419999999999999,
0.7859999999999999
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"xaxis21": {
"anchor": "y21",
"domain": [
0.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
},
"yaxis21": {
"anchor": "x21",
"domain": [
0.856,
1.0
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"xaxis22": {
"anchor": "y22",
"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
},
"yaxis22": {
"anchor": "x22",
"domain": [
0.856,
1.0
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"xaxis23": {
"anchor": "y23",
"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
},
"yaxis23": {
"anchor": "x23",
"domain": [
0.856,
1.0
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"xaxis24": {
"anchor": "y24",
"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
},
"yaxis24": {
"anchor": "x24",
"domain": [
0.856,
1.0
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
},
"xaxis25": {
"anchor": "y25",
"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
},
"yaxis25": {
"anchor": "x25",
"domain": [
0.856,
1.0
],
"linecolor": "black",
"linewidth": 1,
"matches": "y",
"mirror": true,
"showgrid": true,
"showline": true,
"showticklabels": false,
"ticks": "outside",
"title": {
"text": ""
},
"zeroline": true,
"zerolinewidth": 2,
"zerolinecolor": "grey",
"tickformat": ".0%",
"tickfont": {
"size": 16
}
}
},
"config": {
"plotlyServerURL": "https://plotly.com"
}
},
"text/html": "<div> <div id=\"6b738783-0d4f-420e-a03c-92b6dc08ab4f\" class=\"plotly-graph-div\" style=\"height:525px; width:100%;\"></div> <script type=\"text/javascript\"> require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"6b738783-0d4f-420e-a03c-92b6dc08ab4f\")) { Plotly.newPlot( \"6b738783-0d4f-420e-a03c-92b6dc08ab4f\", [{\"hovertemplate\":\"<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}\",\"hovertext\":[\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\",\"Austria\"],\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"},\"mode\":\"markers+lines\",\"name\":\"\",\"orientation\":\"v\",\"showlegend\":false,\"x\":[2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022],\"xaxis\":\"x21\",\"y\":[-1.0,0.0,-1.0,0.0,0.0,0.0,1.0,-1.0,-1.0,0.0,-1.0,-1.0],\"yaxis\":\"y21\",\"type\":\"scatter\"},{\"hovertemplate\":\"<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}\",\"hovertext\":[\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\",\"Belgium\"],\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"},\"mode\":\"markers+lines\",\"name\":\"\",\"orientation\":\"v\",\"showlegend\":false,\"x\":[2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022],\"xaxis\":\"x22\",\"y\":[-1.0,0.0,-1.0,-1.0,0.0,-1.0,-1.0,-1.0,1.0,0.0,0.0,-1.0],\"yaxis\":\"y22\",\"type\":\"scatter\"},{\"hovertemplate\":\"<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}\",\"hovertext\":[\"China\",\"China\",\"China\",\"China\",\"China\",\"China\",\"China\",\"China\",\"China\",\"China\",\"China\",\"China\"],\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"},\"mode\":\"markers+lines\",\"name\":\"\",\"orientation\":\"v\",\"showlegend\":false,\"x\":[2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022],\"xaxis\":\"x23\",\"y\":[-1.0,0.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0],\"yaxis\":\"y23\",\"type\":\"scatter\"},{\"hovertemplate\":\"<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}\",\"hovertext\":[\"Czechia\",\"Czechia\",\"Czechia\",\"Czechia\",\"Czechia\",\"Czechia\",\"Czechia\",\"Czechia\",\"Czechia\",\"Czechia\",\"Czechia\",\"Czechia\"],\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"},\"mode\":\"markers+lines\",\"name\":\"\",\"orientation\":\"v\",\"showlegend\":false,\"x\":[2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022],\"xaxis\":\"x24\",\"y\":[-1.0,-1.0,0.0,-1.0,0.0,-1.0,-1.0,0.0,1.0,0.0,-1.0,-1.0],\"yaxis\":\"y24\",\"type\":\"scatter\"},{\"hovertemplate\":\"<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}\",\"hovertext\":[\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\",\"Denmark\"],\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"},\"mode\":\"markers+lines\",\"name\":\"\",\"orientation\":\"v\",\"showlegend\":false,\"x\":[2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022],\"xaxis\":\"x25\",\"y\":[-1.0,-1.0,0.0,-0.5,-0.5,-0.5,-1.0,-1.0,0.5,-0.5,-1.0,-1.0],\"yaxis\":\"y25\",\"type\":\"scatter\"},{\"hovertemplate\":\"<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}\",\"hovertext\":[\"EPO\",\"EPO\",\"EPO\",\"EPO\",\"EPO\",\"EPO\",\"EPO\",\"EPO\",\"EPO\",\"EPO\",\"EPO\",\"EPO\"],\"legendgroup\":\"\",\"line\":{\"color\":\"#636efa\",\"dash\":\"solid\"},\"marker\":{\"symbol\":\"circle\"},\"mode\":\"markers+lines\",\"name\":\"\",\"orientation\":\"v\",\"showlegend\":false,\"x\":[2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022],\"xaxis\":\"x16
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = px.line(data.sort_values(ascending=True, by='appln_filing_year'),\n",
" y=record_col+\"_relative_growth\",\n",
" x='appln_filing_year'\n",
" ,facet_col=\"Country\",facet_col_wrap=5,category_orders={\"Country\": sorted(data[\"Country\"].unique())},\n",
" markers=True,\n",
" labels={\n",
" record_col+\"_relative_growth\": 'Relative growth of co-patents (%)',\n",
" },\n",
" title=\"Yearly rel. output of co-patents by patent authority\",hover_name= \"Country\")\n",
"fig.update_traces(hovertemplate='<b>%{hovertext}</b><br>%{x}<br>Co-publications: %{y}')\n",
"fig.update_yaxes(\n",
" showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n",
" ticks=\"outside\")\n",
"fig.update_xaxes(\n",
" showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n",
" ticks=\"outside\")\n",
"fig.update_layout({'template':\"plotly\"},font_family=\"Montserrat\")\n",
"fig.update_yaxes(title='')\n",
"fig.update_xaxes(title='')\n",
"fig.for_each_annotation(lambda a: a.update(text=a.text.split(\"=\")[-1]))\n",
"# fig.show(config= dict(displayModeBar = False, responsive = True))\n",
"\n",
"figsuper_ppt = go.Figure(fig)\n",
"\n",
"figsuper_ppt['layout'][\"font\"][\"size\"]=22\n",
"for a in figsuper_ppt['layout'][\"annotations\"]:\n",
" a[\"font\"][\"size\"] = 22\n",
"\n",
"s=16\n",
"figsuper_ppt.update_yaxes(title='',zeroline=True, zerolinewidth=2, zerolinecolor='grey',tickformat=\".0%\")\n",
"figsuper_ppt.update_yaxes(tickfont=dict(size=s))\n",
"figsuper_ppt.update_xaxes(tickfont=dict(size=s),tickangle=45)\n",
"figsuper_ppt.show(height=800,width=1600,scale = 4)\n",
"figsuper_ppt.write_image(f\"{fromdir}/plots/yearly_rel_outputs.png\",height=800,width=1600,scale = 4)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 74,
"outputs": [],
"source": [
"appln_pers_f = appln_scope\n",
"appln_pers_f[\"psn_sector_primary\"] = appln_pers_f[\"psn_sector_x\"]"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 68,
"outputs": [
{
"data": {
"text/plain": "Index(['appln_id', 'appln_auth', 'person_id', 'invt_seq_nr', 'applt_seq_nr',\n 'person_name', 'person_ctry_code', 'han_id', 'han_name', 'psn_sector_x',\n 'psn_sector_y', 'person_ctry_code_fullname', 'appln_auth_fullname',\n 'person_ctry_ISO3', 'person_ctry_type', 'auth_ISO3', 'auth_ctry_type'],\n dtype='object')"
},
"execution_count": 68,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"appln_scope.columns"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 93,
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" ctry_code iso_alpha3 st3_name organisation_flag \n",
"0 AD AND Andorra \\\n",
"1 AE ARE United Arab Emirates \n",
"2 AF AFG Afghanistan \n",
"3 AG ATG Antigua and Barbuda \n",
"4 AI AIA Anguilla \n",
".. ... ... ... ... \n",
"235 YE YEM Yemen \n",
"236 YU YUG Yugoslavia/Serbia and Montenegro \n",
"237 ZA ZAF South Africa \n",
"238 ZM ZMB Zambia \n",
"239 ZW ZWE Zimbabwe \n",
"\n",
" continent eu_member epo_member oecd_member discontinued \n",
"0 Europe \n",
"1 Asia \n",
"2 Asia \n",
"3 North America \n",
"4 North America \n",
".. ... ... ... ... ... \n",
"235 Asia \n",
"236 Europe Y \n",
"237 Africa \n",
"238 Africa \n",
"239 Africa \n",
"\n",
"[240 rows x 9 columns]\n"
]
}
],
"source": [
"print(tls_801)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 102,
"outputs": [],
"source": [
"iso2_to_namedict = dict(zip(tls_801[\"ctry_code\"],tls_801[\"st3_name\"].str.split(\"(\").str[-1].str.strip(\")\")))\n",
"name_to_iso3 = dict(zip(tls_801[\"st3_name\"].str.split(\"(\").str[-1].str.strip(\")\"),tls_801[\"iso_alpha3\"]))"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 125,
"outputs": [
{
"data": {
"text/plain": "{'Andorra': 'AND',\n 'United Arab Emirates': 'ARE',\n 'Afghanistan': 'AFG',\n 'Antigua and Barbuda': 'ATG',\n 'Anguilla': 'AIA',\n 'Albania': 'ALB',\n 'Armenia': 'ARM',\n 'Netherlands Antilles ': 'ANT',\n 'Angola': 'AGO',\n 'ARIPO': ' ',\n 'Argentina': 'ARG',\n 'Austria': 'AUT',\n 'Australia': 'AUS',\n 'Aruba': 'ABW',\n 'Azerbaijan': 'AZE',\n 'Bosnia and Herzegovina': 'BIH',\n 'Barbados': 'BRB',\n 'Bangladesh': 'BGD',\n 'Belgium': 'BEL',\n 'Burkina Faso': 'BFA',\n 'Bulgaria': 'BGR',\n 'Bahrain': 'BHR',\n 'Burundi': 'BDI',\n 'Benin': 'BEN',\n 'Bermuda': 'BMU',\n 'Brunei Darussalam': 'BRN',\n 'Plurinational State of': 'BOL',\n 'Bonaire, Sint Eustatius and Saba': 'BES',\n 'Brazil': 'BRA',\n 'Bahamas': 'BHS',\n 'Bhutan': 'BTN',\n 'Burma': 'BUR',\n 'Bouvet Island': 'BVT',\n 'Botswana': 'BWA',\n 'BOIP': ' ',\n 'Belarus': 'BLR',\n 'Belize': 'BLZ',\n 'Canada': 'CAN',\n 'Democratic Republic of the Congo': 'COD',\n 'Central African Republic': 'CAF',\n 'Congo': 'COG',\n 'Switzerland': 'CHE',\n \"Côte d'Ivoire\": 'CIV',\n 'Cook Islands': 'COK',\n 'Chile': 'CHL',\n 'Cameroon': 'CMR',\n 'China': 'CHN',\n 'Colombia': 'COL',\n 'Costa Rica': 'CRI',\n 'Czechoslovakia': 'CSK',\n 'Cuba': 'CUB',\n 'Cabo Verde': 'CPV',\n 'Curaçao': 'CUW',\n 'Cyprus': 'CYP',\n 'Czechia': 'CZE',\n 'German Democratic Republic': 'DDR',\n 'Germany': 'DEU',\n 'Djibouti': 'DJI',\n 'Denmark': 'DNK',\n 'Dominica': 'DMA',\n 'Dominican Republic': 'DOM',\n 'Algeria': 'DZA',\n 'EAPO': ' ',\n 'Ecuador': 'ECU',\n 'Estonia': 'EST',\n 'Egypt': 'EGY',\n 'Western Sahara': 'ESH',\n 'EUIPO': ' ',\n 'EPO': ' ',\n 'Eritrea': 'ERI',\n 'Spain': 'ESP',\n 'Ethiopia': 'ETH',\n 'European Union': ' ',\n 'Finland': 'FIN',\n 'Fiji': 'FJI',\n 'Malvinas': 'FLK',\n 'Faroe Islands': 'FRO',\n 'France': 'FRA',\n 'Gabon': 'GAB',\n 'United Kingdom': 'GBR',\n 'GCC Patent Office': ' ',\n 'Grenada': 'GRD',\n 'Georgia': 'GEO',\n 'Guernsey': 'GGY',\n 'Ghana': 'GHA',\n 'Gibraltar': 'GIB',\n 'Greenland': 'GRL',\n 'Gambia': 'GMB',\n 'Guinea': 'GIN',\n 'Equatorial Guinea': 'GNQ',\n 'Greece': 'GRC',\n 'South Georgia and the South Sandwich Islands': 'SGS',\n 'Guatemala': 'GTM',\n 'Guinea-Bissau': 'GNB',\n 'Guyana': 'GUY',\n 'Hong Kong, China': 'HKG',\n 'Honduras': 'HND',\n 'Croatia': 'HRV',\n 'Haiti': 'HTI',\n 'Hungary': 'HUN',\n 'WIPO': ' ',\n 'Indonesia': 'IDN',\n 'Ireland': 'IRL',\n 'Israel': 'ISR',\n 'Isle of Man': 'IMN',\n 'India': 'IND',\n 'Iraq': 'IRQ',\n 'Islamic Republic of': 'IRN',\n 'Iceland': 'ISL',\n 'Italy': 'ITA',\n 'Jersey': 'JEY',\n 'Jamaica': 'JAM',\n 'Jordan': 'JOR',\n 'Japan': 'JPN',\n 'Kenya': 'KEN',\n 'Kyrgyzstan': 'KGZ',\n 'Cambodia': 'KHM',\n 'Kiribati': 'KIR',\n 'Comoros': 'COM',\n 'Saint Kitts and Nevis': 'KNA',\n \"Democratic People's Republic of Korea\": 'PRK',\n 'Republic of Korea': 'KOR',\n 'Kuwait': 'KWT',\n 'Cayman Islands': 'CYM',\n 'Kazakhstan': 'KAZ',\n \"Lao People's Democratic Republic\": 'LAO',\n 'Lebanon': 'LBN',\n 'Saint Lucia': 'LCA',\n 'Liechtenstein': 'LIE',\n 'Sri Lanka': 'LKA',\n 'Liberia': 'LBR',\n 'Lesotho': 'LSO',\n 'Lithuania': 'LTU',\n 'Luxembourg': 'LUX',\n 'Latvia': 'LVA',\n 'Libya': 'LBY',\n 'Morocco': 'MAR',\n 'Monaco': 'MCO',\n 'Republic of Moldova': 'MDA',\n 'Montenegro': 'MNE',\n 'Madagascar': 'MDG',\n 'North Macedonia': 'MKD',\n 'Mali': 'MLI',\n 'Myanmar': 'MMR',\n 'Mongolia': 'MNG',\n 'Macao, China': 'MAC',\n 'Northern Mariana Islands': 'MNP',\n 'Mauritania': 'MRT',\n 'Montserrat': 'MSR',\n 'Malta': 'MLT',\n 'Mauritius': 'MUS',\n 'Maldives': 'MDV',\n 'Malawi': 'MWI',\n 'Mexico': 'MEX',\n 'Malaysia': 'MYS',\n 'Mozambique': 'MOZ',\n 'Namibia': 'NAM',\n 'Niger': 'NER',\n 'Nigeria': 'NGA',\n 'Nicaragua': 'NIC',\n 'Netherlands': 'NLD',\n 'Norway': 'NOR',\n 'Nepal': 'NPL',\n 'Nauru': 'NRU',\n 'New Zealand': 'NZL',\n 'OAPI': ' ',\n 'Oman': 'OMN',\n 'Panama': 'PAN',\n 'Peru': 'PER',\n 'Papua New Guinea': 'PNG',\n 'Philippines': 'PHL',\n 'Pakistan': 'PAK',\n 'Poland': 'POL',\n 'Portugal': 'PRT',\n 'Palau': 'PLW',\n 'Paraguay': 'PRY',\n 'Qatar': 'QAT',\n 'CPVO': ' ',\n 'Romania': 'ROU',\n 'Serbia': 'SRB',\n 'Russian F
},
"execution_count": 125,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"name_to_iso3"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 126,
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "Country type=China<br>Number of co-patents=%{x}<br>Name=%{y}<extra></extra>",
"legendgroup": "China",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "China",
"offsetgroup": "China",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
2706,
831,
271,
250,
187,
141,
102,
85,
83,
74,
74,
56,
52,
51,
42
],
"xaxis": "x",
"y": [
"HUAWEI TECH CO LTD (CHN)",
"NOKIA SHANGHAI BELL CO LTD (CHN)",
"NINGBO GEELY AUTOMOBILE R<br>D CO LTD (CHN)",
"SIEMENS LTD CHINA (CHN)",
"NOKIA CHINA INVESTMENT CO LTD (CHN)",
"NOKIA TECH BEIJING CO LTD (CHN)",
"TCL COMM LTD (CHN)",
"ALCATEL LUCENT SHANGHAI BELL CO LTD (CHN)",
"LENOVO BEIJING CO LTD (CHN)",
"HENKEL CHINA CO LTD (CHN)",
"ZHEJIANG GEELY HOLDINGGROUP CO LTD (CHN)",
"WANG, HAIMING (CHN)",
"NAVTEQ SHANGHAI TRADING CO LTD (CHN)",
"FAN RUI (CHN)",
"LIU, JINHUA (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": "<div> <div id=\"ef2dce5d-bf75-4e8c-86c8-424d1e08692a\" class=\"plotly-graph-div\" style=\"height:525px; width:100%;\"></div> <script type=\"text/javascript\"> require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"ef2dce5d-bf75-4e8c-86c8-424d1e08692a\")) { Plotly.newPlot( \"ef2dce5d-bf75-4e8c-86c8-424d1e08692a\", [{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Country type=China<br>Number of co-patents=%{x}<br>Name=%{y}<extra></extra>\",\"legendgroup\":\"China\",\"marker\":{\"color\":\"#EF553B\",\"pattern\":{\"shape\":\"\"}},\"name\":\"China\",\"offsetgroup\":\"China\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[2706,831,271,250,187,141,102,85,83,74,74,56,52,51,42],\"xaxis\":\"x\",\"y\":[\"HUAWEI TECH CO LTD (CHN)\",\"NOKIA SHANGHAI BELL CO LTD (CHN)\",\"NINGBO GEELY AUTOMOBILE R<br>D CO LTD (CHN)\",\"SIEMENS LTD CHINA (CHN)\",\"NOKIA CHINA INVESTMENT CO LTD (CHN)\",\"NOKIA TECH BEIJING CO LTD (CHN)\",\"TCL COMM LTD (CHN)\",\"ALCATEL LUCENT SHANGHAI BELL CO LTD (CHN)\",\"LENOVO BEIJING CO LTD (CHN)\",\"HENKEL CHINA CO LTD (CHN)\",\"ZHEJIANG GEELY HOLDINGGROUP CO LTD (CHN)\",\"WANG, HAIMING (CHN)\",\"NAVTEQ SHANGHAI TRADING CO LTD (CHN)\",\"FAN RUI (CHN)\",\"LIU, JINHUA (CHN)\"],\"yaxis\":\"y\",\"type\":\"bar\"}], {\"template\":{\"data\":{\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"barpolar\"}],\"bar\":[{\"error_x\":{\"color\":\"#2a3f5f\"},\"error_y\":{\"color\":\"#2a3f5f\"},\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"bar\"}],\"carpet\":[{\"aaxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"baxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"type\":\"carpet\"}],\"choropleth\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"choropleth\"}],\"contourcarpet\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"contourcarpet\"}],\"contour\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"contour\"}],\"heatmapgl\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"heatmapgl\"}],\"heatmap\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"heatmap\"}],\"histogram2dcontour\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "Country type=EU<br>Number of co-patents=%{x}<br>Name=%{y}<extra></extra>",
"legendgroup": "EU",
"marker": {
"color": "#636EFA",
"pattern": {
"shape": ""
}
},
"name": "EU",
"offsetgroup": "EU",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
1415,
1153,
940,
459,
317,
274,
241,
162,
150,
131,
115,
67,
65
],
"xaxis": "x",
"y": [
"NOKIA CORP (FIN)",
"TELEFON AB LM ERICSSON PUBL (SWE)",
"NOKIA TECH LTD (FIN)",
"SIEMENS AG (DEU)",
"ROBERT BOSCH GMBH (DEU)",
"L OREAL (FRA)",
"SCHAEFFLER TECH AG<br>CO KG (DEU)",
"THOMSON LICENSING (FRA)",
"RHODIA OPERATIONS (FRA)",
"HENKEL AG<br>CO KGAA (DEU)",
"BAYERISCHE MOTOREN WERKE AG (DEU)",
"CNRS (FRA)",
"ORANGE (FRA)"
],
"yaxis": "y",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "Country type=Non-EU associate<br>Number of co-patents=%{x}<br>Name=%{y}<extra></extra>",
"legendgroup": "Non-EU associate",
"marker": {
"color": "#00CC96",
"pattern": {
"shape": ""
}
},
"name": "Non-EU associate",
"offsetgroup": "Non-EU associate",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
326,
124
],
"xaxis": "x",
"y": [
"ABB SCHWEIZ AG (CHE)",
"ABB TECH AG (CHE)"
],
"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": "<div> <div id=\"0785cdff-4cab-4504-89eb-47cc35801173\" class=\"plotly-graph-div\" style=\"height:525px; width:100%;\"></div> <script type=\"text/javascript\"> require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"0785cdff-4cab-4504-89eb-47cc35801173\")) { Plotly.newPlot( \"0785cdff-4cab-4504-89eb-47cc35801173\", [{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Country type=EU<br>Number of co-patents=%{x}<br>Name=%{y}<extra></extra>\",\"legendgroup\":\"EU\",\"marker\":{\"color\":\"#636EFA\",\"pattern\":{\"shape\":\"\"}},\"name\":\"EU\",\"offsetgroup\":\"EU\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[1415,1153,940,459,317,274,241,162,150,131,115,67,65],\"xaxis\":\"x\",\"y\":[\"NOKIA CORP (FIN)\",\"TELEFON AB LM ERICSSON PUBL (SWE)\",\"NOKIA TECH LTD (FIN)\",\"SIEMENS AG (DEU)\",\"ROBERT BOSCH GMBH (DEU)\",\"L OREAL (FRA)\",\"SCHAEFFLER TECH AG<br>CO KG (DEU)\",\"THOMSON LICENSING (FRA)\",\"RHODIA OPERATIONS (FRA)\",\"HENKEL AG<br>CO KGAA (DEU)\",\"BAYERISCHE MOTOREN WERKE AG (DEU)\",\"CNRS (FRA)\",\"ORANGE (FRA)\"],\"yaxis\":\"y\",\"type\":\"bar\"},{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Country type=Non-EU associate<br>Number of co-patents=%{x}<br>Name=%{y}<extra></extra>\",\"legendgroup\":\"Non-EU associate\",\"marker\":{\"color\":\"#00CC96\",\"pattern\":{\"shape\":\"\"}},\"name\":\"Non-EU associate\",\"offsetgroup\":\"Non-EU associate\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[326,124],\"xaxis\":\"x\",\"y\":[\"ABB SCHWEIZ AG (CHE)\",\"ABB TECH AG (CHE)\"],\"yaxis\":\"y\",\"type\":\"bar\"}], {\"template\":{\"data\":{\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"barpolar\"}],\"bar\":[{\"error_x\":{\"color\":\"#2a3f5f\"},\"error_y\":{\"color\":\"#2a3f5f\"},\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"bar\"}],\"carpet\":[{\"aaxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"baxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"type\":\"carpet\"}],\"choropleth\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"choropleth\"}],\"contourcarpet\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"contourcarpet\"}],\"contour\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"contour\"}],\"heatmapgl\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"heatmapgl\"}],\"heatmap\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"heatmap\"}],\"histogram2dcontou
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "Sector=COMPANY<br>Number of co-patents=%{x}<br>Name=%{y}<extra></extra>",
"legendgroup": "COMPANY",
"marker": {
"color": "#FFA15A",
"pattern": {
"shape": ""
}
},
"name": "COMPANY",
"offsetgroup": "COMPANY",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
2706,
831,
271,
250,
187,
141,
102,
85,
83,
74,
74,
52
],
"xaxis": "x",
"y": [
"HUAWEI TECH CO LTD (CHN)",
"NOKIA SHANGHAI BELL CO LTD (CHN)",
"NINGBO GEELY AUTOMOBILE R<br>D CO LTD (CHN)",
"SIEMENS LTD CHINA (CHN)",
"NOKIA CHINA INVESTMENT CO LTD (CHN)",
"NOKIA TECH BEIJING CO LTD (CHN)",
"TCL COMM LTD (CHN)",
"ALCATEL LUCENT SHANGHAI BELL CO LTD (CHN)",
"LENOVO BEIJING CO LTD (CHN)",
"HENKEL CHINA CO LTD (CHN)",
"ZHEJIANG GEELY HOLDINGGROUP CO LTD (CHN)",
"NAVTEQ SHANGHAI TRADING CO LTD (CHN)"
],
"yaxis": "y",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "Sector=INDIVIDUAL<br>Number of co-patents=%{x}<br>Name=%{y}<extra></extra>",
"legendgroup": "INDIVIDUAL",
"marker": {
"color": "#19d3f3",
"pattern": {
"shape": ""
}
},
"name": "INDIVIDUAL",
"offsetgroup": "INDIVIDUAL",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
56,
51,
42
],
"xaxis": "x",
"y": [
"WANG, HAIMING (CHN)",
"FAN RUI (CHN)",
"LIU, JINHUA (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": "<div> <div id=\"51174e05-25e1-456e-aea5-b56f02fb569d\" class=\"plotly-graph-div\" style=\"height:525px; width:100%;\"></div> <script type=\"text/javascript\"> require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"51174e05-25e1-456e-aea5-b56f02fb569d\")) { Plotly.newPlot( \"51174e05-25e1-456e-aea5-b56f02fb569d\", [{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Sector=COMPANY<br>Number of co-patents=%{x}<br>Name=%{y}<extra></extra>\",\"legendgroup\":\"COMPANY\",\"marker\":{\"color\":\"#FFA15A\",\"pattern\":{\"shape\":\"\"}},\"name\":\"COMPANY\",\"offsetgroup\":\"COMPANY\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[2706,831,271,250,187,141,102,85,83,74,74,52],\"xaxis\":\"x\",\"y\":[\"HUAWEI TECH CO LTD (CHN)\",\"NOKIA SHANGHAI BELL CO LTD (CHN)\",\"NINGBO GEELY AUTOMOBILE R<br>D CO LTD (CHN)\",\"SIEMENS LTD CHINA (CHN)\",\"NOKIA CHINA INVESTMENT CO LTD (CHN)\",\"NOKIA TECH BEIJING CO LTD (CHN)\",\"TCL COMM LTD (CHN)\",\"ALCATEL LUCENT SHANGHAI BELL CO LTD (CHN)\",\"LENOVO BEIJING CO LTD (CHN)\",\"HENKEL CHINA CO LTD (CHN)\",\"ZHEJIANG GEELY HOLDINGGROUP CO LTD (CHN)\",\"NAVTEQ SHANGHAI TRADING CO LTD (CHN)\"],\"yaxis\":\"y\",\"type\":\"bar\"},{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Sector=INDIVIDUAL<br>Number of co-patents=%{x}<br>Name=%{y}<extra></extra>\",\"legendgroup\":\"INDIVIDUAL\",\"marker\":{\"color\":\"#19d3f3\",\"pattern\":{\"shape\":\"\"}},\"name\":\"INDIVIDUAL\",\"offsetgroup\":\"INDIVIDUAL\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[56,51,42],\"xaxis\":\"x\",\"y\":[\"WANG, HAIMING (CHN)\",\"FAN RUI (CHN)\",\"LIU, JINHUA (CHN)\"],\"yaxis\":\"y\",\"type\":\"bar\"}], {\"template\":{\"data\":{\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"barpolar\"}],\"bar\":[{\"error_x\":{\"color\":\"#2a3f5f\"},\"error_y\":{\"color\":\"#2a3f5f\"},\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"bar\"}],\"carpet\":[{\"aaxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"baxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"type\":\"carpet\"}],\"choropleth\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"choropleth\"}],\"contourcarpet\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"contourcarpet\"}],\"contour\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"contour\"}],\"heatmapgl\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"heatmapgl\"}],\"heatmap\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.88888888
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "Sector=COMPANY<br>Number of co-patents=%{x}<br>Name=%{y}<extra></extra>",
"legendgroup": "COMPANY",
"marker": {
"color": "#FFA15A",
"pattern": {
"shape": ""
}
},
"name": "COMPANY",
"offsetgroup": "COMPANY",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
1415,
1153,
940,
459,
326,
317,
274,
241,
162,
150,
131,
124,
115,
65
],
"xaxis": "x",
"y": [
"NOKIA CORP (FIN)",
"TELEFON AB LM ERICSSON PUBL (SWE)",
"NOKIA TECH LTD (FIN)",
"SIEMENS AG (DEU)",
"ABB SCHWEIZ AG (CHE)",
"ROBERT BOSCH GMBH (DEU)",
"L OREAL (FRA)",
"SCHAEFFLER TECH AG<br>CO KG (DEU)",
"THOMSON LICENSING (FRA)",
"RHODIA OPERATIONS (FRA)",
"HENKEL AG<br>CO KGAA (DEU)",
"ABB TECH AG (CHE)",
"BAYERISCHE MOTOREN WERKE AG (DEU)",
"ORANGE (FRA)"
],
"yaxis": "y",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "Sector=GOV NON-PROFIT<br>Number of co-patents=%{x}<br>Name=%{y}<extra></extra>",
"legendgroup": "GOV NON-PROFIT",
"marker": {
"color": "#19d3f3",
"pattern": {
"shape": ""
}
},
"name": "GOV NON-PROFIT",
"offsetgroup": "GOV NON-PROFIT",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
67
],
"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": "<div> <div id=\"fff7079d-acbf-4ce3-a96c-8897288d1371\" class=\"plotly-graph-div\" style=\"height:525px; width:100%;\"></div> <script type=\"text/javascript\"> require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"fff7079d-acbf-4ce3-a96c-8897288d1371\")) { Plotly.newPlot( \"fff7079d-acbf-4ce3-a96c-8897288d1371\", [{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Sector=COMPANY<br>Number of co-patents=%{x}<br>Name=%{y}<extra></extra>\",\"legendgroup\":\"COMPANY\",\"marker\":{\"color\":\"#FFA15A\",\"pattern\":{\"shape\":\"\"}},\"name\":\"COMPANY\",\"offsetgroup\":\"COMPANY\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[1415,1153,940,459,326,317,274,241,162,150,131,124,115,65],\"xaxis\":\"x\",\"y\":[\"NOKIA CORP (FIN)\",\"TELEFON AB LM ERICSSON PUBL (SWE)\",\"NOKIA TECH LTD (FIN)\",\"SIEMENS AG (DEU)\",\"ABB SCHWEIZ AG (CHE)\",\"ROBERT BOSCH GMBH (DEU)\",\"L OREAL (FRA)\",\"SCHAEFFLER TECH AG<br>CO KG (DEU)\",\"THOMSON LICENSING (FRA)\",\"RHODIA OPERATIONS (FRA)\",\"HENKEL AG<br>CO KGAA (DEU)\",\"ABB TECH AG (CHE)\",\"BAYERISCHE MOTOREN WERKE AG (DEU)\",\"ORANGE (FRA)\"],\"yaxis\":\"y\",\"type\":\"bar\"},{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Sector=GOV NON-PROFIT<br>Number of co-patents=%{x}<br>Name=%{y}<extra></extra>\",\"legendgroup\":\"GOV NON-PROFIT\",\"marker\":{\"color\":\"#19d3f3\",\"pattern\":{\"shape\":\"\"}},\"name\":\"GOV NON-PROFIT\",\"offsetgroup\":\"GOV NON-PROFIT\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[67],\"xaxis\":\"x\",\"y\":[\"CNRS (FRA)\"],\"yaxis\":\"y\",\"type\":\"bar\"}], {\"template\":{\"data\":{\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"barpolar\"}],\"bar\":[{\"error_x\":{\"color\":\"#2a3f5f\"},\"error_y\":{\"color\":\"#2a3f5f\"},\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"bar\"}],\"carpet\":[{\"aaxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"baxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"type\":\"carpet\"}],\"choropleth\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"choropleth\"}],\"contourcarpet\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"contourcarpet\"}],\"contour\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"contour\"}],\"heatmapgl\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"heatmapgl\"}],\"heatmap\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"type\":\"heatmap\"}],\"histogram2dcontou
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"for c in [\"person_ctry_code\",\"appln_auth\"]:\n",
" appln_pers_f[c+\"_fullname\"] = appln_pers_f[c].map(iso2_to_namedict)\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\"] = appln_pers_f[\"appln_auth_fullname\"].map(name_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 \"Patent Office\" if x==\" \" else \"EU\")\n",
"\n",
"# top 25\n",
"# - inventor\n",
"# - applicant\n",
"# in china, EU, EUextended\n",
"color_discrete_map= {'China': '#EF553B',\n",
" 'EU': '#636EFA',\n",
" 'Non-EU associate': '#00CC96',\n",
" 'EPO':'#9F2B68'}\n",
"\n",
"labeld_dict = dict({\n",
" record_col: 'Number of co-patents',\n",
" \"person_ctry_type\": \"Country type\",\n",
" \"psn_sector_primary\":\"Sector\",\n",
" \"han_label\": \"Name\",\n",
" \"Country_Type\":\"Country type\",\n",
" \"Eurovoc_Class\":\"Region\"\n",
" })\n",
"for trait in [\"person_ctry_type\",\"psn_sector_primary\"]:\n",
" for ctry in [\"China\",'EU']:\n",
" ctry_subset = appln_pers_f[appln_pers_f[\"person_ctry_type\"].str.contains(ctry)]\n",
" # for role in [\"invt\",\"applt\"]:\n",
" if True:\n",
" role = \"applt\"\n",
" pers_sub = ctry_subset[ctry_subset[role+\"_seq_nr\"]!=0]\n",
" data = (pers_sub\n",
" .groupby([\"han_id\",'han_name'],as_index=False)\n",
" .agg({'appln_id': 'nunique', 'person_ctry_ISO3': 'first',trait:\"first\"})\n",
" .sort_values(by=\"appln_id\", ascending=False)\n",
" .head(15))\n",
" data[\"han_label\"] = (data[\"han_name\"]\n",
" .str.upper()\n",
" .str.strip(\".\")\n",
" .str.replace(\"&\",\"<br>\")\n",
" + \" (\"+data[\"person_ctry_ISO3\"]+\")\")\n",
"\n",
" fig = px.bar(data, x=record_col, y=\"han_label\", color=trait,\n",
" color_discrete_map=color_discrete_map,text_auto=True,labels=labeld_dict)\n",
" fig.update_layout(font_family=\"Montserrat\",\n",
" yaxis={'categoryorder':'total ascending'})\n",
"\n",
" figsuper = fig\n",
" figsuper.update_layout(yaxis={'categoryorder':'total ascending'}, barmode='relative',yaxis2={'categoryorder':'total ascending'},yaxis3={'categoryorder':'total ascending'})\n",
" figsuper.update_yaxes(\n",
" showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n",
" ticks=\"outside\")\n",
" figsuper.update_xaxes(\n",
" showgrid=True,showline=True, linewidth=1, linecolor='black', mirror=True,\n",
" ticks=\"outside\")\n",
" figsuper.update_layout({'template':\"plotly\",\"font_family\":\"Montserrat\"})\n",
"\n",
" figsuper['layout'][\"font\"][\"size\"]=12\n",
" for a in figsuper['layout'][\"annotations\"]:\n",
" a[\"font\"][\"size\"] = 14\n",
" figsuper[\"layout\"][\"yaxis\"][\"tickfont\"][\"size\"] = 12\n",
"\n",
" figsuper.update_layout(uniformtext_minsize=10)\n",
"\n",
" figsuper.show(config= dict(displayModeBar = False, responsive = True),height=800,width=1600,scale = 4)\n",
" figsuper.write_image(f\"{fromdir}/plots/top15_applt_{trait}_{ctry}.png\",height=900,width=1200,scale = 4)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 127,
"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": [
"Germany",
"Sweden",
"Finland",
"United Kingdom",
"France",
"Denmark",
"Switzerland",
"Italy",
"Poland",
"Netherlands",
"Belgium",
"Spain",
"Austria",
"Ireland",
"Slovakia",
"Czechia",
"Hungary",
"Greece"
],
"y": [
"HUAWEI TECH CO LTD",
"NOKIA SHANGHAI BELL CO LTD",
"NINGBO GEELY AUTOMOBILE R&D CO LTD",
"TCL COMM LTD",
"ZHEJIANG GEELY HOLDINGGROUP CO LTD",
"LENOVO BEIJING CO LTD",
"ALCATEL LUCENT SHANGHAI BELL CO LTD",
"NOKIA CHINA INVESTMENT CO LTD",
"CHINA TRIUMPH INT ENGINEERING CO LTD",
"NOKIA TECH BEIJING CO LTD",
"SCHOTT GLASS TECH SUZHOU CO LTD",
"SIEMENS LTD CHINA",
"DETROIT ELECT EV LTD",
"BEIJING XIAOMI MOBILE SOFTWARE CO LTD",
"CHANGZHOU GLOBE CO LTD",
"SICHUAN GOLDEN RIDGE INTELLIGENCE SCIENCE & TECH CO LTD",
"ZF DRIVETECH SUZHOU CO LTD",
"CRRC QINGDAO SIFANG CO LTD",
"GOODIX TECH HK CO LTD",
"SHENZHEN GOODIX TECH CO LTD"
],
"z": [
[
4.247727832909723,
3.92272545799326,
2.5314789170422554,
2.8325089127062366,
2.3010299956639813,
1.6020599913279625,
2.1760912590556813,
2.462397997898956,
1.3010299956639813,
2.204119982655925,
1.9030899869919435,
1.9542425094393248,
1.3010299956639813,
2.0413926851582254,
0.0,
1.3010299956639813,
0.0,
1.3010299956639813
],
[
3.0453229787866576,
0.0,
3.525044807036845,
2.792391689498254,
2.838849090737255,
2.9444826721501687,
0.0,
0.0,
2.568201724066995,
0.0,
1.6989700043360187,
1.0,
0.0,
1.6020599913279625,
1.3010299956639813,
0.0,
1.3010299956639813,
0.0
],
[
1.6989700043360187,
3.423245873936808,
0.0,
1.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
0.0,
0.0,
0.0,
3.0086001717619175,
0.0,
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.6989700043360187,
2.9242792860618816,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
2.9084850188786495,
0.0,
0.0,
1.845098040014257,
0.0,
0.0,
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.845098040014257,
0.0,
1.0,
2.079181246047625,
2.5185139398778875,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
0.0,
2.5185139398778875,
1.4771212547196624,
0.0,
1.6989700043360187,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
2.462397997898956,
0.0,
0.0,
0.0,
0.0,
0.0,
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.6020599913279625,
0.0,
2.278753600952829,
1.4771212547196624,
0.0,
1.0,
0.0,
0.0,
1.3010299956639813,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
2.3979400086720375,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
2.278753600952829,
0.0,
0.0,
1.3010299956639813,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
0.0,
0.0,
2.3222192947339195,
0.0,
0.0,
0.0,
0.0,
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.9542425094393248,
0.0,
2.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
2.278753600952829,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
2.255272505103306,
0.0,
0.0,
0.0,
0.0,
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.9542425094393248,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
1.9542425094393248,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
2.230448921378274,
0.0,
0.0,
0.0,
0.0,
0.0,
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.0,
0.0,
0.0,
2.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,
0.0
],
[
2.0413926851582254,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
1.4771212547196624,
1.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
],
"type": "heatmap",
"xaxis": "x",
"yaxis": "y",
"hovertemplate": "Inventor (EU): %{x}<br>Applicant (CN): %{y}<br>color: %{z}<extra></extra>",
"text": [
[
1769,
837,
34,
68,
20,
4,
15,
29,
2,
16,
8,
9,
2,
11,
0,
2,
0,
2
],
[
111,
0,
335,
62,
69,
88,
0,
0,
37,
0,
5,
1,
0,
4,
2,
0,
2,
0
],
[
5,
265,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
[
0,
0,
0,
0,
102,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
[
5,
84,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
[
81,
0,
0,
7,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
[
7,
0,
1,
12,
33,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0
],
[
0,
0,
33,
3,
0,
5,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
],
[
29,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
[
4,
0,
19,
3,
0,
1,
0,
0,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
[
25,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
[
19,
0,
0,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
[
0,
0,
0,
21,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
[
0,
0,
9,
0,
10,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
[
0,
19,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
[
0,
18,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
[
9,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
9,
0,
0,
0,
0,
0
],
[
17,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0,
10,
0,
0,
0,
0,
0,
5,
0,
0,
0,
0,
0,
0,
0,
0
],
[
11,
0,
0,
0,
0,
0,
0,
0,
0,
3,
1,
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": "<div> <div id=\"62c87e81-391f-4289-a1fb-78c28e941daf\" class=\"plotly-graph-div\" style=\"height:1000px; width:1000px;\"></div> <script type=\"text/javascript\"> require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"62c87e81-391f-4289-a1fb-78c28e941daf\")) { Plotly.newPlot( \"62c87e81-391f-4289-a1fb-78c28e941daf\", [{\"coloraxis\":\"coloraxis\",\"name\":\"0\",\"texttemplate\":\"%{text}\",\"x\":[\"Germany\",\"Sweden\",\"Finland\",\"United Kingdom\",\"France\",\"Denmark\",\"Switzerland\",\"Italy\",\"Poland\",\"Netherlands\",\"Belgium\",\"Spain\",\"Austria\",\"Ireland\",\"Slovakia\",\"Czechia\",\"Hungary\",\"Greece\"],\"y\":[\"HUAWEI TECH CO LTD\",\"NOKIA SHANGHAI BELL CO LTD\",\"NINGBO GEELY AUTOMOBILE R&D CO LTD\",\"TCL COMM LTD\",\"ZHEJIANG GEELY HOLDINGGROUP CO LTD\",\"LENOVO BEIJING CO LTD\",\"ALCATEL LUCENT SHANGHAI BELL CO LTD\",\"NOKIA CHINA INVESTMENT CO LTD\",\"CHINA TRIUMPH INT ENGINEERING CO LTD\",\"NOKIA TECH BEIJING CO LTD\",\"SCHOTT GLASS TECH SUZHOU CO LTD\",\"SIEMENS LTD CHINA\",\"DETROIT ELECT EV LTD\",\"BEIJING XIAOMI MOBILE SOFTWARE CO LTD\",\"CHANGZHOU GLOBE CO LTD\",\"SICHUAN GOLDEN RIDGE INTELLIGENCE SCIENCE & TECH CO LTD\",\"ZF DRIVETECH SUZHOU CO LTD\",\"CRRC QINGDAO SIFANG CO LTD\",\"GOODIX TECH HK CO LTD\",\"SHENZHEN GOODIX TECH CO LTD\"],\"z\":[[4.247727832909723,3.92272545799326,2.5314789170422554,2.8325089127062366,2.3010299956639813,1.6020599913279625,2.1760912590556813,2.462397997898956,1.3010299956639813,2.204119982655925,1.9030899869919435,1.9542425094393248,1.3010299956639813,2.0413926851582254,0.0,1.3010299956639813,0.0,1.3010299956639813],[3.0453229787866576,0.0,3.525044807036845,2.792391689498254,2.838849090737255,2.9444826721501687,0.0,0.0,2.568201724066995,0.0,1.6989700043360187,1.0,0.0,1.6020599913279625,1.3010299956639813,0.0,1.3010299956639813,0.0],[1.6989700043360187,3.423245873936808,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0,3.0086001717619175,0.0,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.6989700043360187,2.9242792860618816,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[2.9084850188786495,0.0,0.0,1.845098040014257,0.0,0.0,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.845098040014257,0.0,1.0,2.079181246047625,2.5185139398778875,1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[0.0,0.0,2.5185139398778875,1.4771212547196624,0.0,1.6989700043360187,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0],[2.462397997898956,0.0,0.0,0.0,0.0,0.0,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.6020599913279625,0.0,2.278753600952829,1.4771212547196624,0.0,1.0,0.0,0.0,1.3010299956639813,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[2.3979400086720375,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[2.278753600952829,0.0,0.0,1.3010299956639813,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[0.0,0.0,0.0,2.3222192947339195,0.0,0.0,0.0,0.0,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.9542425094393248,0.0,2.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[0.0,2.278753600952829,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[0.0,2.255272505103306,0.0,0.0,0.0,0.0,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.9542425094393248,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.9542425094393248,0.0,0.0,0.0,0.0,0.0],[2.230448921378274,0.0,0.0,0.0,0.0,0.0,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.0,0.0,0.0,2.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,0.0],[2.0413926851582254,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.4771212547196624,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]],\"type\":\"heatmap\",\"xaxis\":\"x\",\"yaxis\":\"y\",\"hovertemplate\":\"Inventor (EU): %{x}<br>Applicant (CN): %{y}<br>color: %{z}<extra></extra>\",\"text\":[[1769,837,34,68,20,4,15,29,2,16,8,9,2,11,0,2,0,2],[111,0,335,62,69,88,0,0,37,0,
},
"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(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": 128,
"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": 185,
"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": [
"ALCATEL LUCENT",
"BAYER MATERIALSCIENCE AG",
"BEIERSDORF AG",
"CG RAIL CHINESISCH DEUTSCHES FORSCHUNGS & ENTWICKLUNGSZENTRUM FUR BAHN ",
"CNRS",
"COVESTRO DEUTSCHLAND AG",
"CTF SOLAR GMBH",
"FRAUNHOFER GESELLSCHAFT ZUR FORDERUNG DER ANGEWANDTEN FORSCHUNG EV",
"FRESENIUS MEDICAL CARE AG&CO KGAA",
"FRESENIUS MEDICAL CARE DEUTSCHLAND GMBH",
"FRIEDRICH ALEXANDER UNIVERSITAT ERLANGEN NURNBERG",
"HENKEL AG&CO KGAA",
"HENKEL IP & HOLDING GMBH",
"LEICA BIOSYSTEMS NUSSLOCH GMBH",
"NOKIA CORP",
"NOKIA TECH LTD",
"RHODIA OPERATIONS",
"ROBERT BOSCH GMBH",
"SIEMENS AG",
"VOLKSWAGEN AG"
],
"y": [
"ABLESTIK SHANGHAI LTD",
"ALCATEL LUCENT SHANGHAI BELL CO LTD",
"BAYER MATERIALSCIENCE CHINA CO LTD",
"BEIERSDORF DAILY CHEMICAL WUHAN CO LTD",
"CHINA TRIUMPH INT ENGINEERING CO LTD",
"CRRC QINGDAO SIFANG CO LTD",
"DALIAN INSTITUTE OF CHEMICAL PHYSICS CHINESE ACADEMY OF SCIENCES",
"FRESENIUS MEDICAL CARE R&D SHANGHAI CO LTD",
"HENKEL CHINA CO LTD",
"HENKEL CHINA INVESTMENT CO LTD",
"HUAWEI TECH CO LTD",
"LEICA MICROSYSTEMS LTD",
"NAVTEQ SHANGHAI TRADING CO LTD",
"NOKIA CHINA INVESTMENT CO LTD",
"NOKIA SHANGHAI BELL CO LTD",
"NOKIA TECH BEIJING CO LTD",
"RHODIA CHINA CO LTD",
"SIEMENS LTD CHINA",
"SOLVAY CHINA CO LTD",
"TSINGHUA UNIV"
],
"z": [
[
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
2.414973347970818,
1.6989700043360187,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
2.591064607026499,
0.0,
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.3010299956639813,
1.6989700043360187,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
1.9030899869919435,
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,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
0.0,
2.57978359661681,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
2.414973347970818,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
0.0,
0.0,
2.230448921378274,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
0.0,
0.0,
0.0,
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.0,
2.0,
0.0,
0.0
],
[
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
1.6989700043360187,
2.5185139398778875,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
2.8512583487190755,
1.845098040014257,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
2.255272505103306,
1.3010299956639813,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
2.3979400086720375,
0.0,
0.0,
1.9030899869919435,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
1.0
],
[
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
2.278753600952829,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
2.7160033436347994,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
3.110589710299249,
2.7634279935629373,
0.0,
0.0,
0.0,
0.0
],
[
1.6020599913279625,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
3.902546779313991,
3.8129133566428557,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
0.0,
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,
3.1398790864012365,
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,
0.0,
2.3010299956639813,
0.0,
0.0,
0.0
],
[
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
3.374748346010104,
0.0
],
[
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
2.079181246047625,
0.0,
0.0,
0.0
],
[
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
2.230448921378274,
0.0,
0.0
]
],
"type": "heatmap",
"xaxis": "x",
"yaxis": "y",
"hovertemplate": "Applicant (EU): %{x}<br>Applicant (CN): %{y}<br>color: %{z}<extra></extra>",
"text": [
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
26,
5,
0,
0,
0,
0,
0,
0,
0
],
[
39,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
2,
5,
0,
0,
0,
0
],
[
0,
8,
0,
0,
0,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
[
0,
0,
38,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
[
0,
0,
0,
0,
0,
0,
26,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
[
0,
0,
0,
17,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10,
0,
0
],
[
0,
0,
0,
0,
0,
0,
0,
0,
5,
33,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
71,
7,
0,
0,
0,
0,
0,
0,
0
],
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
18,
2,
0,
0,
0,
0,
0,
0,
0
],
[
0,
0,
0,
0,
0,
0,
0,
25,
0,
0,
8,
0,
0,
0,
0,
0,
0,
0,
0,
1
],
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
19,
0,
0,
0,
0,
0,
0
],
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
52,
0,
0,
0,
0
],
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
129,
58,
0,
0,
0,
0
],
[
4,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
799,
650,
0,
0,
0,
0
],
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
3,
138,
0,
0,
0,
0
],
[
0,
0,
0,
0,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
20,
0,
0,
0
],
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
237,
0
],
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
12,
0,
0,
0
],
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
17,
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": "Applicant (EU)"
},
"showgrid": false,
"tickangle": 30,
"ticks": "outside",
"tickfont": {
"size": 12
}
},
"yaxis": {
"anchor": "x",
"domain": [
0.0,
1.0
],
"autorange": "reversed",
"constrain": "domain",
"title": {
"text": "Applicant (CN)"
},
"showgrid": false,
"ticks": "outside",
"tickfont": {
"size": 12
}
},
"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": "<div> <div id=\"bbaf2b2b-920b-41bb-ad4b-6944d8bcc9c0\" class=\"plotly-graph-div\" style=\"height:1000px; width:1000px;\"></div> <script type=\"text/javascript\"> require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"bbaf2b2b-920b-41bb-ad4b-6944d8bcc9c0\")) { Plotly.newPlot( \"bbaf2b2b-920b-41bb-ad4b-6944d8bcc9c0\", [{\"coloraxis\":\"coloraxis\",\"name\":\"0\",\"texttemplate\":\"%{text}\",\"x\":[\"ALCATEL LUCENT\",\"BAYER MATERIALSCIENCE AG\",\"BEIERSDORF AG\",\"CG RAIL CHINESISCH DEUTSCHES FORSCHUNGS & ENTWICKLUNGSZENTRUM FUR BAHN \",\"CNRS\",\"COVESTRO DEUTSCHLAND AG\",\"CTF SOLAR GMBH\",\"FRAUNHOFER GESELLSCHAFT ZUR FORDERUNG DER ANGEWANDTEN FORSCHUNG EV\",\"FRESENIUS MEDICAL CARE AG&CO KGAA\",\"FRESENIUS MEDICAL CARE DEUTSCHLAND GMBH\",\"FRIEDRICH ALEXANDER UNIVERSITAT ERLANGEN NURNBERG\",\"HENKEL AG&CO KGAA\",\"HENKEL IP & HOLDING GMBH\",\"LEICA BIOSYSTEMS NUSSLOCH GMBH\",\"NOKIA CORP\",\"NOKIA TECH LTD\",\"RHODIA OPERATIONS\",\"ROBERT BOSCH GMBH\",\"SIEMENS AG\",\"VOLKSWAGEN AG\"],\"y\":[\"ABLESTIK SHANGHAI LTD\",\"ALCATEL LUCENT SHANGHAI BELL CO LTD\",\"BAYER MATERIALSCIENCE CHINA CO LTD\",\"BEIERSDORF DAILY CHEMICAL WUHAN CO LTD\",\"CHINA TRIUMPH INT ENGINEERING CO LTD\",\"CRRC QINGDAO SIFANG CO LTD\",\"DALIAN INSTITUTE OF CHEMICAL PHYSICS CHINESE ACADEMY OF SCIENCES\",\"FRESENIUS MEDICAL CARE R&D SHANGHAI CO LTD\",\"HENKEL CHINA CO LTD\",\"HENKEL CHINA INVESTMENT CO LTD\",\"HUAWEI TECH CO LTD\",\"LEICA MICROSYSTEMS LTD\",\"NAVTEQ SHANGHAI TRADING CO LTD\",\"NOKIA CHINA INVESTMENT CO LTD\",\"NOKIA SHANGHAI BELL CO LTD\",\"NOKIA TECH BEIJING CO LTD\",\"RHODIA CHINA CO LTD\",\"SIEMENS LTD CHINA\",\"SOLVAY CHINA CO LTD\",\"TSINGHUA UNIV\"],\"z\":[[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,2.414973347970818,1.6989700043360187,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[2.591064607026499,0.0,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.3010299956639813,1.6989700043360187,0.0,0.0,0.0,0.0],[0.0,1.9030899869919435,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,0.0,0.0,0.0,0.0],[0.0,0.0,2.57978359661681,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0,0.0,0.0,2.414973347970818,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[0.0,0.0,0.0,2.230448921378274,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0,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.0,2.0,0.0,0.0],[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.6989700043360187,2.5185139398778875,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,2.8512583487190755,1.845098040014257,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,2.255272505103306,1.3010299956639813,0.0,0.0,0.0,0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0,0.0,0.0,0.0,2.3979400086720375,0.0,0.0,1.9030899869919435,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0],[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,2.278753600952829,0.0,0.0,0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,2.7160033436347994,0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,3.110589710299249,2.7634279935629373,0.0,0.0,0.0,0.0],[1.6020599913279625,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,3.902546779313991,3.8129133566428557,0.0,0.0,0.0,0.0],[0.0,0.0,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,3.1398790864012365,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,0.0,2.3010299956639813,0.0,0.0,0.0],[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,3.374748346010104,0.0],[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,2.079181246047625,0.0,0.0,0.0],[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,2.230448921378274,0.0,0.0]],\"type\":\"heatmap\",\"xaxis\":\"x\",\"yaxis\":\"y\",\"hove
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"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.drop(columns = co_occur.columns[~co_occur.columns.str.isupper()])\n",
"co_occur = co_occur.drop(index = co_occur.index[~co_occur.index.str.isupper()])\n",
"\n",
"co_occur.columns = co_occur.columns.str.split(\"&\").str[0:2].str.join(\"&\")\n",
"\n",
"top=20\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",
" .iloc[0:top,0:top]).copy()\n",
"\n",
"co_occur = co_occur.sort_index(axis=1).sort_index(axis=0)\n",
"\n",
"\n",
"\n",
"\n",
"fig = px.imshow(np.nan_to_num(np.log10(co_occur)+1,neginf=0),#co_occur,\n",
" labels=dict(x=\"Applicant (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(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=12\n",
"figsuper_ppt.update_yaxes(tickfont=dict(size=s))\n",
"figsuper_ppt.update_xaxes(tickfont=dict(size=s),tickangle=30)\n",
"\n",
"figsuper_ppt.show(config= dict(displayModeBar = False, responsive = True))\n",
"figsuper_ppt.write_image(rf\"{fromdir}/plots/CN_EU_coapplt.png\",height=900,width=1200,scale = 4)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 167,
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Index([], dtype='object', name='han_name_eu')\n"
]
}
],
"source": [
"print(co_occur.columns[~co_occur.columns.str.isupper()])"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 162,
"outputs": [
{
"data": {
"text/plain": "346"
},
"execution_count": 162,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"len((co_occur.columns.str.isupper()))"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 129,
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "Country type=EU<br>Percent of related co-patents=%{x}<br>Inventor's country=%{y}<extra></extra>",
"legendgroup": "EU",
"marker": {
"color": "#636EFA",
"pattern": {
"shape": ""
}
},
"name": "EU",
"offsetgroup": "EU",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
0.006077303297949923,
0.013856251519325824,
8.103071063933231E-5,
2.430921319179969E-4,
0.001296491370229317,
0.012721821570375172,
0.058828295924155255,
0.05907138805607325,
0.28587634713556437,
4.861842638359938E-4,
0.001296491370229317,
0.0028360748723766306,
0.010858115225670529,
2.430921319179969E-4,
0.00105339923831132,
0.008589255327769224,
0.007859978932015234,
5.672149744753262E-4,
9.723685276719876E-4,
6.482456851146585E-4,
4.0515355319666155E-4,
0.00810307106393323,
0.12656997001863707
],
"xaxis": "x",
"y": [
"Austria",
"Belgium",
"Bulgaria",
"Croatia",
"Czechia",
"Denmark",
"Finland",
"France",
"Germany",
"Greece",
"Hungary",
"Ireland",
"Italy",
"Lithuania",
"Luxembourg",
"Netherlands",
"Poland",
"Portugal",
"Romania",
"Slovakia",
"Slovenia",
"Spain",
"Sweden"
],
"yaxis": "y",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "Country type=China<br>Percent of related co-patents=%{x}<br>Inventor's country=%{y}<extra></extra>",
"legendgroup": "China",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "China",
"offsetgroup": "China",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
0.7120978850984523
],
"xaxis": "x",
"y": [
"China"
],
"yaxis": "y",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "Country type=Non-EU associate<br>Percent of related co-patents=%{x}<br>Inventor's country=%{y}<extra></extra>",
"legendgroup": "Non-EU associate",
"marker": {
"color": "#00CC96",
"pattern": {
"shape": ""
}
},
"name": "Non-EU associate",
"offsetgroup": "Non-EU associate",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
8.103071063933231E-4,
0.019123247710882425,
0.04853739567296005
],
"xaxis": "x",
"y": [
"Norway",
"Switzerland",
"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": "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": "<div> <div id=\"2c2a5d30-b5fc-45a0-a205-4511c3c448f3\" class=\"plotly-graph-div\" style=\"height:525px; width:100%;\"></div> <script type=\"text/javascript\"> require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"2c2a5d30-b5fc-45a0-a205-4511c3c448f3\")) { Plotly.newPlot( \"2c2a5d30-b5fc-45a0-a205-4511c3c448f3\", [{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Country type=EU<br>Percent of related co-patents=%{x}<br>Inventor's country=%{y}<extra></extra>\",\"legendgroup\":\"EU\",\"marker\":{\"color\":\"#636EFA\",\"pattern\":{\"shape\":\"\"}},\"name\":\"EU\",\"offsetgroup\":\"EU\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[0.006077303297949923,0.013856251519325824,8.103071063933231e-05,0.0002430921319179969,0.001296491370229317,0.012721821570375172,0.058828295924155255,0.05907138805607325,0.28587634713556437,0.0004861842638359938,0.001296491370229317,0.0028360748723766306,0.010858115225670529,0.0002430921319179969,0.00105339923831132,0.008589255327769224,0.007859978932015234,0.0005672149744753262,0.0009723685276719876,0.0006482456851146585,0.00040515355319666155,0.00810307106393323,0.12656997001863707],\"xaxis\":\"x\",\"y\":[\"Austria\",\"Belgium\",\"Bulgaria\",\"Croatia\",\"Czechia\",\"Denmark\",\"Finland\",\"France\",\"Germany\",\"Greece\",\"Hungary\",\"Ireland\",\"Italy\",\"Lithuania\",\"Luxembourg\",\"Netherlands\",\"Poland\",\"Portugal\",\"Romania\",\"Slovakia\",\"Slovenia\",\"Spain\",\"Sweden\"],\"yaxis\":\"y\",\"type\":\"bar\"},{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Country type=China<br>Percent of related co-patents=%{x}<br>Inventor's country=%{y}<extra></extra>\",\"legendgroup\":\"China\",\"marker\":{\"color\":\"#EF553B\",\"pattern\":{\"shape\":\"\"}},\"name\":\"China\",\"offsetgroup\":\"China\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[0.7120978850984523],\"xaxis\":\"x\",\"y\":[\"China\"],\"yaxis\":\"y\",\"type\":\"bar\"},{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Country type=Non-EU associate<br>Percent of related co-patents=%{x}<br>Inventor's country=%{y}<extra></extra>\",\"legendgroup\":\"Non-EU associate\",\"marker\":{\"color\":\"#00CC96\",\"pattern\":{\"shape\":\"\"}},\"name\":\"Non-EU associate\",\"offsetgroup\":\"Non-EU associate\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[0.0008103071063933231,0.019123247710882425,0.04853739567296005],\"xaxis\":\"x\",\"y\":[\"Norway\",\"Switzerland\",\"United Kingdom\"],\"yaxis\":\"y\",\"type\":\"bar\"}], {\"template\":{\"data\":{\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"barpolar\"}],\"bar\":[{\"error_x\":{\"color\":\"#2a3f5f\"},\"error_y\":{\"color\":\"#2a3f5f\"},\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"bar\"}],\"carpet\":[{\"aaxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"baxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"type\":\"carpet\"}],\"choropleth\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"choropleth\"}],\"contourcarpet\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"contourcarpet\"}],\"contour\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "Country type=EU<br>Percent of related co-patents=%{x}<br>Applicant's country=%{y}<extra></extra>",
"legendgroup": "EU",
"marker": {
"color": "#636EFA",
"pattern": {
"shape": ""
}
},
"name": "EU",
"offsetgroup": "EU",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
0.007624825776830368,
0.007788800524719193,
1.6397474788882511E-4,
8.198737394441256E-5,
8.198737394441256E-5,
7.378863654997131E-4,
0.0048372550627203414,
0.16159711404443716,
0.09887677297696154,
0.3256538493072067,
1.6397474788882511E-4,
2.459621218332377E-4,
0.003935393949331803,
0.006231040419775354,
1.6397474788882511E-4,
0.0012298106091661884,
0.015331638927605149,
0.0025416085922767896,
3.2794949577765023E-4,
4.919242436664754E-4,
8.198737394441256E-5,
3.2794949577765023E-4,
0.004263343445109453,
0.16176108879232598
],
"xaxis": "x",
"y": [
"Austria",
"Belgium",
"Bulgaria",
"Croatia",
"Cyprus",
"Czechia",
"Denmark",
"Finland",
"France",
"Germany",
"Greece",
"Hungary",
"Ireland",
"Italy",
"Lithuania",
"Luxembourg",
"Netherlands",
"Poland",
"Portugal",
"Romania",
"Slovakia",
"Slovenia",
"Spain",
"Sweden"
],
"yaxis": "y",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "Country type=China<br>Percent of related co-patents=%{x}<br>Applicant's country=%{y}<extra></extra>",
"legendgroup": "China",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "China",
"offsetgroup": "China",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
0.8267606788554562
],
"xaxis": "x",
"y": [
"China"
],
"yaxis": "y",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "Country type=Non-EU associate<br>Percent of related co-patents=%{x}<br>Applicant's country=%{y}<extra></extra>",
"legendgroup": "Non-EU associate",
"marker": {
"color": "#00CC96",
"pattern": {
"shape": ""
}
},
"name": "Non-EU associate",
"offsetgroup": "Non-EU associate",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
5.73911617610888E-4,
0.06772157087808478,
0.036320406657374765
],
"xaxis": "x",
"y": [
"Norway",
"Switzerland",
"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": "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": "<div> <div id=\"9e4cfbbf-dd8b-4518-bf4a-38fc56fd937d\" class=\"plotly-graph-div\" style=\"height:525px; width:100%;\"></div> <script type=\"text/javascript\"> require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"9e4cfbbf-dd8b-4518-bf4a-38fc56fd937d\")) { Plotly.newPlot( \"9e4cfbbf-dd8b-4518-bf4a-38fc56fd937d\", [{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Country type=EU<br>Percent of related co-patents=%{x}<br>Applicant's country=%{y}<extra></extra>\",\"legendgroup\":\"EU\",\"marker\":{\"color\":\"#636EFA\",\"pattern\":{\"shape\":\"\"}},\"name\":\"EU\",\"offsetgroup\":\"EU\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[0.007624825776830368,0.007788800524719193,0.00016397474788882511,8.198737394441256e-05,8.198737394441256e-05,0.0007378863654997131,0.0048372550627203414,0.16159711404443716,0.09887677297696154,0.3256538493072067,0.00016397474788882511,0.0002459621218332377,0.003935393949331803,0.006231040419775354,0.00016397474788882511,0.0012298106091661884,0.015331638927605149,0.0025416085922767896,0.00032794949577765023,0.0004919242436664754,8.198737394441256e-05,0.00032794949577765023,0.004263343445109453,0.16176108879232598],\"xaxis\":\"x\",\"y\":[\"Austria\",\"Belgium\",\"Bulgaria\",\"Croatia\",\"Cyprus\",\"Czechia\",\"Denmark\",\"Finland\",\"France\",\"Germany\",\"Greece\",\"Hungary\",\"Ireland\",\"Italy\",\"Lithuania\",\"Luxembourg\",\"Netherlands\",\"Poland\",\"Portugal\",\"Romania\",\"Slovakia\",\"Slovenia\",\"Spain\",\"Sweden\"],\"yaxis\":\"y\",\"type\":\"bar\"},{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Country type=China<br>Percent of related co-patents=%{x}<br>Applicant's country=%{y}<extra></extra>\",\"legendgroup\":\"China\",\"marker\":{\"color\":\"#EF553B\",\"pattern\":{\"shape\":\"\"}},\"name\":\"China\",\"offsetgroup\":\"China\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[0.8267606788554562],\"xaxis\":\"x\",\"y\":[\"China\"],\"yaxis\":\"y\",\"type\":\"bar\"},{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Country type=Non-EU associate<br>Percent of related co-patents=%{x}<br>Applicant's country=%{y}<extra></extra>\",\"legendgroup\":\"Non-EU associate\",\"marker\":{\"color\":\"#00CC96\",\"pattern\":{\"shape\":\"\"}},\"name\":\"Non-EU associate\",\"offsetgroup\":\"Non-EU associate\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[0.000573911617610888,0.06772157087808478,0.036320406657374765],\"xaxis\":\"x\",\"y\":[\"Norway\",\"Switzerland\",\"United Kingdom\"],\"yaxis\":\"y\",\"type\":\"bar\"}], {\"template\":{\"data\":{\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"barpolar\"}],\"bar\":[{\"error_x\":{\"color\":\"#2a3f5f\"},\"error_y\":{\"color\":\"#2a3f5f\"},\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"bar\"}],\"carpet\":[{\"aaxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"baxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"type\":\"carpet\"}],\"choropleth\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"choropleth\"}],\"contourcarpet\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"contourcarpet\"}],\"contour\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.555555555555
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "Authority type=EU<br>Percent of related co-patents=%{x}<br>Application authority=%{y}<extra></extra>",
"legendgroup": "EU",
"marker": {
"color": "#636EFA",
"pattern": {
"shape": ""
}
},
"name": "EU",
"offsetgroup": "EU",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
5.638340716874748E-4,
4.832863471606927E-4,
4.832863471606927E-4,
7.249295207410391E-4,
0.0016109544905356424,
0.02053966975432944,
0.055739025372533224,
8.054772452678212E-5,
1.6109544905356423E-4,
0.0016109544905356424,
7.249295207410391E-4,
0.003946838501812324,
7.249295207410391E-4,
1.6109544905356423E-4,
3.2219089810712846E-4,
0.002738622633910592,
9.665726943213854E-4
],
"xaxis": "x",
"y": [
"Austria",
"Belgium",
"Czechia",
"Denmark",
"Finland",
"France",
"Germany",
"Ireland",
"Lithuania",
"Luxembourg",
"Morocco",
"Netherlands",
"Poland",
"Portugal",
"Romania",
"Spain",
"Sweden"
],
"yaxis": "y",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "Authority type=China<br>Percent of related co-patents=%{x}<br>Application authority=%{y}<extra></extra>",
"legendgroup": "China",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "China",
"offsetgroup": "China",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
8.054772452678212E-5
],
"xaxis": "x",
"y": [
"China"
],
"yaxis": "y",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "Authority type=Patent Office<br>Percent of related co-patents=%{x}<br>Application authority=%{y}<extra></extra>",
"legendgroup": "Patent Office",
"marker": {
"color": "#7F00FF",
"pattern": {
"shape": ""
}
},
"name": "Patent Office",
"offsetgroup": "Patent Office",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
0.08658880386629078,
0.7877567458719291
],
"xaxis": "x",
"y": [
"EPO",
"WIPO"
],
"yaxis": "y",
"type": "bar"
},
{
"alignmentgroup": "True",
"hovertemplate": "Authority type=Non-EU associate<br>Percent of related co-patents=%{x}<br>Application authority=%{y}<extra></extra>",
"legendgroup": "Non-EU associate",
"marker": {
"color": "#00CC96",
"pattern": {
"shape": ""
}
},
"name": "Non-EU associate",
"offsetgroup": "Non-EU associate",
"orientation": "h",
"showlegend": true,
"textposition": "auto",
"texttemplate": "%{x}",
"x": [
8.860249697946033E-4,
0.03310511478050745
],
"xaxis": "x",
"y": [
"Switzerland",
"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": "<div> <div id=\"e646a2da-3a87-4199-b23b-07764c74d4ae\" class=\"plotly-graph-div\" style=\"height:525px; width:100%;\"></div> <script type=\"text/javascript\"> require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"e646a2da-3a87-4199-b23b-07764c74d4ae\")) { Plotly.newPlot( \"e646a2da-3a87-4199-b23b-07764c74d4ae\", [{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Authority type=EU<br>Percent of related co-patents=%{x}<br>Application authority=%{y}<extra></extra>\",\"legendgroup\":\"EU\",\"marker\":{\"color\":\"#636EFA\",\"pattern\":{\"shape\":\"\"}},\"name\":\"EU\",\"offsetgroup\":\"EU\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[0.0005638340716874748,0.0004832863471606927,0.0004832863471606927,0.0007249295207410391,0.0016109544905356424,0.02053966975432944,0.055739025372533224,8.054772452678212e-05,0.00016109544905356423,0.0016109544905356424,0.0007249295207410391,0.003946838501812324,0.0007249295207410391,0.00016109544905356423,0.00032219089810712846,0.002738622633910592,0.0009665726943213854],\"xaxis\":\"x\",\"y\":[\"Austria\",\"Belgium\",\"Czechia\",\"Denmark\",\"Finland\",\"France\",\"Germany\",\"Ireland\",\"Lithuania\",\"Luxembourg\",\"Morocco\",\"Netherlands\",\"Poland\",\"Portugal\",\"Romania\",\"Spain\",\"Sweden\"],\"yaxis\":\"y\",\"type\":\"bar\"},{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Authority type=China<br>Percent of related co-patents=%{x}<br>Application authority=%{y}<extra></extra>\",\"legendgroup\":\"China\",\"marker\":{\"color\":\"#EF553B\",\"pattern\":{\"shape\":\"\"}},\"name\":\"China\",\"offsetgroup\":\"China\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[8.054772452678212e-05],\"xaxis\":\"x\",\"y\":[\"China\"],\"yaxis\":\"y\",\"type\":\"bar\"},{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Authority type=Patent Office<br>Percent of related co-patents=%{x}<br>Application authority=%{y}<extra></extra>\",\"legendgroup\":\"Patent Office\",\"marker\":{\"color\":\"#7F00FF\",\"pattern\":{\"shape\":\"\"}},\"name\":\"Patent Office\",\"offsetgroup\":\"Patent Office\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[0.08658880386629078,0.7877567458719291],\"xaxis\":\"x\",\"y\":[\"EPO\",\"WIPO\"],\"yaxis\":\"y\",\"type\":\"bar\"},{\"alignmentgroup\":\"True\",\"hovertemplate\":\"Authority type=Non-EU associate<br>Percent of related co-patents=%{x}<br>Application authority=%{y}<extra></extra>\",\"legendgroup\":\"Non-EU associate\",\"marker\":{\"color\":\"#00CC96\",\"pattern\":{\"shape\":\"\"}},\"name\":\"Non-EU associate\",\"offsetgroup\":\"Non-EU associate\",\"orientation\":\"h\",\"showlegend\":true,\"textposition\":\"auto\",\"texttemplate\":\"%{x}\",\"x\":[0.0008860249697946033,0.03310511478050745],\"xaxis\":\"x\",\"y\":[\"Switzerland\",\"United Kingdom\"],\"yaxis\":\"y\",\"type\":\"bar\"}], {\"template\":{\"data\":{\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"barpolar\"}],\"bar\":[{\"error_x\":{\"color\":\"#2a3f5f\"},\"error_y\":{\"color\":\"#2a3f5f\"},\"marker\":{\"line\":{\"color\":\"#E5ECF6\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"type\":\"bar\"}],\"carpet\":[{\"aaxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"baxis\":{\"endlinecolor\":\"#2a3f5f\",\"gridcolor\":\"white\",\"linecolor\":\"white\",\"minorgridcolor\":\"white\",\"startlinecolor\":\"#2a3f5f\"},\"type\":\"carpet\"}],\"choropleth\":[{\"colorbar\":{\"outlinewidth\":0,\"ticks\":\"\"},\"type\":\"choropleth\"}],\"contourcarpet\":[{\"colorbar\":{\"outlinewidth\
},
"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",
" 'Patent Office':'#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()"
1 year ago
],
"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
}