A Python Library for Energy Profile and 2D/3D Lattice Grid 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.2.3-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 Energy Profile and Abstract Grid(2D/3D) plotting.
Installation
------------
1. Via pip (recommend)::
pip install catplot
2. From source::
python setup.py install
Energy Profile Plotting
-----------------------
**CatPlot** can plot energy profile using interpolation algorithm.
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 `example <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
3D Grid Plotting
----------------
Now **CatPlot** can plot abstract 3D lattice grid, see `example <https://github.com/PytLab/catplot/tree/master/examples/grid_3d_examples/expand_3d_supercell.ipynb>`_ for plot details.
Result:
.. image:: https://github.com/PytLab/catplot/blob/master/pic/grid_3d.png
Important update log
--------------------
.. csv-table::
:header: "Date", "Version", "Description"
"2017-04-23", "1.2.0", "Add 3D grid plotting"
"2017-04-17", "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"
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.2.3-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 Energy Profile and Abstract Grid(2D/3D) plotting.
Installation
------------
1. Via pip (recommend)::
pip install catplot
2. From source::
python setup.py install
Energy Profile Plotting
-----------------------
**CatPlot** can plot energy profile using interpolation algorithm.
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 `example <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
3D Grid Plotting
----------------
Now **CatPlot** can plot abstract 3D lattice grid, see `example <https://github.com/PytLab/catplot/tree/master/examples/grid_3d_examples/expand_3d_supercell.ipynb>`_ for plot details.
Result:
.. image:: https://github.com/PytLab/catplot/blob/master/pic/grid_3d.png
Important update log
--------------------
.. csv-table::
:header: "Date", "Version", "Description"
"2017-04-23", "1.2.0", "Add 3D grid plotting"
"2017-04-17", "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
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
catplot-1.2.3.zip
(3.0 MB
view details)
Built Distribution
File details
Details for the file catplot-1.2.3.zip
.
File metadata
- Download URL: catplot-1.2.3.zip
- Upload date:
- Size: 3.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d72aaa153ddc22952fbc8febbf37d77e7b781508de72aff57d17b36bf24d72b |
|
MD5 | fadd3c01297b1f9df7f65ae14e51db2e |
|
BLAKE2b-256 | 2f04cd31b300846f99b8a6247b6226d28966a54f0481a1ad0ba411b1ccf00489 |
File details
Details for the file catplot-1.2.3-py2.py3-none-any.whl
.
File metadata
- Download URL: catplot-1.2.3-py2.py3-none-any.whl
- Upload date:
- Size: 25.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5405c91f5fccb933acd2a4afa9d4c8823bb5540c570f4ca8af7c4157a504530a |
|
MD5 | e62f7fa5ae8545d279d1cefffbe43170 |
|
BLAKE2b-256 | b15b46b7fd5eee18cc4ea686ed00e0b80f8b5622f835ed623feec1e290a5510f |