A package for creating line graphs with units and labels
Project description
linegraphs
The omglinegraphs package is a Python library for creating customizable line graphs. It provides an easy-to-use API for plotting data and adding labels, units, and increments to the axes. This package is ideal for data visualization and analysis in scientific and engineering applications.
Features
- Customizable line graphs
- Support for multiple data sets
- Automatic determination of axis units
- Adjustable axis increments
- Save graphs to files in various formats
- API for creating and modifying graphs
Installation
You can install the omglinegraphs package using pip:
pip install omglinegraphs
Usage
To create a line graph, first import the LineGraph
class from the omglinegraphs
module:
from linegraphs import LineGraph
graph = LineGraph()
Then, create an instance of the LineGraph
class and call the relevant methods to customize the graph:
graph = LineGraph()
# Add data points
data = [(1, 2), (3, 4), (5, 6)]
graph.plot(data)
# Set title and axis labels
graph.title('My Graph')
graph.x_title('X-axis')
graph.y_title('Y-axis')
# Set axis units and increments
graph.x_unit('s')
graph.y_unit('m')
graph.x_incrementsby(1)
graph.y_incrementsby(0.5)
# Create the graph
graph.create()
# Save the graph to a file
graph.save('mygraph.png')
Contributions
Contributions to the omglinegraphs are welcome! If you find a bug, have a feature request, or want to contribute code, please open an issue or pull request on the GitHub repository.
License
The Graphing Package is licensed under the MIT License.
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
File details
Details for the file omglinegraphs-0.1.0.tar.gz
.
File metadata
- Download URL: omglinegraphs-0.1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af6586c13dd2d6b38408131994aea01a2711250b943478389fb19d250d6c1689 |
|
MD5 | 78e6f60d0a6dbd7dd15fa15afe321aa0 |
|
BLAKE2b-256 | 3959986d083369bea92d02d86eb9a3639dddfe38eac868fefc6268f4347edda5 |
File details
Details for the file omglinegraphs-0.1-py3-none-any.whl
.
File metadata
- Download URL: omglinegraphs-0.1-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7c60cbdb0441d0ab0064ae431ba59bc1e104aa5b29177b168489ae75dc84d67 |
|
MD5 | b6264f5cdcfc5dfea551e9cc0e2de797 |
|
BLAKE2b-256 | 533ce378ae14e9dfd0a585154b6c0b59f94dfd422f3902ee1079f45ed44b19fe |