File:Oecd-mentalhealthconsult.svg

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

Captions

Captions

Add a one-line explanation of what this file represents

Summary

edit
Description
English: Type of provider(s) consulted for mental health problems, selected EU countries, 2010
Date
Source Own work
Author Yuasan, Data from OECD Making Mental Health Count 2014
https://doi.org/10.1787/9789264208445-en.
Permission
(Reusing this file)
CC-0

graph data

edit
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

df = pd.read_csv("data.tsv", index_col=0 , sep = "\t")

fig, ax = plt.subplots(figsize=(8, 5))
x = np.arange(df.index.size)
ax.bar(x-0.25, df["General practitioner"] , color="#3b95d3", width=0.25, bottom=0)
ax.bar(x, df["Psychiatrist"] , color="#D676AB", width=0.25, bottom=0)
ax.bar(x+0.25, df["Psychologist"] , color="#9BBB59", width=0.25, bottom=0)

ax.legend(df.columns, fontsize=10, ncol=2, loc='upper right',  frameon=True, facecolor="#dddddd")
ax.set_axisbelow(True)

plt.rcParams['font.family'] = 'sans-serif'
plt.rcParams['font.sans-serif'] = ['Noto Sans Display']
plt.subplots_adjust(left=0.08, bottom=0.17, right=0.99, top=0.88)

plt.title("Type of provider(s) consulted for mental health problems 2010\n(OECD Making Mental Health Count 2014)", fontsize=13)
plt.tick_params(labelsize=10, pad=4)
plt.xticks(x, df.index, rotation=55, size=8)

plt.ylabel("Percentage", size=8)
plt.yticks(fontsize=9)
plt.ylim([0,100])

ax.minorticks_on()
plt.grid(which='major',color='#999999',linestyle='-', axis="y")
plt.grid(which='minor',color='#eeeeee',linestyle='--', axis="y")

plt.savefig("image.svg")


Licensing

edit
I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

File history

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

Date/TimeThumbnailDimensionsUserComment
current03:34, 22 May 2023Thumbnail for version as of 03:34, 22 May 2023720 × 450 (100 KB)Yuasan (talk | contribs)fix
03:53, 25 August 2014Thumbnail for version as of 03:53, 25 August 2014749 × 487 (97 KB)Yuasan (talk | contribs)User created page with UploadWizard

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file:

Metadata