Skip to content

Commit 5528793

Browse files
-
1 parent e843a26 commit 5528793

4 files changed

Lines changed: 166 additions & 348 deletions

File tree

raven/coinc.ipynb

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,27 @@
255255
"tl, th = -1, 10\n"
256256
]
257257
},
258+
{
259+
"cell_type": "markdown",
260+
"id": "bc084e2c",
261+
"metadata": {},
262+
"source": [
263+
":::{note}\n",
264+
"The default temporal windows used by RAVEN are these:\n",
265+
"| Event Type | Time window (s) | | Notice Type Considered (see full list) |\n",
266+
"| :--- | :--- | :--- | :--- |\n",
267+
"| | CBC | Burst | |\n",
268+
"| GRB (Fermi, Swift, INTEGRAL, AGILE) | [-1,5] | [-60,600] | FERMI_GBM_ALERT <br> FERMI_GBM_FIN_POS <br> FERMI_GBM_FLT_POS <br> FERMI_GBM_GND_POS <br> SWIFT_BAT_GRB_ALERT <br> SWIFT_BAT_GRB_LC <br> INTEGRAL_WAKEUP <br> INTEGRAL_REFINED <br> INTEGRAL_OFFLINE <br> AGILE_MCAL_ALERT |\n",
269+
"| SubGRB (Fermi) | [-1,11] | [-1,11] | FERMI_GBM_SUBTHRESH |\n",
270+
"| SubGRBTargeted (Fermi) | [-1,11] | [-1,11] | via Kafka alert |\n",
271+
"| SubGRBTargeted (Swift) | [-10,20] | [-10,20] | via Kafka alert |\n",
272+
"| Low-energy Neutrinos (SNEWS) | [-10,10] | [-10,10] | SNEWS |\n",
273+
"\n",
274+
"https://emfollow.docs.ligo.org/userguide/analysis/searches.html#coincident-with-external-trigger-search\n",
275+
"\n",
276+
":::"
277+
]
278+
},
258279
{
259280
"cell_type": "markdown",
260281
"id": "e1fbd630",

raven/offline.ipynb

Lines changed: 16 additions & 9 deletions
Large diffs are not rendered by default.

raven/plot_config.py

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
"""
2+
🎨 Matplotlib Style Configuration (Light & Dark Mode Compatible)
3+
4+
This module provides universal matplotlib settings that work in both light and dark themes.
5+
Import with: from plot_config import setup_matplotlib_style
6+
Then call: setup_matplotlib_style()
7+
8+
Features:
9+
- High-quality output (500 DPI display, 300 DPI saved)
10+
- Transparent backgrounds for theme adaptation
11+
- Dark gray text that's readable on both backgrounds
12+
- Computer Modern math font
13+
"""
14+
15+
import matplotlib
16+
import matplotlib.pyplot as plt
17+
18+
19+
def setup_matplotlib_style():
20+
"""
21+
Configure matplotlib for high-quality, theme-agnostic plots.
22+
23+
This function sets up:
24+
- High-quality output (500 DPI display, 300 DPI save)
25+
- Transparent backgrounds
26+
- Dark gray text for readability on both light and dark backgrounds
27+
- Computer Modern fonts for professional appearance
28+
"""
29+
30+
# Use mathtext with Computer Modern and avoid external TeX
31+
matplotlib.rcParams['text.usetex'] = False
32+
matplotlib.rcParams['mathtext.fontset'] = 'cm'
33+
matplotlib.rcParams['font.family'] = 'serif'
34+
matplotlib.rcParams['font.serif'] = ['DejaVu Serif', 'Nimbus Roman', 'Times New Roman', 'Times']
35+
36+
# Universal matplotlib settings that work in both light and dark mode
37+
matplotlib.rcParams.update({
38+
# High-quality output
39+
'figure.dpi': 300, # Display DPI (screen)
40+
'savefig.dpi': 300, # Save DPI (high quality for web)
41+
'figure.figsize': (10, 6), # Default figure size in inches (max width)
42+
43+
})
44+
45+
46+
# Apply configuration when module is imported
47+
setup_matplotlib_style()

raven/skymap_far.ipynb

Lines changed: 82 additions & 339 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)