make a .mindmap of the whole chapter.

Reading File
Running Command

cd /home/daytona/workspace && python3 -c " import pdfplumber pdf_path = '/home/daytona/workspace/attachments/a546131f-2f89-4ff8-ac93-75ff9d32c021/RENAL PATHO _260626_204922.pdf' with pdfplumber.open(pdf_path) as pdf: print(f'Total pages: {len(pdf.pages)}') # Extract first few pages to understand structure for i, page in enumerate(pdf.pages[:5]): text = page.extract_text() print(f'--- PAGE {i+1} ---') print(text[:2000] if text else '[no text]') print() "

Running Command

python3 -c " import pdfplumber pdf_path = '/home/daytona/workspace/attachments/a546131f-2f89-4ff8-ac93-75ff9d32c021/RENAL PATHO _260626_204922.pdf' with pdfplumber.open(pdf_path) as pdf: all_text = '' for i, page in enumerate(pdf.pages): text = page.extract_text() if text: all_text += f'\n=== PAGE {i+1} ===\n' + text + '\n' with open('/home/daytona/workspace/renal_patho_text.txt', 'w') as f: f.write(all_text) print(f'Saved. Total chars: {len(all_text)}') "

Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Writing File

~/renal_patho_mindmap/RENAL_PATHO.mindmap

# KIDNEY & URINARY TRACT DISORDERS (Renal Pathology)

