Metadata-Version: 1.2
Name: PyCoolPlot
Version: 0.0.4
Summary: A cool plotting module in Python
Home-page: https://github.com/AtsushiSakai/PyCoolPlot
Author: Atsushi Sakai
Author-email: asakai.amsl@gmail.com
Maintainer: Atsushi Sakai
Maintainer-email: asakai.amsl@gmail.com
License: MIT
Description: PyCoolPlot
        ==========
        
        A cool plotting module in Python
        
        What is this?
        =============
        
        This is a plotting module in Python.
        
        Ref:
        
        -  `データ視覚化のデザイン #1｜Go Ando / THE
           GUILD｜note <https://note.mu/goando/n/neb6ea35f1da3>`__
        
        -  `「データ視覚化のデザイン #1」をmatplotlibで実装する -
           Qiita <https://qiita.com/skotaro/items/cdb0732ad1ad2a4b6236>`__
        
        Requirements
        ============
        
        -  Python 3.6.x or higher
        
        -  matplotlib
        
        -  numpy
        
        -  pandas
        
        Download
        ========
        
        Using pip
        ---------
        
           $ pip install PyCoolPlot
        
        PyPI page:
        
        -  `PyCoolPlot ·
           PyPI <https://pypi.org/project/PyCoolPlot/#description>`__
        
        Manual install
        --------------
        
        1. Install Python 3.6.x.
        
        2. Clone or download as zip this repository.
        
        3. import pycoolplot.py
        
        How to use
        ==========
        
        The sample code might be helpful:
        
        -  `PyCoolPlot/sample.py <https://github.com/AtsushiSakai/PyCoolPlot/blob/master/sample.py>`__
        
        import
        ------
        
        If you use pip to install PyCoolPlot, you can import it like:
        
        ::
        
           from pycoolplot import pycoolplot
        
        Horizontal bar plot
        -------------------
        
        You can plot a beautiful horizontal bar plot like:
        
        ::
        
           data = [1000, 2000, 10000]
           index = ["A", "B", "C"]
           pycoolplot.horizontal_bar(index, data)
           pycoolplot.plt.show()
        
        You will see:
        
        .. figure:: https://github.com/AtsushiSakai/PyCoolPlot/raw/master/imgs/1.png
           :alt: 1
        
           1
        
        If you want a rate bar plot, you can set rate_graph is True like:
        
        ::
        
           data = [1000, 2000, 10000]
           index = ["A", "B", "C"]
           pycoolplot.horizontal_bar(index, data, rate_graph=True)
           pycoolplot.plt.show()
        
        You will see:
        
        .. figure:: https://github.com/AtsushiSakai/PyCoolPlot/raw/master/imgs/2.png
           :alt: 2
        
           2
        
        Line graph
        ----------
        
        You can plot a beautiful line graph like:
        
        ::
        
           data2 = [[970, 1010, 1015, 1008],
                    [975, 1020, 1002, 1035],
                    [975, 985, 995, 999]]
           index2 = ['Toyota', 'VW', 'GM']
           columns = [2013, 2014, 2015, 2016]
           ylabel = "Number"
           xlabel = "Year"
           pycoolplot.line_graph(data2, index2, columns, xlabel,
                                 ylabel, xtick=1, ytick=25)
           pycoolplot.plt.show()
        
        You can get:
        
        .. figure:: https://github.com/AtsushiSakai/PyCoolPlot/raw/master/imgs/3.png
           :alt: 3
        
           3
        
        If you want to focus a line, you can set focus_id like:
        
        ::
        
           data2 = [[970, 1010, 1015, 1008],
                   [975, 1020, 1002, 1035],
                   [975, 985, 995, 999]]
           index2 = ['Toyota', 'VW', 'GM']
           columns = [2013, 2014, 2015, 2016]
           ylabel = "Number"
           xlabel = "Year"
           focus_id = 1  # the index of focusing line, in this case Toyota=0, VW=1, GM=2
           pycoolplot.line_graph(data2, index2, columns, xlabel,
                                 ylabel, xtick=1, ytick=25, focus_id=focus_id)
           pycoolplot.plt.show()
        
        .. figure:: https://github.com/AtsushiSakai/PyCoolPlot/raw/master/imgs/4.png
           :alt: 4
        
           4
        
        Time bar chart
        --------------
        
        You can plot a beautiful time series bar chart like:
        
        ::
        
           data = pycoolplot.np.linspace(450, 990, 12) + \
               pycoolplot.np.random.randint(-50, 50, 12)
           time_index = pycoolplot.pd.date_range('2017/5', periods=12, freq='MS')
           pycoolplot.time_vertical_bar(data, time_index, xlabel="time", ylabel="MAU")
           pycoolplot.plt.show()
        
        .. figure:: https://github.com/AtsushiSakai/PyCoolPlot/raw/master/imgs/5.png
           :alt: 5
        
           5
        
        License
        =======
        
        MIT
        
        Author
        ======
        
        -  `Atsushi Sakai <https://github.com/AtsushiSakai/>`__
           ([@Atsushi_twi](https://twitter.com/Atsushi_twi))
        
Keywords: python plot matplotlib
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Scientific/Engineering :: Visualization
Requires-Python: >3.6.0
