Skip to content

A Python script for automating the plotting of .xvg files from GROMACS simulations, with dynamic labeling, time unit detection, and colorful visualization. This script reads, plots, and saves each .xvg file in the same directory, making data analysis more efficient.

Notifications You must be signed in to change notification settings

AglowRaph/Gromacs-xvg-plot-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

GROMACS .xvg Plotting Script

This is Python script to automate the plotting of .xvg files generated by GROMACS, with proper labeling, dynamic time unit detection, and colorful plots. This script reads data from .xvg files, assigns meaningful labels based on file contents, and saves the plots as .png images.

Features

  • Automatic Axis Labeling: Labels for y-axis based on common GROMACS output keywords (e.g., Potential, RMSD, Density).
  • Time Unit Detection: Detects and uses the appropriate time unit (e.g., ps, ns, fs) from each .xvg file header.
  • Colorful Plots: Randomized colors for each plot line to distinguish different files.
  • Batch Processing: Processes all .xvg files in the folder, creating individual plot images for each file.

Requirements

  • Python 3
  • numpy
  • matplotlib

Install the dependencies using:

pip install numpy matplotlib

About

A Python script for automating the plotting of .xvg files from GROMACS simulations, with dynamic labeling, time unit detection, and colorful visualization. This script reads, plots, and saves each .xvg file in the same directory, making data analysis more efficient.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages