No project description provided
Project description
wry-bokeh-helper
Bokeh is a great library for creating interactive plots in Python. However, it can be a bit verbose to use, especially when you want to export a plot to a standalone image file (which is fairly common in scientific publications). This library provides a simple wrapper around Bokeh that makes it easier to export them to image files.
Installation
pip install wry-bokeh-helper
Usage
from bokeh.plotting import figure, show
from wry_bokeh_helper import bokeh_to_image
# prepare some data
x = [1, 2, 3, 4, 5]
y = [6, 7, 2, 4, 5]
# create a new plot with a title and axis labels
p = figure(title="Simple line example", x_axis_label="x", y_axis_label="y")
# add a line renderer with legend and line thickness
p.line(x, y, legend_label="Temp.", line_width=2)
# Export the plot to an image file
img = bokeh_to_image(plot, dpi=600)
img.show()
bokeh_to_image(plot, dpi=300, filename="plot.png")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wry_bokeh_helper-0.3.0.tar.gz.
File metadata
- Download URL: wry_bokeh_helper-0.3.0.tar.gz
- Upload date:
- Size: 27.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69ac0bfa12c14b371690d0a784c2f09ed4e14c11ca9ff0263b4d2ec9991c292f
|
|
| MD5 |
a908da2d0f2682220c65ff6e23d445cc
|
|
| BLAKE2b-256 |
6a55394d7f7ecee84ac88080803e3a79f40a29ba9ddf691b4c65c4c1c09fda8e
|
File details
Details for the file wry_bokeh_helper-0.3.0-cp312-none-win_amd64.whl.
File metadata
- Download URL: wry_bokeh_helper-0.3.0-cp312-none-win_amd64.whl
- Upload date:
- Size: 532.3 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
673e7ebd4363b5d49482f1b0f3e45286d4563392e82e5feb1a8c6ebfbb6be71b
|
|
| MD5 |
19bbd636c21317b884dcf1e86db02c6e
|
|
| BLAKE2b-256 |
710e52548d694a2e8fdb2a154a445acea9dc9cb6035297b27976b25133971398
|
File details
Details for the file wry_bokeh_helper-0.3.0-cp312-none-win32.whl.
File metadata
- Download URL: wry_bokeh_helper-0.3.0-cp312-none-win32.whl
- Upload date:
- Size: 502.6 kB
- Tags: CPython 3.12, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
131d05cd8ebb0ba23ce5ab61f930707e5e8a3879923cb0a7f0a28727190837ab
|
|
| MD5 |
4a7185396f2b8418701046b0e8941933
|
|
| BLAKE2b-256 |
8027d95448746dc68378bc0bbca2cd03b763f3764c59d8c49ddd4f222ee6a0a4
|
File details
Details for the file wry_bokeh_helper-0.3.0-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: wry_bokeh_helper-0.3.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 836.7 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
013b1fbd28bf1fff8b14092dd4ea9b2c623283f4838d1636c83bbf44296b87d1
|
|
| MD5 |
297729d2e5b4c55de1d506c439869d25
|
|
| BLAKE2b-256 |
1f36399389a95816f22715d3d37c016e4ca9e2a38e43d886a0263d022148399e
|
File details
Details for the file wry_bokeh_helper-0.3.0-cp312-cp312-macosx_10_12_x86_64.whl.
File metadata
- Download URL: wry_bokeh_helper-0.3.0-cp312-cp312-macosx_10_12_x86_64.whl
- Upload date:
- Size: 878.3 kB
- Tags: CPython 3.12, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecbd93157cf3dad2dc3ce0560bcbd81085d4eb6eb7f942ba0260613089e3f30b
|
|
| MD5 |
e9e414f2d4e1a0a955f1095305840d9e
|
|
| BLAKE2b-256 |
4f3f71e7e594a38621d36a36b1e19d6d440457cbaad430ab0b03be9773c21e29
|
File details
Details for the file wry_bokeh_helper-0.3.0-cp311-none-win_amd64.whl.
File metadata
- Download URL: wry_bokeh_helper-0.3.0-cp311-none-win_amd64.whl
- Upload date:
- Size: 531.2 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da8ad742cccf54f7de78cc884f621b2e5d6e4d7dca26cfbe41700677712cf2ad
|
|
| MD5 |
84b1c0013dce3b3caba796e208151eae
|
|
| BLAKE2b-256 |
d5d974e63fdefac198b338deaef7c570ff9950ba32dece7cc6ce4362b0797316
|
File details
Details for the file wry_bokeh_helper-0.3.0-cp311-none-win32.whl.
File metadata
- Download URL: wry_bokeh_helper-0.3.0-cp311-none-win32.whl
- Upload date:
- Size: 503.1 kB
- Tags: CPython 3.11, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1df77711af6b82c2b9225ab1b0c278cd29a5817b76530998dbb947e6d853ab21
|
|
| MD5 |
b6d7a86848658f28bfde75d0b6868a6f
|
|
| BLAKE2b-256 |
dd4c9329e8399bab36280109eddfae2905a39345d6a722ac2dd48d10a58c0be2
|
File details
Details for the file wry_bokeh_helper-0.3.0-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: wry_bokeh_helper-0.3.0-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 836.5 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
670d2dff08e38d145c134d0aba9eb62fbdae05d05266b2b7967083c96b8d5e18
|
|
| MD5 |
a2918834ad03e38873cf9193ca412fb6
|
|
| BLAKE2b-256 |
b67d252769d15c21d844145f7d070e230115c6c9c460bbf3d314c0b380830892
|
File details
Details for the file wry_bokeh_helper-0.3.0-cp311-cp311-macosx_10_12_x86_64.whl.
File metadata
- Download URL: wry_bokeh_helper-0.3.0-cp311-cp311-macosx_10_12_x86_64.whl
- Upload date:
- Size: 878.9 kB
- Tags: CPython 3.11, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b027d023e18156c1b69a2c1d23bd02c3f54ee9e38d6e443ea5e004d2dac64cd
|
|
| MD5 |
07c94ddf77a799be6993a32f4dcfbe21
|
|
| BLAKE2b-256 |
10f04ff0111e71614354586c1d81ba1eb1c7899b4e4863c74e46c42b2a4d0cef
|
File details
Details for the file wry_bokeh_helper-0.3.0-cp310-none-win_amd64.whl.
File metadata
- Download URL: wry_bokeh_helper-0.3.0-cp310-none-win_amd64.whl
- Upload date:
- Size: 531.3 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99c60430a34234e1d77876160137116aaaf8a6cdb4e5ce5205a3a25d515ecceb
|
|
| MD5 |
04e608f5be02477fc52629f76f78f9f6
|
|
| BLAKE2b-256 |
d6ac69f78079ece63d66ff21ec3c1e7bb777d239a25674f2f003904bfcdd9abe
|
File details
Details for the file wry_bokeh_helper-0.3.0-cp310-none-win32.whl.
File metadata
- Download URL: wry_bokeh_helper-0.3.0-cp310-none-win32.whl
- Upload date:
- Size: 503.2 kB
- Tags: CPython 3.10, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90691ab64dbc7a6ef3dfb20a0c5b70aa5f9b17af6f82167a0c7037bc1658d4dd
|
|
| MD5 |
302f2e502f7d3f38145767b294152ae8
|
|
| BLAKE2b-256 |
56784a64a8013977f295c779e28491ea6cbb8b003ac4afa88cda03ad49243f0d
|
File details
Details for the file wry_bokeh_helper-0.3.0-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: wry_bokeh_helper-0.3.0-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 836.7 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9094df3c92ba6b80da3fa92264f90e4512cde2e36cd815a23bf223fb113de28
|
|
| MD5 |
bf76b05c3a717526d86a23eadbc0d946
|
|
| BLAKE2b-256 |
6129504fc06892014743cdcdec5f262e90da970e9f781ce215fd1a3959a82082
|
File details
Details for the file wry_bokeh_helper-0.3.0-cp39-none-win_amd64.whl.
File metadata
- Download URL: wry_bokeh_helper-0.3.0-cp39-none-win_amd64.whl
- Upload date:
- Size: 531.4 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5cbc5f7fae71b7f7c16cb6920278c40ecb6e27e05c4d8e4c8cdb0539d8f5127
|
|
| MD5 |
4572b8d906b941a7cd5982724c13ddd5
|
|
| BLAKE2b-256 |
c3550aecb86957c1513f4f563980b78eb8d8a6e3f5751d8526d0c43e0a7f0d83
|
File details
Details for the file wry_bokeh_helper-0.3.0-cp39-none-win32.whl.
File metadata
- Download URL: wry_bokeh_helper-0.3.0-cp39-none-win32.whl
- Upload date:
- Size: 503.3 kB
- Tags: CPython 3.9, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbe135ee8b92c385c63b378190ff96633b3a15c52e3feb5fc68d54eae0a01434
|
|
| MD5 |
f326b9e2081e0405060fbad629109739
|
|
| BLAKE2b-256 |
69dbbcc7746af172f913b68b35e3bb53f304bc806d38034aca2557febd2d851b
|
File details
Details for the file wry_bokeh_helper-0.3.0-cp39-cp39-macosx_11_0_arm64.whl.
File metadata
- Download URL: wry_bokeh_helper-0.3.0-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 836.5 kB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06e7ced5e474c377cf3a92d17306c15fbd50dd2de48be0a038dd9fe4128eb6cc
|
|
| MD5 |
6cefd5927c8ff586b149e7f7a257fff8
|
|
| BLAKE2b-256 |
b2e28dd91374fd0d52a806b78dc9cdee8cf5d5f970ccde9a9a07d47eef980520
|
File details
Details for the file wry_bokeh_helper-0.3.0-cp38-none-win_amd64.whl.
File metadata
- Download URL: wry_bokeh_helper-0.3.0-cp38-none-win_amd64.whl
- Upload date:
- Size: 531.1 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7e09a00f77dc925b5713c565bccfb3686db3ec9feb24f5c74b4ee7da1146c58
|
|
| MD5 |
8011e9fa2fbbef304a2c055ffc2e4bdb
|
|
| BLAKE2b-256 |
2d54435893928c7780afc4fc5a607f80229f64b920f92c9d3f89fdc936ba16ee
|
File details
Details for the file wry_bokeh_helper-0.3.0-cp38-none-win32.whl.
File metadata
- Download URL: wry_bokeh_helper-0.3.0-cp38-none-win32.whl
- Upload date:
- Size: 503.1 kB
- Tags: CPython 3.8, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
590796fdcce67cb656ac7cdd8ef1d724496e719dd2a6877f3c12db5956ac7233
|
|
| MD5 |
faf84406ec3e00bc9768bcd19689495a
|
|
| BLAKE2b-256 |
ba9711fe2caa689f8b05e3c6606f9584be01dfcb69c604ff4a03b5a75e3d3afb
|