Tập tin:Bitcoin electricity consumption.svg

Tập tin gốc(tập tin SVG, 810×630 điểm ảnh trên danh nghĩa, kích thước: 412 kB)

Miêu tả

Miêu tả
English: Bitcoin electricity consumption based on data from the University of Cambridge (Source: Cambridge Bitcoin Electricity Consumption Index. https://cbeci.org/). This plot is an updated SVG replacement for File:Bitcoin electricity consumption.png. (The country equivalents in the old plot have been left out as requested at Commons:Graphic_Lab/Illustration_workshop#Bitcoin_annualized_electricity_consumption.)
Ngày
Nguồn gốc

Tác phẩm được tạo bởi người tải lên

Data sources:

Tác giả Morn
SVG genesis
InfoField
 
The SVG code is valid.
 
This plot was created with Matplotlib.
Mã nguồn
InfoField

Python code

Source code
from pylab import *
from datetime import datetime, timezone

mi, ma, gu, t = [], [], [], []
matplotlib.rcParams.update({'font.size': 16})

# CSV file from https://ccaf.io/cbeci/api/v1.4.0/download/data?price=0.05
f = open("export.csv")
for num, l in enumerate(f.readlines()):
    if num < 2: continue
    x = l.split(",")
    ts = int(x[0])
    d = datetime.fromtimestamp(ts, timezone.utc)
    t.append(d)
    ma.append(float(x[5]))
    mi.append(float(x[6]))
    gu.append(float(x[7]))

figure(figsize = (9, 7))
fill_between(t, mi, ma, color = "#d8d8d8")
plot(t, ma, label = "Upper bound" , lw = 3.5, c = "#1829af", alpha = .5)
plot(t, mi, label = "Lower bound" , lw = 3.5, c = "#18af23", alpha = .5)
plot(t, gu, label = "Estimate", lw = 5.5, c = "#af2318")

# Estimate is drawn last (so that it is not obscured by the other curves),
# but it should come in _second_ place in the legend, so shuffle legend order accordingly:
handles, labels = gca().get_legend_handles_labels()
order = [0, 2, 1]
legend([handles[idx] for idx in order], [labels[idx] for idx in order], loc = "upper left")

xlabel("Year")
ylabel("[TWh]")
title("Bitcoin annualized electricity consumption")
axis([datetime(2016, 1, 1), datetime(2024, 1, 1), 0, 500])
grid()
gca().tick_params(axis = "both", pad = 14)
gca().set_position([.15, .15, .8, .75])
text(datetime(2024, 1, 1), -90, 'Source: University of Cambridge', va = 'bottom', ha = 'right' , size = 14)
savefig("Bitcoin electricity consumption.svg")

show()
This file may be updated to reflect new information.
If you wish to use a specific version of the file without new updates being mirrored, please upload the required version as a separate file.

Giấy phép

Tôi, người giữ bản quyền tác phẩm này, từ đây phát hành nó theo giấy phép sau:
Creative Commons CC-Zero Tập tin này được phân phối theo Creative Commons Hiến tặng vào Phạm vi Công cộng Toàn thế giới CC0.
Người nào gán tài liệu này với tác phẩm nghĩa là đã hiến tác phẩm cho phạm vi công cộng bằng cách từ bỏ mọi quyền lợi của người đó đối với tác phẩm theo quy định của luật bản quyền, có hiệu lực trên toàn thế giới và các quyền lợi pháp lý phụ mà người đó có được trong tác phẩm, đến mức độ mà luật pháp cho phép. Bạn được tự do sao chép, phân phối, và biểu diễn tác phẩm này, tất cả đều không bắt buộc ghi công.

Chú thích

Ghi một dòng giải thích những gì có trong tập tin này

Khoản mục được tả trong tập tin này

mô tả

Lịch sử tập tin

Nhấn vào ngày/giờ để xem nội dung tập tin tại thời điểm đó.

Ngày/giờHình xem trướcKích cỡThành viênMiêu tả
hiện tại10:42, ngày 10 tháng 12 năm 2023Hình xem trước của phiên bản lúc 10:42, ngày 10 tháng 12 năm 2023810×630 (412 kB)Mornchange labels in legend
17:11, ngày 9 tháng 12 năm 2023Hình xem trước của phiên bản lúc 17:11, ngày 9 tháng 12 năm 2023810×630 (412 kB)MornUploaded own work with UploadWizard
Có 1 trang tại Wikipedia tiếng Việt có liên kết đến tập tin (không hiển thị trang ở các dự án khác):

Sử dụng tập tin toàn cục

Những wiki sau đang sử dụng tập tin này:

Đặc tính hình