A reusable data-mainupulation and plotting tool
Project description
========
tigereye
========
.. image:: https://img.shields.io/pypi/v/tigereye.svg
:target: https://pypi.python.org/pypi/tigereye
.. image:: https://img.shields.io/travis/grnydawn/tigereye.svg
:target: https://travis-ci.org/grnydawn/tigereye
All-in-one data utility for Python users
* Free software: MIT license
* Documentation: https://grnydawn.github.io/tigereyedocs.
-----------------
What is tigereye?
-----------------
Tigereye is a portable command-line utility for creating plots from various sources of data. It advocates incremental plotting that you can immediately see the effect of changes made in command-line. Until satisfied, you can generate plots through a very quick cycle of "change-run-see". In addition, tigereye can read data of various formats, compactly modify them on command-line, and output modified data as the form of plots as well as texts. Tigereye also supports importing both of plots and data that could be created independently.
------------
Installation
------------
Dependencies
============
Tigereye extensively uses pandas_, numpy_ and matplotlib_ Python packages. Before using tigereye, the three Python packages need to be installed. You can check if the packages are available locally on your computer by running following commands. You should see three numbers similar to "2.2.2" per each commands below. If not, please visit corresponding package site and follow installation direction to install.
.. code-block:: text
$ python -c "import numpy; print(numpy.__version__)"
$ python -c "import pandas; print(pandas.__version__)"
$ python -c "import matplotlib; print(matplotlib.__version__)"
You can install tigereye either using pip Python package manager or using source code from github repositiory. You may get a stable version from using pip and a latest version from using source code.
Installing tigereye using pip
=============================
.. code-block:: text
$ pip install tigereye
$ tigereye --version
Installing tigereye from github repository
==========================================
.. code-block:: text
$ git clone https://github.com/grnydawn/tigereye.git
$ cd tigereye
$ python setup.py install
$ tigereye --version
----------------
Simple examples
----------------
The simplest tigereye plot
==========================
.. code-block:: text
$ tigereye "[1,2,4]"
A title is added.
=================
.. code-block:: text
$ tigereye "[1,2,4]" \
-t "'Sample Plot', fontsize=16"
Labels are added into x and y axes.
===================================
.. code-block:: text
$ tigereye "[1,2,4]" \
-t "'Sample Plot', fontsize=16" \
-x "label@'X', fontsize=12" \
-y "label@'Y', fontsize=12"
Data is generated using numpy.
==============================
.. code-block:: text
$ tigereye \
"numpy.linspace(0, 2*numpy.pi)" \
"numpy.sin(D[0].values)" \
-t "'Sample Plot', fontsize=16" \
-x "label@'X', fontsize=12" \
-y "label@'Y', fontsize=12" \
-p "plot@ D[0].values, D[1].values, label='line1'"
Plot is generated using a template .
====================================
.. code-block:: text
$ tigereye \
"numpy.linspace(0, 2*numpy.pi)" \
"numpy.cos(D[0].values)" \
"--import-task" \
"https://raw.githubusercontent.com/grnydawn/tigereye/master/template/basic/sample1.tgr?name=sinplot@X=D[0].values, Y=D[1].values" \
-t "'My Plot'"
Data is read from a local file.
===============================
.. code-block:: text
$ echo $'1,2,3\n4,5,6\n7,8,9' > simple.csv
$ tigereye simple.csv \
--data-format "csv@delimiter=',', header=None" \
--calc "row0=D[0].values" \
--calc "row1=D[1].values" \
--calc "row2=D[2].values" \
-t "'Sample Plot', fontsize=16" \
-x "label@'X', fontsize=12" \
-y "label@'Y', fontsize=12" \
-p "plot@row0, row2, label='line-1'" \
-p "bar@ row0, row1, width= 0.5, label='bar-1'" \
-g \
-l
Data is read from online.
===============================
.. code-block:: text
$ tigereye https://raw.githubusercontent.com/grnydawn/tigereye/master/data/simple.csv \
--data-format "csv@ delimiter=',', header=None" \
--calc "row0=D[0].values" \
--calc "row1=D[1].values" \
--calc "row2=D[2].values" \
-t "'Sample Plot', fontsize=16" \
-x "label@'X', fontsize=12" \
-y "label@'Y', fontsize=12" \
-p "plot@ row0, row2, label='line-1'" \
-p "bar,@row0, row1, width= 0.5, label='bar-1'" \
-g \
-l
Multi-page PDF file is generated .
==================================
.. code-block:: text
$ tigereye https://raw.githubusercontent.com/grnydawn/tigereye/master/data/simple.csv \
--pdf-bind "'sample.pdf'" \
--data-format "csv@ delimiter=',', header=None" \
-x "label@'X', fontsize=12" \
-y "label@'Y', fontsize=12" \
--calc "npages = D.shape[0]" \
--pages "npages" \
-p "plot@ numpy.arange(npages), D.values[page_num, :], label='line-%d'%page_num" \
-t "'Page-%d'%page_num" \
-g \
-l
---------------
Further reading
---------------
tigereye_ Documentation
--------------
Acknowledgment
--------------
Tigereye extensively uses matplotlib_ and numpy_. The packages have vastly accepted by community with reasons. Tigereye could be considered as a wrapper of several well-known Python packages including matplotlib_ and numpy_.
.. _matplotlib: https://matplotlib.org/
.. _numpy: http://www.numpy.org/
.. _pandas: https://pandas.pydata.org/
.. _tigereye: https://grnydawn.github.io/tigereyedocs
=======
History
=======
0.1.2 (2018-06-24)
------------------
* First release on PyPI.
tigereye
========
.. image:: https://img.shields.io/pypi/v/tigereye.svg
:target: https://pypi.python.org/pypi/tigereye
.. image:: https://img.shields.io/travis/grnydawn/tigereye.svg
:target: https://travis-ci.org/grnydawn/tigereye
All-in-one data utility for Python users
* Free software: MIT license
* Documentation: https://grnydawn.github.io/tigereyedocs.
-----------------
What is tigereye?
-----------------
Tigereye is a portable command-line utility for creating plots from various sources of data. It advocates incremental plotting that you can immediately see the effect of changes made in command-line. Until satisfied, you can generate plots through a very quick cycle of "change-run-see". In addition, tigereye can read data of various formats, compactly modify them on command-line, and output modified data as the form of plots as well as texts. Tigereye also supports importing both of plots and data that could be created independently.
------------
Installation
------------
Dependencies
============
Tigereye extensively uses pandas_, numpy_ and matplotlib_ Python packages. Before using tigereye, the three Python packages need to be installed. You can check if the packages are available locally on your computer by running following commands. You should see three numbers similar to "2.2.2" per each commands below. If not, please visit corresponding package site and follow installation direction to install.
.. code-block:: text
$ python -c "import numpy; print(numpy.__version__)"
$ python -c "import pandas; print(pandas.__version__)"
$ python -c "import matplotlib; print(matplotlib.__version__)"
You can install tigereye either using pip Python package manager or using source code from github repositiory. You may get a stable version from using pip and a latest version from using source code.
Installing tigereye using pip
=============================
.. code-block:: text
$ pip install tigereye
$ tigereye --version
Installing tigereye from github repository
==========================================
.. code-block:: text
$ git clone https://github.com/grnydawn/tigereye.git
$ cd tigereye
$ python setup.py install
$ tigereye --version
----------------
Simple examples
----------------
The simplest tigereye plot
==========================
.. code-block:: text
$ tigereye "[1,2,4]"
A title is added.
=================
.. code-block:: text
$ tigereye "[1,2,4]" \
-t "'Sample Plot', fontsize=16"
Labels are added into x and y axes.
===================================
.. code-block:: text
$ tigereye "[1,2,4]" \
-t "'Sample Plot', fontsize=16" \
-x "label@'X', fontsize=12" \
-y "label@'Y', fontsize=12"
Data is generated using numpy.
==============================
.. code-block:: text
$ tigereye \
"numpy.linspace(0, 2*numpy.pi)" \
"numpy.sin(D[0].values)" \
-t "'Sample Plot', fontsize=16" \
-x "label@'X', fontsize=12" \
-y "label@'Y', fontsize=12" \
-p "plot@ D[0].values, D[1].values, label='line1'"
Plot is generated using a template .
====================================
.. code-block:: text
$ tigereye \
"numpy.linspace(0, 2*numpy.pi)" \
"numpy.cos(D[0].values)" \
"--import-task" \
"https://raw.githubusercontent.com/grnydawn/tigereye/master/template/basic/sample1.tgr?name=sinplot@X=D[0].values, Y=D[1].values" \
-t "'My Plot'"
Data is read from a local file.
===============================
.. code-block:: text
$ echo $'1,2,3\n4,5,6\n7,8,9' > simple.csv
$ tigereye simple.csv \
--data-format "csv@delimiter=',', header=None" \
--calc "row0=D[0].values" \
--calc "row1=D[1].values" \
--calc "row2=D[2].values" \
-t "'Sample Plot', fontsize=16" \
-x "label@'X', fontsize=12" \
-y "label@'Y', fontsize=12" \
-p "plot@row0, row2, label='line-1'" \
-p "bar@ row0, row1, width= 0.5, label='bar-1'" \
-g \
-l
Data is read from online.
===============================
.. code-block:: text
$ tigereye https://raw.githubusercontent.com/grnydawn/tigereye/master/data/simple.csv \
--data-format "csv@ delimiter=',', header=None" \
--calc "row0=D[0].values" \
--calc "row1=D[1].values" \
--calc "row2=D[2].values" \
-t "'Sample Plot', fontsize=16" \
-x "label@'X', fontsize=12" \
-y "label@'Y', fontsize=12" \
-p "plot@ row0, row2, label='line-1'" \
-p "bar,@row0, row1, width= 0.5, label='bar-1'" \
-g \
-l
Multi-page PDF file is generated .
==================================
.. code-block:: text
$ tigereye https://raw.githubusercontent.com/grnydawn/tigereye/master/data/simple.csv \
--pdf-bind "'sample.pdf'" \
--data-format "csv@ delimiter=',', header=None" \
-x "label@'X', fontsize=12" \
-y "label@'Y', fontsize=12" \
--calc "npages = D.shape[0]" \
--pages "npages" \
-p "plot@ numpy.arange(npages), D.values[page_num, :], label='line-%d'%page_num" \
-t "'Page-%d'%page_num" \
-g \
-l
---------------
Further reading
---------------
tigereye_ Documentation
--------------
Acknowledgment
--------------
Tigereye extensively uses matplotlib_ and numpy_. The packages have vastly accepted by community with reasons. Tigereye could be considered as a wrapper of several well-known Python packages including matplotlib_ and numpy_.
.. _matplotlib: https://matplotlib.org/
.. _numpy: http://www.numpy.org/
.. _pandas: https://pandas.pydata.org/
.. _tigereye: https://grnydawn.github.io/tigereyedocs
=======
History
=======
0.1.2 (2018-06-24)
------------------
* First release on PyPI.
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
tigereye-0.2.1.tar.gz
(9.5 kB
view hashes)
Built Distribution
Close
Hashes for tigereye-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8de0ec178816813c239c9d8aee119d33fb750569bc8266d0d49aacd9878c682 |
|
MD5 | d39481854eea00629cccd0ef51f85ac7 |
|
BLAKE2b-256 | 5af4c570e4ee7b3f09e5c1b897bd6b77881da7940d745a78de7fabd9aa299699 |