Word Cloud

Biotech Innovation

Biotechnology and life sciences terms

Output
Biotech Innovation
Python
import matplotlib.pyplot as plt
from wordcloud import WordCloud

text = """Biotechnology CRISPR Gene Editing Genome Sequencing DNA RNA mRNA
Protein Folding AlphaFold Synthetic Biology Bioinformatics Genomics
Cell Therapy CAR-T Immunotherapy Cancer Treatment Oncology Precision
Medicine Personalized Healthcare Biomarker Diagnostics PCR Antibody
Vaccine mRNA Lipid Nanoparticle Drug Discovery Clinical Trial FDA
Stem Cells Regenerative Medicine Tissue Engineering Organoids 3D Print
Microbiome Gut Health Probiotics Metabolomics Proteomics Epigenetics"""

def bio_green(word, font_size, position, orientation, random_state=None, **kwargs):
    intensity = font_size / 120
    if intensity > 0.8:
        return '#00ff88'
    elif intensity > 0.5:
        return '#6CF527'
    elif intensity > 0.3:
        return '#22c55e'
    else:
        return '#15803d'

wordcloud = WordCloud(
    width=1200, height=600,
    background_color='#0a0a0f',
    color_func=bio_green,
    max_words=80,
    max_font_size=120,
    min_font_size=10,
    relative_scaling=0.5
).generate(text)

fig, ax = plt.subplots(figsize=(12, 6), facecolor='#0a0a0f')
ax.imshow(wordcloud, interpolation='bilinear')
ax.axis('off')
plt.tight_layout(pad=0)
plt.show()
Library

Matplotlib

Category

Text Visualization

Did this help you?

Support PyLucid to keep it free & growing

Support