Визуализация данных

Денис Катаев

Тип диаграммы

  • Круговая (пирожок)
  • Линейчатая
  • Гистограмма
  • График
  • Точечная

matplotlib.sankey.Sankey

matplotlib skins

matplotlib.pyplot.xkcd

import pylustrator
pylustrator.start()
#% start: automatic generated code from pylustrator
plt.figure(1).set_size_inches(8.000000/2.54, 8.000000/2.54, forward=True)
plt.figure(1).axes[0].set_position([0.191879, 0.148168, 0.798133, 0.742010])
plt.figure(1).axes[0].set_xlabel("data x")
plt.figure(1).axes[0].set_ylabel("data y")
plt.figure(1).axes[1].set_position([0.375743, 0.603616, 0.339534, 0.248372])
plt.figure(1).axes[1].set_xlabel("data x")
plt.figure(1).axes[1].set_ylabel("data y")
plt.figure(1).axes[1].set_ylim(-40.0, 90.0)
#% end: automatic generated code from pylustrator
hist --file data/exp.txt
scatter -x data/x_test.txt -y data/y_test.txt

redis + bitmap op

  • Has user 123 been online today? This week? This month?
  • Has user 123 performed action "X"?
  • How many users have been active have this month? This hour?
  • How many unique users have performed action "X" this week?
  • How many % of users that were active last week are still active?
  • How many % of users that were active last month are still active this month?
  • What users performed action "X"?

(redis + bitmapist) + flask + wtforms

Digital Timing Diagrams

Digital Timing Diagrams

json + js library

{ signal: [
  { name: "clk",  wave: "P......" },
  { name: "bus",  wave: "x.==.=x", 
  	data: ["head", "body", "tail", "data"] },
  { name: "wire", wave: "0.1..0." }
]}

Визуализирует процесс

sqlalchemy + flask + json + wavedrom = PROFIT

Диаграммы это круто

Diagrams

By Denis Kataev

Diagrams

Lightings talks pytup#2019-11-23

  • 1,061