Matplotlib projection class for frequency-domain vibration analysis
Project description
This project provides a custom projection for Matplotlib to create double-logarithmic plots of velocity vs. frequency, with additional-tilted axes for acceleration and displacement.
Features
Log-log plot for velocity vs. frequency.
Additional axes for acceleration and displacement.
Customizable grid lines.
Installation
To install this package, you can run:
pip install .
from the root of this repository.
Usage
Here is a simple example of how to use this projection:
import matplotlib.pyplot as plt
import numpy as np
import vibro_nomogram
def main():
fig, ax = plt.subplots(1, 1, subplot_kw=dict(projection='frequency_space'))
# plot some data
f = np.logspace(-1, 3, 100)
v = 100 * np.exp(-f/1000)
ax.plot(f, v, 'k-')
ax.grid(True, which='both')
ax.set_xlabel('Frequency (Hz)')
ax.set_ylabel('Velocity (mm/s)')
ax.set_xlim(0.1, 1000)
ax.set_ylim(1e-2, 1e3)
plt.show()
if __name__ == '__main__':
main()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vibro_nomogram-0.1.0.tar.gz.
File metadata
- Download URL: vibro_nomogram-0.1.0.tar.gz
- Upload date:
- Size: 304.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
739aec026491a7d8fd979048225b0a70edd22ea580c73a6d2baaa970d5b1d33f
|
|
| MD5 |
63c0c2dfb527198728ce52174eddc7ad
|
|
| BLAKE2b-256 |
2a08e7eee8f5952bf44e3eddae1943b9e68d2cc667360ae98a1cf447d294fdef
|
File details
Details for the file vibro_nomogram-0.1.0-py3-none-any.whl.
File metadata
- Download URL: vibro_nomogram-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a62c5670d014abc28af52c1ccad4380179325f7fce4af1bf95da0469c33b99e
|
|
| MD5 |
bd9d3a80599f623b818dd956927f6488
|
|
| BLAKE2b-256 |
5c04d97683d1c3b58c8fb94f110c26cbe8831cc4543781c8158845a83ce682fd
|