File:Wind power installed capacity in China MW.svg

Summary

Description

This plot shows a bar-chart of the Wind power installed capacity in China in MW. The data are taken from https://en.wikipedia.org/wiki/Wind_power_in_China. Reference (2018): https://chinaenergyportal.org/en/2018-electricity-other-energy-statistics/

A Python-script is included as comment. To regenerate the bar-chart in the future with new data copy this Python-script and save it on your local computer with a filename ending with .py . Extend bar_heights, bar_labels and bar_x_positions with new data and run the script. Copy the extended code manually as comment into the new generated svg-file.

If you work on PAWS you may add the line plt.savefig('output.svg', format='svg') to the python code.
Date
Source Own work
Author (MTheiler)
SVG development
InfoField
Source code
InfoField

Python code

Source code
# This is a Python-script to generate Scalable Vector Graphics (SVG): Wind_power_installed_capacity_in_China_MW.SVG
# The resulting plot shows a bar-chart of the installed Wind power capacity in China in MW.
# The data are taken from https://en.wikipedia.org/wiki/Wind_power_in_China
# Reference (2018): https://chinaenergyportal.org/en/2018-electricity-other-energy-statistics/
#
# To regenerate the bar-chart in the future with new data copy this Python-script and save it on
# your local computer with a filename ending with .py e.g. Wind_power_installed_capacity_in_China_MW.py.
# Extend bar_heights, bar_labels and bar_x_positions with new data and run the script.
# Copy the extended code manually 

# author: MTheiler, 2019-05-05 and 2025-01-15  
# update years 2019,2020,2021 

import matplotlib.pyplot as plt

# label of y-axis
plt.ylabel('MW')

# start with year 2005 and show only every second year on the x-axis
bar_heights = [1260, 2599, 5912,12200,16000,31100,62700,75000,91424,114763,129700,149000,163670,184260,210050,282650,328480]
bar_labels = [' ','2006',' ','2008',' ','2010',' ','2012',' ','2014',' ','2016',' ','2018',' ','2020',' ']
bar_x_positions = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]

# plot the bar chart
plt.bar(bar_x_positions, bar_heights )
plt.xticks(bar_x_positions, bar_labels)

plt.savefig('Wind_power_installed_capacity_in_China_MW.svg', format='svg')
plt.show()
This file may be updated to reflect new information. If you wish to use a specific version of the file without it being overwritten, please upload the required version as a separate file.
Category:Files that need updating

Licensing

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 4.0 International 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.
Category:CC-BY-SA-4.0#Wind%20power%20installed%20capacity%20in%20China%20MW.svg
Category:Self-published work
Category:Wind energy statistics Category:Charts showing data through 2021 Category:Wind power in China Category:Renewable energy charts in unspecified languages
Category:CC-BY-SA-4.0 Category:Charts showing data through 2021 Category:Files that need updating Category:Renewable energy charts in unspecified languages Category:Self-published work Category:Valid SVG created with Matplotlib code Category:Wind energy statistics Category:Wind power in China