Skip to content

Commit

Permalink
small corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrembilla committed Aug 7, 2022
1 parent 47f349d commit 69c9bb0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions data_viz_new.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31667,7 +31667,7 @@
" labels={ \"year\": \"Year\" }, color_discrete_sequence= ['#471D6C', '#34B67A'] ,\n",
" title=\"Comparison between DOAJ articles on Crossref <br> and relative reference list presence over years.\")\n",
"\n",
"newnames = {'perc_ref': \"Percentage of references\", 'perc_cr': \"Percentage of DOAJ articles\"}\n",
"newnames = {'perc_ref': \"Percentage with references\", 'perc_cr': \"Percentage of DOAJ articles\"}\n",
"fig.for_each_trace(lambda t: t.update(name = newnames[t.name],\n",
" legendgroup = newnames[t.name],\n",
" hovertemplate = t.hovertemplate.replace(t.name, newnames[t.name])\n",
Expand Down Expand Up @@ -33699,7 +33699,7 @@
"\n",
"fig = px.bar(frame12,x='country-name',y='perc_ref', width=800, color=\"ref-num\", color_continuous_scale=[[0,\"#440154\"],[0.05,\"#414084\"],[0.2,\"#25848E\"], [0.5,\"#66CA5C\"],[1,\"#FBE625\"]], \n",
" labels={\"country-name\": \"Country\", \"perc_ref\": \"Percentage of references on Crossref\", \"continent\":\"Contintent\", \"ref-num\": \"Number of references\" },\n",
" title=\"Crossref references list overview - by country <br><sup>The plot is showing Countries with less than 20% of reference list on Crossref</sup>\")\n",
" title=\"Crossref references list overview - by country <br><sup>Countries with less than 20% of reference list on Crossref</sup>\")\n",
"\n",
"fig.update_layout(\n",
" font_family=\"sans-serif\",\n",
Expand Down Expand Up @@ -67708,7 +67708,7 @@
"\n",
"fig = go.Figure()\n",
"fig.add_trace(go.Violin(y=frameA['perc_cr'], points=\"all\", box_visible=True, name=\"DOAJ articles indexed on Crossref\", marker_color='#471D6C' ))\n",
"fig.add_trace(go.Violin(y=frameA['perc_ref'], points=\"all\", box_visible=True, name=\"Crossref reference list\", marker_color='#34B67A' ))\n",
"fig.add_trace(go.Violin(y=frameA['perc_ref'], points=\"all\", box_visible=True, name=\"Articles with a reference list on Crossref\", marker_color='#34B67A' ))\n",
"\n",
"fig.update_yaxes(range=[0, 100])\n",
"fig.update_layout(\n",
Expand Down Expand Up @@ -68643,7 +68643,7 @@
"ref_defined = ref_defined.sum()\n",
"\n",
"new['val'] = [ und, ref_defined, ass_cross, ass_pub ]\n",
"new['ref'] = ['Missing/undefined doi', 'Articles with DOI reference list','Asserted by Crossref', 'Asserted by citing publisher']\n",
"new['ref'] = ['Missing/undefined doi', 'Articles with DOI reference list','Asserted by Crossref', 'Asserted by Publisher']\n",
"new['parent'] = ['', '','Articles with DOI reference list', 'Articles with DOI reference list']\n",
"\n",
"fig = px.sunburst(\n",
Expand Down Expand Up @@ -68677,7 +68677,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.9.4 64-bit",
"display_name": "Python 3.9.9 64-bit",
"language": "python",
"name": "python3"
},
Expand All @@ -68691,12 +68691,12 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.4"
"version": "3.9.9"
},
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "aee8b7b246df8f9039afb4144a1f6fd8d2ca17a180786b69acc140d282b71a49"
"hash": "72f235a78b5cf937fd09c1593b6a0e4473f824a03930b62c2c7d9a177b9de8f3"
}
}
},
Expand Down

0 comments on commit 69c9bb0

Please sign in to comment.