File:Physicians and Doctor consultants in OECD.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 720 × 720 pixels, file size: 93 KB)

Captions

Captions

Add a one-line explanation of what this file represents
This file may be updated to reflect new information.
If you wish to use a specific version of the file without new updates being mirrored, please upload the required version as a separate file.

Summary[edit]

Description Physicians and Doctor consultants per capita, 2018
Date
Source

Own work, Data from OECD Health statistics
https://stats.oecd.org/Index.aspx?DataSetCode=HEALTH_PROC

https://stats.oecd.org/Index.aspx?DataSetCode=HEALTH_REAC
Author Yuasan
Permission
(Reusing this file)
CC-0

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

graph data[edit]

import matplotlib.pyplot as plt
import pandas as pd
import matplotlib.ticker as ticker
import matplotlib.cm as cm 

df1 = pd.read_csv("data.tsv", index_col=0 , sep = "\t")
df2 = pd.read_csv("data2.tsv", index_col=0 , sep = "\t")
df = pd.merge(df1, df2, on='Country', how='outer')

fig, ax = plt.subplots(figsize=(8, 8))
plt.rcParams['font.family'] = 'sans-serif'
plt.rcParams['font.sans-serif'] = ['Noto Sans Display']

plt.subplots_adjust(left=0.1, bottom=0.1, right=0.97, top=0.91)

cmap = cm.get_cmap('tab20b')
i = 0
for k, v in df.iterrows():
    plt.scatter(v[0] , v[1] , color=cmap(i) )
    ax.annotate(k, xy=(v[0]+0.03,v[1]+0.03), color=cmap(i) , size=10, alpha=0.8)
    i = 0 if i>len(cmap.colors) else i+1
    
plt.title("Physicians and Doctor consultants per capita, 2018 \n(OECD Health Statistics)", fontsize=16)

plt.xlabel("Physicians per capita (person)", fontsize=12)
plt.ylabel("Doctors cousultations per capita (Number)", fontsize=12)
plt.xticks(fontsize=8)
plt.yticks(fontsize=8)
plt.xlim([1,6])
plt.ylim([1,18])

ax.xaxis.set_major_locator(ticker.MultipleLocator(1))
ax.xaxis.set_minor_locator(ticker.MultipleLocator(0.25))
ax.yaxis.set_major_locator(ticker.MultipleLocator(1))

ax.set_axisbelow(True)
plt.grid(which='major',color='#eeeeee',linestyle='-', axis="x", zorder=-1)
plt.grid(which='major',color='#eeeeee',linestyle='-', axis="y", zorder=-1)
plt.grid(which='minor',color='#fafafa',linestyle='-', axis="x", zorder=-1)

plt.savefig("image.svg")

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current12:36, 30 June 2023Thumbnail for version as of 12:36, 30 June 2023720 × 720 (93 KB)Yuasan (talk | contribs)typo
12:34, 30 June 2023Thumbnail for version as of 12:34, 30 June 2023720 × 720 (92 KB)Yuasan (talk | contribs)2018 data
05:05, 29 December 2013Thumbnail for version as of 05:05, 29 December 2013493 × 479 (75 KB)Yuasan (talk | contribs)clearly
07:11, 23 December 2013Thumbnail for version as of 07:11, 23 December 2013480 × 467 (1.33 MB)Yuasan (talk | contribs)User created page with UploadWizard

The following page uses this file:

File usage on other wikis

The following other wikis use this file:

Metadata