Keywords
- Boxplot
- Gantt多线程管理
- UFCMacau
- A lot can change in 1000 years
TOC
Kendrick Lamar The Heart Part 5
As I get a little older
I realize life is perspective
And my perspective may differ from yours
I wanna say thank you to everyone that's been down with me
All my fans, all my beautiful fans
Anyone who's ever gave me a listen
All my people
I come from a generation of pain, where murder is minor
Rebellious and Margielas'll chip you for designer
Belt buckles and clout, overzealous if prone to violence
Make the wrong turn, be it will or the wheel alignment
Residue burned, mist of the inner-city
Miscommunication to keep homi' detective busy
No protection is risky
Desensitized, I vandalized pain, covered up and camouflaged
Get used to hearing arsenal rain
Analyze, risk your life, take the charge
Homies done fucked your baby mama once you hit the yard
That's culture
Twenty-three hour lockdown, then somebody called
Said your lil nephew was shot down, the culture's involved
I done seen niggas do seventeen, hit the halfway house
Get out and get his brains blown out, looking to buy some weed
Car wash is played out, new GoFundMe accounts'll proceed
A brand-new victim'll shatter those dreams, the culture
(I want, I want, I want, I want)
But I want you to want me too (I want, I want, I want, I want)
I want the hood to want me back (I want, I want, I want, I want)
I want the hood
Look what I done for you (look what I done for you)
Look what I done for you
I said I do this for my culture
To let y'all know what a nigga look like in a bulletproof Rover
In my mama's sofa was a doo-doo popper
Hair trigger, walk up closer, ain't no Photoshopping
Friends bipolar, grab you by your pockets
No option if you froze up, always play the offense
Niggas going to work and selling work, late for work
Working late, praying for work, but he on paperwork
That's the culture, point the finger, promote ya
Remote location, witness protection, they gon' hold ya
The streets got me fucked up
Y'all can miss me
I wanna represent for us
New revolution was up and moving
I'm in Argentina wiping my tears full of confusion
Water in between us, another peer's been executed
History repeats again
Make amends, then find a nigga with the same skin to do it
But that's the culture, crack a bottle
Hard to deal with the pain when you're sober
By tomorrow we forget the remains, we start over
That's the problem
Our foundation was trained to accept whatever follows
Dehumanized, insensitive
Scrutinize the way we live for you and I
Enemies shook my hand, I can promise I'll meet you
In the land where no equal is your equal
Never say I ain't told ya, nah
In the land where hurt people hurt more people
Fuck calling it culture
(I want, I want, I want, I want)
But I want you to want me too (I want, I want, I want, I want)
I want the hood to want me back (I want, I want, I want, I want)
I want the hood
Look what I done for you (look what I done for you)
Look what I done for you
Take the drums out
Celebrate new life when it come back around
The purpose is in the lessons we learning now
Sacrifice personal gain over everything
Just to see the next generation better than ours
I wasn't perfect, the skin I was in had truly suffered
Temptation, impatience, everything that the body nurtures
I felt the good, I felt the bad and I felt the worry
But all-in-all, my productivity had stayed urgent
Face your fears, always knew that I would make it here
Where the energy is magnified and persevered
Consciousness is synchronized and crystal-clear
Euphoria is glorified and made His
Reflecting on my life and what I done
Paid dues, made rules, change outta love
Them same views made schools change curriculums
But didn't change me staring down the barrel of the gun
Should I feel resentful I didn't see my full potential?
Should I feel regret about the good that I was into?
Everything is everything, this ain't coincidental
I woke up that morning with more heart to give you
As I bleed through the speakers, feel my presence
To my brother, to my kids, I'm in heaven
To my mother, to my sis, I'm in heaven
To my father, to my wife, I am serious, this is heaven
To my friends, make sure you counting them blessings
To my fans, make sure you make them investments
And to the killer that sped up my demise
I forgive you, just know your soul's in question
I seen the pain in your pupil when that trigger had squeezed
And though you did me gruesome, I was truly relieved
I completed my mission, wasn't ready to leave
But fulfilled my days, my Creator was pleased
I can't stress how I love y'all
I don't need to be in flesh just to hug y'all
The memories recollect just because y'all
Celebrate me with respect
The unity we protect is above all
And, Sam, I'll be watching over you
Make sure my kids watch all my interviews
Make sure you live out our dreams we produced
Keep that genius in your brain on the move
And to my neighborhood, let the good prevail
Make sure them babies and the leaders outta jail
Look for salvation when troubles get real
'Cause you can't help the world until you help yourself
And I can't blame the hood the day that I was killed
Y'all had to see it, that's the only way to feel
And though my physical won't reap the benefits
The energy that carry on emits still
I want you
Boxplot
↩️
最近统计整理,需要绘制点直观反应分布的Boxplot统计,当然柱状图+errorbar也看得过去。
What graphs will we see today?
↩️
Some of the very basic and commonly used plots for data are:
- Bar and Column Charts
- Histograms and Frequency Distributions
- Box Plots
- 2D Hexbins Plots and 2D Frequency Distributions
- Ridge Plots ( Quant + Qual variables)
Code
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
plt.style.use('default')
plt.rcParams['font.sans-serif'] = ['Arial']
plt.rcParams['axes.unicode_minus'] = False
A = [1.7, 1.8, 1.64, 1.55, 1.32, 1.51, 1.64, 1.69, 1.77, 1.42]
B = [2.56, 2.69, 2.65, 1.99, 2.13, 2.64, 2.35, 2.56, 2.55, 2.12]
C = [2.12, 2.23, 2.64, 1.96, 1.89, 1.68, 2.21, 2.65, 2.66, 2.68]
data = [A, B, C]
x_labels = ['P', 'P', 'T']
colors = ['#000000', '#1BB6AFFF', '#D65B5AFF']
fig, ax1 = plt.subplots(figsize=(12, 8), dpi=100)
for i, sample in enumerate(data):
box = ax1.boxplot(
[sample],
patch_artist=True,
positions=[i + 1],
widths=0.5,
boxprops=dict(facecolor=colors[i], color="black", linewidth=1.5, alpha=0.5),
whiskerprops=dict(color="black", linewidth=1.5),
capprops=dict(color="black", linewidth=1.5),
medianprops=dict(color="red", linewidth=2),
flierprops=dict(marker='o', color='red', alpha=0.5),
)
'''
for i, sample in enumerate(data):
x_vals = np.random.normal(i + 1, 0.04, size=len(sample))
ax1.scatter(x_vals, sample, alpha=0.7, color=colors[i], edgecolor="black", s=50)
'''
for i, sample in enumerate(data):
x_vals = np.full_like(sample, i + 1, dtype=float)
ax1.scatter(x_vals, sample, alpha=0.7, color=colors[i], edgecolor="black", s=50)
ax1.set_xticks(np.arange(len(x_labels)) + 1)
ax1.set_xticklabels(x_labels, fontsize=28)
ax1.set_ylabel("OCP (V)", fontsize=28, labelpad=20)
ax1.set_ylim(1.0, 3.0)
for i, sample in enumerate(data):
mean = np.mean(sample)
ax1.text(i + 1, mean + 0.05, f"{mean:.2f}", ha='center', fontsize=20, color="white")
ax2 = ax1.twinx()
scaled_data = [[x * 5 for x in sample] for sample in data]
print(scaled_data)
for i, sample in enumerate(scaled_data):
kde = sns.kdeplot(
y=sample,
ax=ax2,
bw_adjust=0.5,
color=colors[i],
linewidth=2.5,
fill=True,
alpha=0.5,
label=x_labels[i]
)
if kde.get_lines():
density_line = kde.get_lines()[-1]
x, y = density_line.get_data()
max_density = max(x)
x_normalized = x/ max_density
kde.get_lines()[-1].set_data(x_normalized, y)
ax2.set_xlabel("Normalized Density", fontsize=28, labelpad=20)
ax2.tick_params(axis='x', which='major', labelsize=20)
ax2.set_xlim(0,4)
ax2.get_yaxis().set_visible(False)
ax1.tick_params(axis='both', which='minor', labelsize=28, width=1, length=15)
plt.legend(loc='lower right',fontsize=28, labelspacing=0.3, frameon=False)
ax1.tick_params(axis='both', which='major', labelsize=28, width=1, length=15)
for spine in ax1.spines.values():
spine.set_linewidth(1)
plt.show()
☕Gooddays
- 说是最难的活要最先干,”青蛙“要第一个吃,但是我现在青蛙在那很多天了,我根本不想看到,不是懒,是畏惧麻烦,感觉难以解决。写在纸上慢慢分解任务稍微有点助推的作用。
Gantt多线程管理
- notion里面用代码形式绘制gantt甘特图能够渲染出来,但是由于时间长了之后不能拖动时间轴,事务就会挤得很紧,图越用越没有意义,于是就想找新的管理,专门用于个人多线程管理的甘特图工具,网站也行,但是不可能自己后端开发,于是搜索到一个新的app,手机端、网页端、电脑端都支持,亲测同步速度极快 Trello: https://trello.com/ 通过卡片管理
- 最后还是换回NOTION编辑,工具最好是瑞士军刀那样,否则房间里满地工具也是影响生产效率。
- 当然notion也有timeline时间轴来管理,但是不一定适用所有多线程管理。最后,行动是关键,就算是车间、实验室一个记录本也可以多线程管理地良好。
- 生活中需要点折腾,折腾和阅读很像,真正进入状态的时候很专注,比较难停下来,比如编写某种类型的绘图的代码,实现某个交互功能?或者更多时候你只想满足自己的爱好、想法?图书馆埋头一个下午最终实现一个信号处理功能的算法,亦或者寝室里熬夜到很晚编辑整理示意图等。记得我很早开始时,组会前准备PPT时将文献的思路用mermaid整理出来,整体思路梳理也比较明确,老师也表示出好奇和赞成,虽然mermaid超级简单,但是整体相当于思维导图时候涉及内容太多也比较麻烦,有一定工作量。折腾这些技术和阅读,记笔记有着共同的功能——支援未来的自己。只有比较熟的时候,遇到特定的问题才会提出更优解。
EKL Wisdom Shelf
UFCMacau
- 前面听说澳门站见面会有张伟丽,李景亮,洛佩兹和盖奇,Uh.
When they ask you what you’re up to this weekend but you’re low key just a chill guy pulling an all nighter to watch #UFCMacau pic.twitter.com/dS0UUKRizH
— UFC (@ufc) November 21, 2024
这是由UFC决定的
— Charles 'DoBronxs' Oliveira (@CharlesDoBronxs) November 18, 2024
UFC 309
Guess who? pic.twitter.com/ExzlBOGSBz
— Elon Musk (@elonmusk) November 17, 2024
President @RealDonaldTrump in the building for #UFC309 pic.twitter.com/fGk5AJM0G1
— UFC (@ufc) November 17, 2024
想找的就是这个 - A lot can change in 1000 years
A lot can change in 1000 years pic.twitter.com/jQr6rcP89C
— Terrible Maps (@TerribleMaps) November 11, 2024
Thanks for being an insider till the end!
Till next , stay safe and stay hydrated!