Skip to main content

Transfer function editor for Blue Brain BioExplorer

Project description

Transfer Function

Transfer function editor widget for Jupyter Notebook

Installation

virtualenv env
. ./env/bin/activate
pip install -r requirements.txt

Usage (in Jupyter notebook)

Create widget

from ipyTransferFunction import TransferFunctionEditor

def display_palette_info(transfer_function):
    print(transfer_function.data_range)

tf = TransferFunctionEditor(
    name='rainbow', size=32, alpha=0.5, 
    continuous_update=False, on_change=display_palette_info)

Change palette

tf.set_palette('seismic')

Set value range

tf.set_range((0,255))

Screenshot

transfer_function_editor

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

ipyTransferFunction-0.2.0.tar.gz (4.3 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