반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- c#
- Excel
- Python
- math
- GIT
- Google Excel
- dataframe
- Tkinter
- Java
- numpy
- matplotlib
- gas
- list
- PySpark
- array
- PANDAS
- Redshift
- google apps script
- Kotlin
- Apache
- string
- django
- hive
- Mac
- Github
- SQL
- 파이썬
- Google Spreadsheet
- PostgreSQL
Archives
- Today
- Total
목록stacked bar (1)
달나라 노트
Python matplotlib : stacked bar (bar method로 stacked bar graph 그리기)
matplotlib의 bar method를 가지고 stacked bar graph를 그릴 수 있습니다. (bar method = https://cosmosproject.tistory.com/427) import matplotlib.pyplot as plt import numpy as np arr_bottom = np.array([0, 0, 0, 0]) list_x = ['2021', '2022', '2023', '2024'] arr_row_1 = np.array([34, 86, 94, 20]) arr_row_2 = np.array([59, 4, 98, 93]) plt.bar(list_x, arr_row_1, bottom=arr_bottom, width=0.5, color='pink') arr_bottom..
Python/Python matplotlib
2024. 4. 10. 02:00