File:Wind power installed capacity in Argentina in MW.svg

Uploaded by MTheiler
Upload date 2025-01-22T08:25:46Z
MIME type image/svg+xml
Dimensions 614 × 461 px
File size 25.3 KB

Summary

Description
English: his plot shows a Bar Chart of the installed Wind power capacity in Argentinia in MW. You find the Python code to regenerate this SVG below. Please update the data in the future ! Data from Windenergie_in_Argentinien
Date
Source Own work
Author MTheiler
SVG development
InfoField
 The SVG code is valid.
 This plot was created with Matplotlib.
Source code
InfoField

Python code

Source code
# Bar Chart with Matplotlib
# Data from https://de.wikipedia.org/wiki/Windenergie_in_Argentinien

import numpy as np
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker

# label of y-axis
plt.title('Wind power installed capacity in Argentina (MW)')
plt.ylabel('MW')

#Format= ['show y/n', year , capacity ]
data=[
['x',2010 ,60   ] ,
[' ',2011 ,129  ] ,
[' ',2012 ,167  ] ,
[' ',2013 ,217  ] ,
[' ',2014 ,271  ] ,
['x',2015 ,279  ] ,
[' ',2016 ,279  ] ,
[' ',2017 ,318  ] ,
[' ',2018 ,751  ] ,
[' ',2019 ,1609 ] ,
['x',2020 ,2624 ] ,
[' ',2021 ,3292 ] ,
[' ',2022 ,3310 ] ,
[' ',2023 ,3706 ] 
]
# please update in future.

show_yesno = np.array([row[0] for row in data])
all_years  = np.array([row[1] for row in data])

bar_labels = []

# show axis-labels only the years marked with 'x'
for i, yesNo in enumerate(show_yesno):
    if (yesNo == 'x'):
        bar_labels.append(all_years[i])
    else:
        bar_labels.append("")

bar_heights     = np.array([row[2] for row in data])

plt.xticks(range(len(bar_heights)), bar_labels  )

plt.bar(range(len(bar_heights)), bar_heights)

plt.savefig('Wind_power_installed_capacity_in_Argentina_MW.svg', format='svg')
plt.show()

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.

Captions

Wind power installed capacity in Argentina

Items portrayed in this file

depicts

21 January 2025

image/svg+xml