Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

omglinegraphs-0.1.0.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

omglinegraphs-0.1-py3-none-any.whl (2.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page