Hysteresis Loop
Chart overview
Hysteresis loops are the primary characterization tool for magnetic materials, obtained from vibrating sample magnetometry (VSM) or SQUID magnetometry.
Key points
- The loop shape encodes the coercive field, remanent magnetization, saturation magnetization, and energy dissipation per cycle, all of which determine suitability for permanent magnets, data storage media, or soft-core transformers.
- Loop squareness, exchange bias shifts, and minor loop behavior provide deeper insight into magnetic anisotropy, domain wall pinning, and interfacial exchange coupling.
Python Tutorial
How to create a hysteresis loop in Python
Use the full tutorial for implementation details, troubleshooting, and chart variations in matplotlib, seaborn, and plotly.
Complete Guide to Scientific Data VisualizationExample Visualization

Create This Chart Now
Generate publication-ready hysteresis loops with AI in seconds. No coding required – just describe your data and let AI do the work.
View example prompt
"Create a publication-quality magnetic hysteresis loop from my VSM data. Plot magnetization M (emu/g or A/m) on the y-axis versus applied field H (Oe or kA/m) on the x-axis. Draw the complete closed loop with arrows indicating the field sweep direction. Annotate key parameters: coercive field Hc, remanent magnetization Mr, and saturation magnetization Ms with dashed guide lines. Add horizontal and vertical reference lines at zero. Use axis labels with units, a legend, and a descriptive title. Use a white background with professional styling."
How to create this chart in 30 seconds
Upload Data
Drag & drop your Excel or CSV file. Plotivy securely processes it in your browser.
AI Generation
Our AI analyzes your data and generates the Hysteresis Loop code automatically.
Customize & Export
Tweak the design with natural language, then export as high-res PNG, SVG or PDF.
Newsletter
Get one weekly tip for better hysteresis loops
Join researchers receiving concise Python plotting techniques to improve chart clarity and reduce revision cycles.
Python Code Example
Console Output
Figure saved: plotivy-hysteresis-loop.png
Common Use Cases
- 1Characterizing permanent magnet materials (NdFeB, SmCo) for energy product BHmax
- 2Evaluating exchange bias in ferromagnet/antiferromagnet thin film bilayers
- 3Screening soft magnetic materials for transformer core loss minimization
- 4Monitoring magnetic annealing effects on coercivity in nanocomposite films
Pro Tips
Plot both forward and backward field sweeps on the same axes to form a closed loop
Add directional arrows on the loop to indicate the magnetization sweep direction
Annotate Hc, Mr, and Ms with horizontal and vertical dashed reference lines
For minor loops, overlay multiple loops with different maximum fields in distinct colors
Long-tail keyword opportunities
High-intent chart variations
Library comparison for this chart
matplotlib
Best when you need full control over axis formatting, annotation placement, and journal-specific styling for hysteresis-loop.
numpy
Useful in specialized workflows that complement core Python plotting libraries for hysteresis-loop analysis tasks.
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.