Skip to main content

Interactive visualization tool

Project description

=========
Python Interactive Visualization Environment
=========

CURRENT ISSUES:
The Python3 Version wont work due to unresolved path issues outside the development environment. Needs more investigation. Use Python 2.7 instead.

Pive is a template based visualization tool utilizing D3.js to
create interactive visualizations on the fly.

(alternative titles: *p-ive* or preferably **pive**)

python-ive
[ˈpaiθən-ˈaivi]

current version: 0.2.1


Common usage is shown in an example:

#!/usr/bin/env python
import pive.environment as environment
from pive import inputmanager as im

# Assuming you have a testdata.json file with some datapoints
# in the same directory. Try to create JSON-Objekts as Key/Value
# pairs or use a JSON formatted String Object. CSV is also
# supported.
input_path = 'testdata.json'

###########################
### Basic usage of pive ###
###########################
# 1)Set up the environment by creating the input manager and
# passing it to an environment.
manager = im.InputManager(mergedata=False)
vizenv = environment.Environment(inputmanager=manager)

# 2) Load your dataset into the environment to get a
# list of supported visualizations.
suitable_charts = vizenv.load(input_path)


# 3) Choose a chart from this list and manipulate
# the visualization object.
mychart = vizenv.choose(suitable_charts[0])

mychart.setWidth(900)
mychart.setHeight(500)

# 4) Let the environment render the chart.
vizenv.render(mychart)



Example data (json-file):

[
{
"x": 1,
"y1": 12,
"y2": 3
},
{
"x": 2,
"y1": 10,
"y2": 9
},
{
"x": 3,
"y1": 34,
"y2": 42
}
]

For more information visit `<http://www.python-ive.org>` - coming soon - or visit https://github.com/daboth/pive

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

pive-0.2.1.tar.gz (35.6 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