Menu

Time Series
Static
21 Python scripts generated for lfp trace this week

LFP Trace

Chart overview

An LFP trace plots the continuous sub-threshold voltage signal recorded from a microelectrode as a function of time, reflecting the summed synaptic activity of nearby neuronal populations.

Key points

  • Neuroscientists examine LFP traces to identify oscillatory rhythms such as theta, gamma, and slow-wave activity.
  • These signals provide insight into network-level coordination and brain states that spike data alone cannot reveal.

Example Visualization

Local field potential trace showing a continuous voltage waveform over time with oscillatory activity and clearly labelled amplitude and time axes

Create This Chart Now

Generate publication-ready lfp traces with AI in seconds. No coding required โ€“ just describe your data and let AI do the work.

View example prompt
Example AI Prompt

"Create a multi-channel LFP trace plot from my electrophysiology data. Stack each channel vertically with a fixed offset, colour-code channels, mark stimulus onset with a vertical dashed line, and apply publication-quality journal styling with labelled amplitude scale bar."

How to create this chart in 30 seconds

1

Upload Data

Drag & drop your Excel or CSV file. Plotivy securely processes it in your browser.

2

AI Generation

Our AI analyzes your data and generates the LFP Trace code automatically.

3

Customize & Export

Tweak the design with natural language, then export as high-res PNG, SVG or PDF.

Python Code Example

example.py
import numpy as np
import matplotlib.pyplot as plt

t = np.linspace(0, 2, 2000)
signal = np.sin(2 * np.pi * 8 * t) + 0.5 * np.sin(2 * np.pi * 40 * t) + np.random.normal(0, 0.5, len(t))

plt.figure(figsize=(12, 4))
plt.plot(t, signal, color='#1e293b', linewidth=1)
plt.title('Local Field Potential (LFP) Trace', fontsize=14, fontweight='bold', pad=15)
plt.xlabel('Time (s)', fontsize=12)
plt.ylabel('Voltage ($\mu V$)', fontsize=12)
plt.xlim(0, 2)
plt.tight_layout()
plt.savefig('plotivy-lfp-trace.png', dpi=150)
print("LFP trace generated successfully.")

Opens the Analyze page with this code pre-loaded and ready to execute

Console Output

Output
LFP trace generated successfully.

Common Use Cases

  • 1Identifying theta and gamma oscillations during spatial navigation tasks
  • 2Detecting sharp-wave ripples in hippocampal sleep recordings
  • 3Comparing oscillatory power before and after drug administration
  • 4Monitoring depth profiles of slow-wave activity across cortical layers

Pro Tips

Apply a bandpass filter appropriate to the frequency band of interest before plotting

Stack multiple channels with a consistent vertical offset rather than overlapping them

Use a physical scale bar (e.g. 100 ยตV / 100 ms) instead of axis tick marks for publication

Mark experimental events with vertical lines or shaded rectangles aligned to the time axis

Free Cheat Sheet

Scientific Chart Selection Cheat Sheet

Not sure whether to use a Violin Plot, Box Plot, or Ridge Plot? Download our single-page reference mapping the most-used scientific chart types, exactly when to use them, and the core Matplotlib/Seaborn functions.

Comparison Charts
Distribution Charts
Time Series Data
Common Mistakes
No spam. Unsubscribe anytime.