Skip to main content

Python data visualisation

Project description

datavision

Python data visualisation

setup

sudo pip install datavision

introduction

qunti and zus lists

Qunti (群体, groups) are lists that act

  • as dictionaries that can contain duplicate keys and

  • as sets for the purposes of enabling set-like operations for qunti objects, such as symmetric difference, intersection and update operations.

Qunti are composed of multiple zu (组, group) objects.

qunti operations

In an update operation, one qunti is used to update another. Any zus in the updating qunti that are not in the updated qunti are appended to the updated qunti. Any zus that are in the updating qunti and the updated qunti replace the corresponding zus in the updated qunti.

The following example illustrates a qunti update operation in which an alpha zus is replaced and a delta zus is appended:

# example qunti update:
a = [['alpha', '10'], ['beta', '20'], ['gamma', '30'], ['gamma', '15']]
b = [['delta', '40'], ['alpha', '50']]
# update of a with b:
a = [['beta', '20'], ['gamma', '30'], ['gamma', '15'], ['delta', '40'], ['alpha', '50']]

The following example illustrates qunti symmetric difference, intersection and update operations. In the update operation, two old gamma zus are replaced by a single new gamma zu:

# example qunti symmetric difference, intersection and update:
a = [['alpha', '10'], ['beta', '20'], ['gamma', '30'], ['gamma', '15']]
b = [['delta', '40'], ['alpha', '50'], ['gamma', '25']]
# symmetric difference of a and b:
[['beta', '20'], ['delta', '40']]
# intersection of a and b:
[['alpha', '10'], ['gamma', '30'], ['gamma', '15'], ['alpha', '50'], ['gamma', '25']]
# update of a with b:
a = [['beta', '20'], ['delta', '40'], ['alpha', '50'], ['gamma', '25']]

data visualisation

Datavision provides utilities for data visualisation. It can visualise matrices as colormaps:

image0 image1 image2

It can visualise histograms:

It can visualise graphs and histograms in a terminal:

   │
   ┼+79.548                                                                 ○
   │
   │                                                                ○
   │
   │                                                        ○
   │
   │                                                ○
   ◽       ◽       ◽                       ○
   │                       ◽       ○
   │                       ○       ◽
───○┼──────○───────○───────────────────────◽────────────────────────────────┼───
   │ +0.046                                         ◽               +8.97638
   │
   │                                                        ◽
   │
   │                                                                ◽
   ┼-48.228
   │                                                                        ◽
   │
                         │
                         ┼+75503.2
                       ∘∘|∘
                      ∘||||∘
                      ||||||∘
                     ∘|||||||
                     ||||||||∘
                    ∘|||||||||
                    ||||||||||∘
                   ∘|||||||||||
                   |||||||||||∘
                  ∘||||||||||||
                  |||||||||||||∘
                  ||||||||||||||∘
                 ∘|||||||||||||||∘
                ∘|||||||||||||||||∘
               ∘|||||||||||||||||||∘
            ∘∘∘||||||||||┼+1603.2|||∘∘∘
──┼--------------------------------------------┼──
   -4.69099              │              +4.6147

It can plot all combinations of variables:

It can plot all parallel coordinates:

It can perform FFT:

It can graph time:

graphs

image3 image4 image5 image6 image7

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

datavision-2017.4.11.1548.tar.gz (34.5 kB view hashes)

Uploaded Source

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