## 1. NORMAL ANATOMY & HISTOLOGY
### Anatomy
- Bean-shaped paired organs
- Thin fibrous capsule
- Hilum (medial aspect) → artery, vein, lymphatics, ureter
### Nephron (~1 million per kidney)
- Glomerular capsule (glomerulus + Bowman's capsule)
- Proximal convoluted tubule (PCT)
- Loop of Henle
- Distal convoluted tubule (DCT)
- Collecting ducts
### Glomerulus
- Invagination of blind end of PCT
- Capillary tuft → afferent arteriole in, efferent arteriole out
### Filtration Barrier (3 layers)
- Fenestrated endothelial cells
- GBM (3 sub-layers)
  - Lamina densa (central)
  - Lamina rara interna (endothelial side)
  - Lamina rara externa (visceral epithelial side)
- Podocytes (visceral epithelial cells) with filtration slit pores

## 2. NEPHRITIC vs NEPHROTIC SYNDROME
### Nephritic Syndrome
#### Features
- Haematuria (RBC casts → classical)
- Mild proteinuria (<3 g/24 hr, non-selective)
- Sodium & water retention
- Hypertension
- Mild oedema
- Oliguria
#### Examples – Primary GN
- Post-streptococcal GN
- Rapidly progressive GN (most common cause)
- Membranoproliferative GN
- Focal & diffuse proliferative GN
- IgA nephropathy
#### Examples – Systemic
- SLE
- Polyarteritis nodosa
- Wegener's granulomatosis
- Henoch-Schönlein purpura
- Cryoglobulinaemia
### Nephrotic Syndrome
#### Features
- Heavy proteinuria (>3 g/24 hr, selective)
- Hypoalbuminaemia (albumin 1–3 g/dL)
- Oedema (↓ oncotic pressure)
- Hyperlipidaemia (↑ hepatic lipoprotein synthesis)
- Lipiduria
- Hypercoagulability (↑ renal vein thrombosis risk)
#### Consequences of protein loss
- ↓ Immunoglobulins → infections (pneumococcus, E. coli)
- ↓ Antithrombin III → thrombosis
- ↓ Transferrin → microcytic hypochromic anaemia
- ↓ Cholecalciferol-binding protein → hypocalcaemia
- ↓ Thyroxine-binding globulin → ↓ thyroxine
- ↑ Fibrinogen (hepatic synthesis)
#### Examples – Primary GN
- Minimal change disease (most common in children)
- FSGS (most common in adults)
- Membranoproliferative GN
- Membranous GN
- Focal & diffuse proliferative GN
- IgA nephropathy
#### Examples – Systemic
- Diabetes mellitus
- Amyloidosis
- SLE
### Azotaemia & Uraemia
- Azotaemia = ↑ blood urea nitrogen (BUN)
- Uraemia = symptomatic azotaemia with systemic effects

## 3. GLOMERULONEPHRITIS (GN)
### Pathogenesis Mechanisms
#### 1. Immune-complex Mediated
- In situ – Fixed Ag (e.g., anti-GBM → Goodpasture syndrome; Ag = α3 chain of collagen IV)
- In situ – Planted Ag (bacterial/viral/parasitic/drugs)
- Circulating immune complex (endogenous e.g. SLE; exogenous e.g. Hep B, malaria, tumour Ag)
#### 2. Cell-mediated (Delayed Hypersensitivity)
- CD4 & CD8 T cells → cytokines → cytotoxicity
- Pauci-immune mechanism (no immune complex)
#### 3. Alternative Complement Pathway
- C3 & properdin deposited without Ig
### Deposit Locations (EM)
- Subepithelial
- Epimembranous
- Subendothelial
- Mesangial
### Classification
#### Primary GN
- Acute / Post-streptococcal GN
- Rapidly progressive GN
- Minimal change disease
- Membranous GN
- Membranoproliferative GN
- Focal & diffuse proliferative GN
- FSGS
- IgA nephropathy
- Chronic GN
#### Secondary (Systemic)
- Lupus nephritis (SLE)
- Diabetic nephropathy
- Amyloidosis
- Polyarteritis nodosa
- Wegener's granulomatosis
- Goodpasture's syndrome
- Henoch-Schönlein purpura
#### Hereditary
- Alport syndrome

## 4. INDIVIDUAL GLOMERULAR DISEASES
### 1) Acute / Post-streptococcal GN
- Age: Children (6–10 yrs), M > F
- Follows Group A β-haemolytic Streptococcus (throat/skin)
- Gross: Enlarged, pale cortex → flea-bitten (petechiae)
- LM: Diffuse hypercellularity (endothelial + mesangial), neutrophil infiltration
- EM: Subepithelial humps (immune deposits)
- IF: Granular IgG + C3
- Clinical: Nephritic syndrome; self-limiting; good prognosis

### 2) Rapidly Progressive GN (RPGN)
- Most common cause of nephritic syndrome
- 3 Types
  - Type I: Linear IF (IgG + C3) → Goodpasture syndrome
  - Type II: Granular IF (IgG + C3) → Subepithelial deposits
  - Type III: No deposits → Pauci-immune
- LM: Crescents (parietal epithelial cell proliferation + monocytes)
- Clinical: Nephritic syndrome, rapid deterioration

### 3) Minimal Change Disease (MCD)
- Aliases: Foot process disease, Nil deposit disease
- Age: Children <16 yrs; most common nephrotic syndrome in children (80%)
- Pathogenesis: Cell-mediated
- Gross: Normal size & shape
- LM: No apparent abnormality; slight ↑ mesangial matrix
- EM: Diffuse effacement/fusion of foot processes; no deposits
- IF: No deposits
- Clinical: Massive, highly selective proteinuria; responds to steroids

### 4) Membranous GN
- Antigen: gp330 (podocyte component) → in situ fixed Ag deposition
- Gross: Enlarged, pale, smooth kidneys
- LM: Diffuse thickening + duplication of GBM; no cellular proliferation
- EM: Subepithelial deposits → spikes
- IF: IgG + C3
- Clinical: Nephrotic syndrome in adults

### 5) Membranoproliferative GN (MPGN)
- Also: Mesangiocapillary GN
- Type I (classic, 70%): Subendothelial deposits
- Type II (dense deposit disease, 30%): Along GBM; alternate pathway
- Type III (rare): Features of Type I + membranous nephropathy
- LM: Lobular appearance; tram-track (double contour) GBM
- Clinical: Nephrotic > nephritic

### 6) Focal Segmental Glomerulosclerosis (FSGS)
- Most common nephrotic syndrome in adults
- Focal (some glomeruli) + segmental (part of glomerulus)
- LM: Sclerosis + hyalinosis in segments
- EM: Foot process fusion
- Clinical: Heavy proteinuria; poor steroid response

### 7) IgA Nephropathy (Berger's disease)
- Most common primary GN worldwide
- Pathogenesis: Mesangial IgA deposits (often after mucosal infection)
- IF: IgA + C3 in mesangium
- Clinical: Recurrent haematuria (after URTI); mild proteinuria

### 8) Chronic GN
- End-stage of multiple GN types
- Gross: Small, shrunken, granular kidneys (secondary contracted kidney)
- LM: Global glomerulosclerosis, tubular atrophy, interstitial fibrosis

## 5. DIABETIC NEPHROPATHY
### Glomerular Lesions
#### a) Diffuse glomerulosclerosis
- Thickening of GBM (earliest change)
- ↑ Mesangial matrix + mild mesangial proliferation
- Capsular drop (eosinophilic hyaline, parietal Bowman's capsule)
- Fibrin cap (eosinophilic material on peripheral capillary wall)
#### b) Nodular glomerulosclerosis
- Kimmelstiel-Wilson (KW) lesions → PATHOGNOMONIC
- Ovoid/spherical, laminated, hyaline, acellular, PAS-positive
- Located within glomerular lobule
### Vascular Lesions
- Hyaline arteriolosclerosis
### Tubular Lesions
- Armanni-Ebstein lesions → glycogen vacuoles in PCT epithelial cells

## 6. PYELONEPHRITIS
### Definition
- Inflammatory process affecting renal interstitial tissue & tubules
### Types
#### 1) Acute Pyelonephritis
- Acute suppurative inflammation by pyogenic bacteria
- Organisms: E. coli (90%) > Enterobacter > Klebsiella > Pseudomonas > Proteus
- Post-transplant: Polyomavirus BK (BKV)
- Routes
  - Ascending (most common): Faecal contamination → urethra → upward
    - More common in females (shorter urethra, no prostatic secretions, honeymoon pyelitis)
  - Haematogenous: Blood-borne spread
- Gross: Enlarged, swollen kidney; yellow abscesses; cortical surface abscesses
- Microscopy: Neutrophilic infiltration of interstitium & tubules; abscess formation
- Complications
  - Perinephric abscess
  - Pyonephrosis
  - Papillary necrosis (especially in diabetes)
  - Septicaemia
#### 2) Chronic Pyelonephritis
- Repeated or persistent bacterial infections
- Causes: Vesicoureteral reflux (most common), obstruction
- Gross: Irregular scarring, coarse cortical scars; blunted calyces; asymmetric involvement
- Microscopy
  - Thyroidisation of tubules (dilated tubules with colloid casts → resemble thyroid follicles)
  - Periglomerular fibrosis
  - Interstitial chronic inflammation
- Clinical: Hypertension, CKD, renal failure
### Xanthogranulomatous Pyelonephritis (XPN)
- Rare variant
- Proteus mirabilis most common organism
- Gross: Yellow mass replacing renal parenchyma
- Microscopy: Lipid-laden macrophages (xanthoma cells/foam cells)

## 7. UROLITHIASIS (RENAL CALCULI)
### Types & Features
| Type | Incidence | Aetiology | Notes |
|---|---|---|---|
| Calcium stones | 75% | Hypercalciuria ± hypercalcaemia | Alkaline pH, oxaluria |
| Struvite (mixed) | 15% | Urease-splitting organisms (Proteus) | Alkaline urine |
| Uric acid stones | 6% | Hyperuricosuria (gout) | Acidic urine (pH <6) |
| Cystine stones | 2% | Genetic defect in cystine transport | Yellowish, waxy, rounded |
### Cystine Stones
- Excessive cystine excretion → least soluble amino acid → crystals

## 8. HYDRONEPHROSIS
### Definition
- Dilatation of renal pelvis & calyces due to partial/intermittent obstruction
- Hydroureter always accompanies
- Unilateral or bilateral
### Causes
- Ureteric obstruction (calculi, stricture, tumour)
- Bladder outlet obstruction (BPH, carcinoma)
- External compression
### Gross
- Enlarged kidneys → extrarenal sac → intrarenal thin cortical rim
- Progressive dilatation → pressure atrophy of parenchyma
- Lobulated appearance
### Stages
- Early: Dilatation of renal pelvis
- Late: Thin rim of cortex stretched over dilated calyces
### Microscopy
- Fibrous scarring of wall, chronic inflammatory infiltrate
- Glomerulosclerosis
- Tubular atrophy
- Interstitial fibrosis

## 9. NEPHROSCLEROSIS (Renal Changes in Hypertension)
### Hypertension Classification
- Normal: <120/<80 mmHg
- Prehypertension: 120–139/80–89
- Benign HTN: 140–159/90–99
- Malignant HTN: >180/>120
### 1) Benign Nephrosclerosis
- Associated with benign essential hypertension
- Gross: Small, shrunken kidneys; fine granular surface (granular contracted kidney); capsule strips with difficulty
- Microscopy
  - Hyaline arteriolosclerosis (most characteristic) → pink, homogeneous thickening of arteriolar wall
  - Hyperplastic arteriolosclerosis (in malignant phase)
  - Ischaemic glomerular changes
  - Tubular atrophy
  - Interstitial fibrosis
### 2) Malignant Nephrosclerosis
- Associated with malignant hypertension (diastolic >120 mmHg)
- Gross: Petechial haemorrhages on surface → flea-bitten appearance
- Microscopy
  - Fibrinoid necrosis of arterioles
  - Hyperplastic arteriolosclerosis → onion-skin appearance
  - Necrotising glomerulitis
  - Thrombotic microangiopathy
- Clinical: Renal failure, papilloedema, hypertensive encephalopathy

## 10. RENAL TUMOURS
### A) Benign Tumours
#### Renal Papillary Adenoma
- Most common benign tumour
- Small, cortical, encapsulated
- Papillary pattern
#### Angiomyolipoma (AML)
- Hamartoma → vascular channels + smooth muscle + fat
- Associated with tuberous sclerosis
#### Oncocytoma
- Large eosinophilic cells; mahogany brown cut surface; central stellate scar

### B) Renal Cell Carcinoma (RCC)
- Also: Hypernephroma, Grawitz tumour, clear cell carcinoma
- Most common malignant renal tumour in adults
- 6th most common cancer in men
- Age: >50 yrs; M:F = 2:1
- Risk factors: Smoking (most important), obesity, hypertension, von Hippel-Lindau disease, cadmium exposure
#### Origin
- Arises from renal tubular epithelium
#### Gross
- Usually upper pole
- Large, golden yellow, circumscribed
- May extend into renal vein (cannon-ball thrombus) → IVC → right atrium
#### Classification
| Type | Incidence | Origin | Genetics |
|---|---|---|---|
| Clear cell | 70–80% | PCT | VHL gene (Ch 3) |
| Papillary | 2nd most common | DCT | Trisomy 7,16,17; loss of Y |
| Chromophobe | 3rd | Cortical collecting ducts | Hypodiploidy/monosomy (1,2,6,10,13,17,21,Y) |
| Collecting duct (Bellini) | Least common | Medullary collecting duct | Fibrotic stroma |
#### Microscopy
- Clear cell: Clear cytoplasm (glycogen removed in processing)
- Papillary: Papillary pattern on fibrovascular stalks; psammoma bodies
- Chromophobe: Prominent cell membranes, pale eosinophilic cytoplasm, perinuclear halo
#### Clinical Features (Classic Triad)
- Gross haematuria (most common)
- Flank pain
- Palpable abdominal mass
#### Spread
- Haematogenous → lungs (most common), brain, bone
- Local → liver, perirenal lymph nodes
#### Prognosis
- 5-year survival: 70%
- Poor prognosis: metastases, renal vein invasion, higher nuclear grade
#### Paraneoplastic Syndromes
- Polycythaemia (↑ EPO)
- Hypercalcaemia (PTHrP)
- Hypertension (↑ renin)
- Cushing's syndrome (↑ ACTH/cortisol)
- Feminisation/masculinisation

### C) Wilms' Tumour (Nephroblastoma)
- Most common abdominal malignant tumour in young children
- Age: 1–6 years; M = F
- Mutation: WT1 gene (chromosome 11p13)
- Arises from primitive renal epithelial & mesenchymal components
- Gross: Large, solitary, unilateral; variegated cut surface
- Microscopy (Triphasic)
  - Blastemal cells (small, blue, primitive)
  - Stromal cells (mesenchymal)
  - Epithelial cells (tubular/glomeruloid structures)
- Associated syndromes: WAGR (Wilms', Aniridia, GU anomalies, mental Retardation), Beckwith-Wiedemann, Denys-Drash
- Clinical: Abdominal mass (most common presentation); haematuria; hypertension
- Prognosis: Good (>90% cure with surgery + chemo ± radiotherapy)

### D) Transitional Cell Carcinoma (TCC) of Renal Pelvis
- Arises from urothelium of renal pelvis
- Risk factors: Smoking, analgesic abuse (phenacetin), cyclophosphamide
- Clinical: Painless haematuria
- Often multicentric; may extend to ureter/bladder

## 11. URINARY BLADDER TUMOURS
### Types
#### Transitional Cell Carcinoma (TCC) – Most Common
- Grade I (papillary, non-invasive) → Grade III (high-grade, invasive)
- Risk factors: Smoking, aniline dyes (β-naphthylamine), rubber/chemical workers, schistosomiasis
- Haematuria (painless) → most common presentation
#### Squamous Cell Carcinoma
- Associated with chronic irritation (stones, catheters, schistosomiasis)
#### Adenocarcinoma
- Rare; associated with urachal remnant or bladder exstrophy
Your mind map is ready!

RENAL PATHO

MINDMAP File · MINDMAP


Here's what's covered across the 11 major branches:
#BranchKey Contents
1Normal Anatomy & HistologyNephron parts, glomerulus, 3-layer filtration barrier
2Nephritic vs Nephrotic SyndromeFeatures, examples, protein-loss consequences
3Glomerulonephritis - Pathogenesis3 mechanisms (immune complex, cell-mediated, complement), deposit locations, classification
4Individual GN DiseasesPost-strep GN, RPGN (3 types), MCD, Membranous, MPGN, FSGS, IgA nephropathy, Chronic GN - each with LM/EM/IF/clinical
5Diabetic NephropathyDiffuse (KW lesions), nodular, vascular, Armanni-Ebstein tubular lesions
6PyelonephritisAcute (ascending vs haematogenous), Chronic (thyroidisation), XPN
7Urolithiasis4 stone types with incidence, aetiology, pathogenesis
8HydronephrosisCauses, gross stages, microscopy
9NephrosclerosisBenign (hyaline arteriolosclerosis) vs Malignant (fibrinoid necrosis, onion-skin)
10Renal TumoursBenign (AML, oncocytoma), RCC (4 subtypes, triad, genetics), Wilms' tumour (triphasic, WT1), TCC
11Bladder TumoursTCC, SCC, adenocarcinoma
How to open the .mindmap file: Import it into Markmap (paste the content) or any Markdown-based mind map viewer (Obsidian with the Markmap plugin, XMind import, or VS Code Markmap extension) for a fully interactive visual tree.

make an mindmap image

Running Command

python3 << 'EOF' import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import matplotlib.patches as mpatches from matplotlib.patches import FancyBboxPatch import numpy as np # ── Mind map data ───────────────────────────────────────────────────────────── # (branch_label, color, [sub-topics]) branches = [ ("1. Normal Anatomy\n& Histology", "#4A90D9", ["Bean-shaped paired organs\nFibrous capsule; Hilum", "Nephron (×1M):\nGlomerulus→PCT→Loop of Henle\n→DCT→Collecting duct", "Glomerulus: capillary tuft\nafferent→efferent arteriole", "Filtration Barrier:\nFenestrated endothelium\nGBM (3 layers)\nPodocytes / slit pores"]), ("2. Nephritic vs\nNephrotic Syndrome", "#E74C3C", ["NEPHRITIC: haematuria (RBC casts),\nmild proteinuria, HTN, oliguria,\nNa/H₂O retention", "NEPHROTIC: heavy proteinuria\n(>3g/24h), hypoalbuminaemia,\noedema, hyperlipidaemia,\nlipiduria, hypercoagulability", "Protein-loss consequences:\n↓IgG→infection; ↓ATIII→thrombosis\n↓Transferrin→anaemia\n↓Cholecalciferol→hypocalcaemia", "Azotaemia / Uraemia"]), ("3. GN Pathogenesis\n& Classification", "#8E44AD", ["Immune-complex:\nIn situ (fixed Ag – Goodpasture)\nIn situ (planted Ag)\nCirculating IC (SLE, Hep B)", "Cell-mediated (DTH):\nCD4/CD8 → cytokines\nPauci-immune", "Alt. Complement pathway:\nC3 + properdin, no Ig", "Deposit sites (EM):\nSubepithelial, Epimembranous\nSubendothelial, Mesangial", "Primary GN / Secondary / Hereditary"]), ("4. Individual\nGlomerular Diseases", "#27AE60", ["Post-strep GN: subepithelial humps\ngranular IgG+C3; self-limiting", "RPGN: crescents; 3 types\n(I=linear, II=granular, III=pauci)", "MCD: foot process fusion\nno deposits; steroid-responsive\nMC nephrotic in children", "Membranous GN: spikes (EM)\nIgG+C3; nephrotic in adults", "MPGN: tram-track; Type I/II/III", "FSGS: MC nephrotic in adults\nsclerosis + hyalinosis", "IgA nephropathy: MC primary GN\nmesangial IgA+C3; recurrent haematuria", "Chronic GN: shrunken granular kidneys"]), ("5. Diabetic\nNephropathy", "#E67E22", ["Diffuse glomerulosclerosis:\nGBM thickening (earliest)\nCapsular drop / Fibrin cap", "Nodular glomerulosclerosis:\nKimmelstiel-Wilson lesions\n(PATHOGNOMONIC) PAS+ ovoid nodules", "Vascular: hyaline arteriolosclerosis", "Tubular: Armanni-Ebstein lesions\n(glycogen vacuoles in PCT)"]), ("6. Pyelonephritis", "#16A085", ["Acute: E. coli 90%\nAscending (MC) vs haematogenous\nMore common in females\nHoneymoon pyelitis", "Acute gross: enlarged kidney\nyellow abscesses on cortex", "Acute complications: perinephric abscess\npyonephrosis, papillary necrosis\nsepticaemia", "Chronic: VUR or obstruction\nThyroidisation of tubules\nIrregular scarring, blunted calyces", "XPN: Proteus; foam cells\n(lipid-laden macrophages)"]), ("7. Urolithiasis", "#2980B9", ["Calcium stones 75%:\nhypercalciuria; alkaline pH", "Struvite (mixed) 15%:\nProteus; urease; alkaline urine", "Uric acid 6%:\ngout; acidic urine pH<6", "Cystine 2%:\ngenetic; yellowish waxy rounded"]), ("8. Hydronephrosis", "#C0392B", ["Dilatation of pelvis & calyces\npartial/intermittent obstruction\nHydroureternalways accompanies", "Causes: calculi, stricture, BPH\ntumour, external compression", "Gross: sac → thin cortical rim\nlobulated appearance", "Microscopy: fibrosis, glomerulosclerosis\ntubular atrophy"]), ("9. Nephrosclerosis\n(HTN)", "#7F8C8D", ["Benign: hyaline arteriolosclerosis\nSmall granular contracted kidneys\nIschaemic glomerular changes", "Malignant: fibrinoid necrosis\nOnion-skin (hyperplastic)\nFlea-bitten surface\nNecrotising glomerulitis"]), ("10. Renal Tumours", "#D35400", ["Benign: AML (tuberous sclerosis)\nOncocytoma (mahogany, stellate scar)\nPapillary adenoma (MC benign)", "RCC: Hypernephroma\nM>F; >50 yrs; smoking RF\nTriad: haematuria+flank pain+mass", "RCC types: Clear cell 70% (PCT/VHL)\nPapillary 2nd (DCT/trisomy 7,16,17)\nChromophobe 3rd; Bellini duct (rare)", "RCC spread: lungs>brain>bone\nRenal vein invasion → IVC\n5-yr survival 70%", "Wilms' (Nephroblastoma):\nWT1 gene chr 11p13\n1-6 yrs; Triphasic (blast+stroma+epithelial)\n>90% cure"]), ("11. Bladder Tumours", "#1ABC9C", ["TCC (MC): painless haematuria\nSmoking, aniline dyes\nβ-naphthylamine; rubber workers\nSchistosomiasis", "SCC: chronic irritation\nstones, catheters, schistosomiasis", "Adenocarcinoma (rare):\nurachal remnant / exstrophy"]), ] # ── Canvas ──────────────────────────────────────────────────────────────────── fig, ax = plt.subplots(figsize=(36, 28)) ax.set_xlim(0, 36) ax.set_ylim(0, 28) ax.axis('off') fig.patch.set_facecolor('#0D1117') ax.set_facecolor('#0D1117') # ── Central node ────────────────────────────────────────────────────────────── cx, cy = 18, 14 central_box = FancyBboxPatch((cx-3.2, cy-1.1), 6.4, 2.2, boxstyle="round,pad=0.15", linewidth=3, edgecolor='#F0E68C', facecolor='#1C2833', zorder=5) ax.add_patch(central_box) ax.text(cx, cy+0.35, "KIDNEY &", ha='center', va='center', fontsize=15, fontweight='bold', color='#F0E68C', zorder=6) ax.text(cx, cy-0.35, "URINARY TRACT DISORDERS", ha='center', va='center', fontsize=11, fontweight='bold', color='#F0E68C', zorder=6) # ── Branch positions (angle-based around centre) ────────────────────────────── n = len(branches) angles = np.linspace(90, 90 + 360, n, endpoint=False) # degrees branch_r = 8.5 # distance from centre to branch node leaf_r = 5.5 # additional distance for leaves beyond branch def polar(cx, cy, r, deg): rad = np.radians(deg) return cx + r * np.cos(rad), cy + r * np.sin(rad) for i, (label, color, leaves) in enumerate(branches): ang = angles[i] bx, by = polar(cx, cy, branch_r, ang) # Line: centre → branch ax.plot([cx, bx], [cy, by], color=color, linewidth=2.5, alpha=0.7, zorder=2) # Branch node box bw, bh = 3.6, 1.0 bb = FancyBboxPatch((bx - bw/2, by - bh/2), bw, bh, boxstyle="round,pad=0.1", linewidth=2, edgecolor=color, facecolor='#1C2833', zorder=4) ax.add_patch(bb) ax.text(bx, by, label, ha='center', va='center', fontsize=8.5, fontweight='bold', color=color, zorder=5, multialignment='center') # Leaves nl = len(leaves) leaf_angles = np.linspace(ang - 30, ang + 30, nl) for j, (leaf_text, lang) in enumerate(zip(leaves, leaf_angles)): lx, ly = polar(bx, by, leaf_r * 0.88, lang) # Line: branch → leaf ax.plot([bx, lx], [by, ly], color=color, linewidth=1.2, alpha=0.5, zorder=2) # Leaf box lw, lh = 4.6, len(leaf_text.split('\n')) * 0.38 + 0.3 lb = FancyBboxPatch((lx - lw/2, ly - lh/2), lw, lh, boxstyle="round,pad=0.08", linewidth=1, edgecolor=color, facecolor='#0D1117', alpha=0.95, zorder=3) ax.add_patch(lb) ax.text(lx, ly, leaf_text, ha='center', va='center', fontsize=6.2, color='#ECF0F1', zorder=4, multialignment='center', linespacing=1.3) # ── Title ───────────────────────────────────────────────────────────────────── ax.text(18, 27.4, "RENAL PATHOLOGY — Complete Chapter Mind Map", ha='center', va='center', fontsize=16, fontweight='bold', color='#F0E68C', zorder=6) ax.text(18, 26.85, "Dr. Priyanka Sachdev | Pathology Prof Buster", ha='center', va='center', fontsize=10, color='#BDC3C7', zorder=6) plt.tight_layout(pad=0.5) out = '/home/daytona/workspace/renal_patho_mindmap/RENAL_PATHO_mindmap.png' plt.savefig(out, dpi=180, bbox_inches='tight', facecolor='#0D1117') plt.close() print(f"Saved: {out}") EOF

Your mind map image is ready!

RENAL PATHO mindmap

Image · PNG


The image covers all 11 branches radiating from the central node in a dark-themed radial layout:
BranchColor
1. Normal Anatomy & HistologyBlue
2. Nephritic vs Nephrotic SyndromeRed
3. GN Pathogenesis & ClassificationPurple
4. Individual Glomerular DiseasesGreen
5. Diabetic NephropathyOrange
6. PyelonephritisTeal
7. UrolithiasisSteel Blue
8. HydronephrosisCrimson
9. Nephrosclerosis (HTN)Grey
10. Renal TumoursBurnt Orange
11. Bladder TumoursMint
Each branch has color-coded leaf nodes with key facts, gross/microscopy findings, and clinical pearls. Let me know if you'd like any branch expanded, rearranged, or exported as a PDF!
This is a shared conversation. Sign in to Orris to start your own chat.