Սկզբնական նիշք(SVG-նիշք, անվանապես 405 × 338 փիքսել, նիշքի չափը՝ 127 ԿԲ)

Այս նիշքը տեղադրված է Վիքիպահեստում է և այն կարող է օգտագործվել այլ նախագծերի կողմից։ Վիքիպահեստում նիշքի մասին տեղեկությունների հիմնական մասը ներկայացված է ստորև։

Ամփոփում

Նկարագրում
English: Histogram of abortions by gestational age for the United States in 2016. Horizontal axis is weeks and vertical axis is thousands of abortions per week.

Data is taken from the Centers for Disease Control and Prevention.[1]

From TABLE 7. Reported abortions, by known weeks of gestation and reporting area of occurrence — selected reporting areas, United States, 2016

and

TABLE 9. Reported abortions obtained at ≤13 weeks’ gestation, by weeks of gestation and reporting area of occurrence — selected reporting areas, United States, 2016
Թվական
Աղբյուր Բեռնողի սեփական աշխատանքThis file was derived from : US abortion by gestational age 2004 histogram.svg
Հեղինակ Omegatron
Այլ մեկնակերպներ
SVG genesis
InfoField
 
Սա վեկտոր գրաֆիկական պատկեր է ստեղծված է եղել Matplotlib օգնությամբ: .
Ելակետային կոդ
InfoField

Python code

Source code
"""
From:
https://www.cdc.gov/mmwr/volumes/68/ss/ss6811a1.htm
TABLE 7. Reported abortions, by known weeks of gestation and reporting area of
    occurrence — selected reporting areas, United States, 2016

TABLE 9. Reported abortions obtained at ≤13 weeks’ gestation, by weeks of
    gestation and reporting area of occurrence — selected reporting areas,
    United States, 2016

It says ≤6, and ≤13, so I assume the "7 weeks" bin is (6, 7], for instance.

It says 18–20 and ≥21, though, which I assume means (20, 40].
"""
import numpy as np
import matplotlib.pyplot as plt

table = np.array([[0,  6,  148369],
                  [7,  7,  76293],
                  [8,  8,  58030],
                  [9,  9,  39653],
                  [10, 10, 24280],
                  [11, 11, 19742],
                  [12, 12, 14680],
                  [13, 13, 11770],
                  [14, 15, 15602],
                  [16, 17, 9089],
                  [18, 20, 8454],
                  [21, 40, 5303]])

freqs = table[:, 2]
freqs = freqs / 1000
bins = np.concatenate((table[0:1, 0], table[:, 1]))
assert len(bins) == len(freqs) + 1

widths = bins[1:] - bins[:-1]

heights = freqs/widths
heights = freqs.astype(np.float)/widths

fig, ax = plt.subplots(figsize=(4.5, 3.8))

ax.bar(bins[:-1], heights, width=widths, align='edge',
       facecolor='#B2BFD9', edgecolor='#778BB2', zorder=2)

"""
Draw to match
https://en.wikipedia.org/wiki/File:Abortionmethods.png
"""
kwargs = {'xycoords': ('data', 'axes fraction'),
          'horizontalalignment': 'center',
          'verticalalignment': 'center'}
ax.axvspan(0, 12, color='#ACE07B')
ax.annotate('1st trimester\n(0-12 weeks)', (6, 0.93), **kwargs)
ax.axvspan(12, 28, color='#D8E370')
ax.annotate('2nd trimester\n(13-28 weeks)', (20, 0.93), **kwargs)
ax.axvspan(28, 40, color='#E1BA72')
ax.annotate('3rd trimester\n(29-40 weeks)', (34, 0.93), **kwargs)
ax.axvline(12, c='gray', lw=0.2, zorder=1)
ax.axvline(28, c='gray', lw=0.2, zorder=1)

ax.set_xlim(0, 40)
ax.set_ylim(0, 90)
ax.set_xlabel('Gestational age [weeks]')
ax.set_ylabel('Abortions (×1000)')
ax.minorticks_on()

plt.tight_layout()
plt.show()

Data

Gest week   abortions   weeks/bin   abortions/week
≤6          148369      6           24728.2
7           76293       1           76293
8           58030       1           58030
9      	    39653       1           39653
10          24280       1           24280
11          19742       1           19742
12          14680       1           14680
13          11770       1           11770
14-15       15602       2           7801
16-17       9089        2           4544.5
18-20       8454        3           2818
≥21         5303        20          265.15

Արտոնագրում

Ես, սույն աշխատանքի հեղինակային իրավունքների տերը, այսուհետ այն հրատարակում եմ հետևյալ արտոնագրի ներքո։
w:en:Creative Commons
հղում համանման տարածում
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
Դուք ազատ եք՝
  • կիսվել ստեղծագործությամբ – պատճենել, տարածել և փոխանցել այս աշխատանքը։
  • վերափոխել – ադապտացնել աշխատանքը
Պահպանելով հետևյալ պայմանները'
  • հղում – Դուք պետք է նշեք հեղինակի (իրավատիրոջ) հղումը:
  • համանման տարածում – Եթե դուք ձևափոխում եք, փոխակերպում, կամ այս աշխատանքի հիման վրա ստեղծում եք նոր աշխատանք, ապա ձեր ստեղծածը կարող է տարածվել միայն նույն կամ համարժեք թույլատրագրով։

Captions

Add a one-line explanation of what this file represents
Histogram of abortions by gestational age for the United States in 2016

Items portrayed in this file

պատկերված

11 Հոկտեմբերի 2020

Նիշքի պատմություն

Մատնահարեք օրվան/ժամին՝ նիշքի այդ պահին տեսքը դիտելու համար։

Օր/ԺամՄանրապատկերՕբյեկտի չափըՄասնակիցՄեկնաբանություն
ընթացիկ05:11, 26 Հունիսի 202205:11, 26 Հունիսի 2022 տարբերակի մանրապատկերը405 × 338 (127 ԿԲ)Kwamikagami3-month trimesters per UCSF
05:54, 13 Հոկտեմբերի 202005:54, 13 Հոկտեմբերի 2020 տարբերակի մանրապատկերը405 × 338 (55 ԿԲ)Omegatronsame dimensions as original
05:47, 13 Հոկտեմբերի 202005:47, 13 Հոկտեմբերի 2020 տարբերակի մանրապատկերը450 × 356 (54 ԿԲ)OmegatronA little smaller and add borders to bins
02:57, 12 Հոկտեմբերի 202002:57, 12 Հոկտեմբերի 2020 տարբերակի մանրապատկերը540 × 446 (53 ԿԲ)Omegatrontight layout
02:43, 12 Հոկտեմբերի 202002:43, 12 Հոկտեմբերի 2020 տարբերակի մանրապատկերը540 × 446 (53 ԿԲ)OmegatronUploaded own work with UploadWizard

Հետևյալ էջը հղվում է այս նիշքին՝

Նիշքի համընդհանուր օգտագործում

Հետևյալ այլ վիքիները օգտագործում են այս նիշքը՝

Մետատվյալներ