All Projects → AtsushiSakai → PyCoolPlot

AtsushiSakai / PyCoolPlot

Licence: MIT license
A cool plotting module on Python

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to PyCoolPlot

matplotlib-draggable-plot
An example of draggable plot for matplotlib
Stars: ✭ 31 (+3.33%)
Mutual labels:  matplotlib
sarviewer
Generate graphs with gnuplot or matplotlib (Python) from sar data
Stars: ✭ 60 (+100%)
Mutual labels:  matplotlib
pymae
Materials for the book "Python for Mechanical and Aerospace Engineering"
Stars: ✭ 56 (+86.67%)
Mutual labels:  matplotlib
pyplot-fortran
For generating plots from Fortran using Python's matplotlib.pyplot 📈
Stars: ✭ 158 (+426.67%)
Mutual labels:  matplotlib
jupyter boilerplate
Adds a customizable menu item to Jupyter (IPython) notebooks to insert boilerplate snippets of code
Stars: ✭ 69 (+130%)
Mutual labels:  matplotlib
PyEarthScience
The PyEarthScience repository created by DKRZ (German Climate Computing Center) provides Python scripts and Jupyter notebooks in particular for scientific data processing and visualization used in climate science. It contains scripts for visualization, I/O, and analysis using PyNGL, PyNIO, xarray, cfgrib, xesmf, cartopy, and others.
Stars: ✭ 56 (+86.67%)
Mutual labels:  matplotlib
pyCircos
python Circos
Stars: ✭ 233 (+676.67%)
Mutual labels:  matplotlib
gopem
GUI for OPEM library
Stars: ✭ 20 (-33.33%)
Mutual labels:  matplotlib
scipy-crash-course
Material for a 24 hours course on Scientific Python
Stars: ✭ 98 (+226.67%)
Mutual labels:  matplotlib
geospatial-storytelling
Visualization of gps tracking data
Stars: ✭ 20 (-33.33%)
Mutual labels:  matplotlib
gaitutils
Extract and visualize gait data
Stars: ✭ 28 (-6.67%)
Mutual labels:  matplotlib
matplotnim
A Nim wrapper for matplotlib
Stars: ✭ 22 (-26.67%)
Mutual labels:  matplotlib
2021-bordeaux-dataviz
Scientific Visualization Crash Course (Python & Matplotlib)
Stars: ✭ 20 (-33.33%)
Mutual labels:  matplotlib
tsp-essay
A fun study of some heuristics for the Travelling Salesman Problem.
Stars: ✭ 15 (-50%)
Mutual labels:  matplotlib
shikshak
Academics made Affordable.
Stars: ✭ 16 (-46.67%)
Mutual labels:  matplotlib
geojsoncontour
Convert matplotlib contour plots to geojson
Stars: ✭ 78 (+160%)
Mutual labels:  matplotlib
Data-Analytics-Projects
This repository contains the projects related to data collecting, assessing,cleaning,visualizations and analyzing
Stars: ✭ 167 (+456.67%)
Mutual labels:  matplotlib
chronist
Long-term analysis of emotion, age, and sentiment using Lifeslice and text records.
Stars: ✭ 23 (-23.33%)
Mutual labels:  matplotlib
Instagram Stalker Scraper
(UNMAINTAINED) Fetch data of any public Instagram profile, without using api
Stars: ✭ 39 (+30%)
Mutual labels:  matplotlib
MatplotLibBridge
A bridge to provide the ability to Pharo user to use Python's Matplotlib.
Stars: ✭ 20 (-33.33%)
Mutual labels:  matplotlib

PyCoolPlot

A cool plotting module in Python

What is this?

This is a plotting module in Python.

Ref:

Requirements

  • Python 3.6.x or higher

  • matplotlib

  • numpy

  • pandas

Download

Using pip

$ pip install PyCoolPlot

PyPI page:

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:

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:

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:

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:

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()

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()

5

License

MIT

Author

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].