Skip to main content

A Python Library for Energy Profile Plotting

Project description

=======
catplot
=======

.. image:: https://travis-ci.org/PytLab/catplot.svg?branch=master
:target: https://travis-ci.org/PytLab/catplot
:alt: Build Status

.. image:: https://img.shields.io/badge/python-3.5-green.svg
:target: https://www.python.org/downloads/release/python-351/
:alt: platform

.. image:: https://img.shields.io/badge/python-2.7-green.svg
:target: https://www.python.org/downloads/release/python-2710
:alt: platform

.. image:: https://img.shields.io/badge/pypi-v1.1.0-blue.svg
:target: https://pypi.python.org/pypi/catplot/
:alt: versions

.. image:: https://img.shields.io/badge/license-MIT-blue.svg
:target: https://raw.githubusercontent.com/PytLab/catplot/master/LICENSE


Introduction
------------
CatPlot is a Python library for plotting energy profile using interpolation algorithm.

Installation
------------
1. Via pip (recommend)::

pip install catplot

2. From source::

python setup.py install

Energy Profile Plotting
-----------------------

See `examples <https://github.com/PytLab/catplot/tree/master/examples>`_ for more details(Continuously updated).

Plot an energy profile for an elementary reaction.

.. code-block:: python

>>> from catplot.ep_components.ep_canvas import EPCanvas
>>> from catplot.ep_components.ep_lines import ElementaryLine

# Create an energy profile canvas.
>>> canvas = EPCanvas()

# Create an energy profile line.
>>> line = ElementaryLine([0.0, 1.2, 0.8])

# Add line to canvas.
>>> canvas.add_line(line)

# Plot it.
>>> canvas.draw()
>>> canvas.figure.show()

Result:

.. image:: https://github.com/PytLab/catplot/blob/master/pic/energy_profile.png


2D Grid Plotting
----------------

You can use CatPlot to plot abstract lattice grid, see `examples <https://github.com/PytLab/catplot/tree/master/examples/grid_2d_examples/expand_supercell.ipynb>`_ for details.

Result:

.. image:: https://github.com/PytLab/catplot/blob/master/pic/grid_2d.png


Important update log
--------------------

.. csv-table::
:header: "Date", "Version", "Description"

"2017-04-10", "1.1.0", "Add 2D grid plotting"
"2017-04-10", "1.0.0", "A brand new CatPlot"
"2015-08-03", "0.0.1", "Intial Version"

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

catplot-1.1.0.zip (677.9 kB view details)

Uploaded Source

Built Distribution

catplot-1.1.0-py2.py3-none-any.whl (22.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file catplot-1.1.0.zip.

File metadata

  • Download URL: catplot-1.1.0.zip
  • Upload date:
  • Size: 677.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for catplot-1.1.0.zip
Algorithm Hash digest
SHA256 20dbcff0572dfe1dc964c561b48dc8576d33a21bcd27f0a29f31b36b4883ecb4
MD5 0e9d6f399ae784f5b9fd72e7b542ff24
BLAKE2b-256 9197759af8591a5b708f6bf8af43e21028bf647a282ce6de3d88a405d5023366

See more details on using hashes here.

File details

Details for the file catplot-1.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for catplot-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f71b8ffc4d2edb4638618d2812df7add2c78427a7b31dd421d31522c158f80ca
MD5 a789e75c89e3873391658c8c36d9bcb2
BLAKE2b-256 c4bd93e24816fdb810d13b3db4d4b312a2294c6f87a79ca07a8250fb76f0b711

See more details on using hashes here.

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