Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aglowraph/gromacs-xvg-plot-script

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.
https://github.com/aglowraph/gromacs-xvg-plot-script

automation computational-chemistry data-visualization gromacs matplotlib molecular-dynamics numpy python scientific-computing xvg-plotting

Last synced: 25 days ago
JSON representation

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.

Awesome Lists containing this project

README

        

# 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:
```bash
pip install numpy matplotlib