You can use boolean logic (e.g. AND/OR/NOT) for complex search queries. For more help and examples, see the search documentation.
Search by package name:
my-package (implicit)
name:my-package (explicit)
Search by package filename:
filename:my-package.ext
Search by package tag:
tag:latest
Search by package version:
version:1.0.0
prerelease:true (prereleases)
prerelease:false (no prereleases)
Search by package architecture:
architecture:x86_64
Search by package distribution:
distribution:el
Search by package license:
license:MIT
Search by package format:
format:deb
Search by package status:
status:in_progress
Search by package file checksum:
checksum:5afba
Search by package security status:
severity:critical
Search by package vulnerabilities:
vulnerabilities:>1
vulnerabilities:<1000
Search by # of package downloads:
downloads:>8
downloads:<100
Search by package type:
type:binary
type:source
Search by package size (bytes):
size:>50000
size:<10000
Search by dependency name/version:
dependency:log4j
dependency:log4j=1.0.0
dependency:log4j>1.0.0
Search by uploaded date:
uploaded:>"1 day ago"
uploaded:<"August 14, 2022 EST"
Search by entitlement token (identifier):
entitlement:3lKPVJPosCsY
Search by policy violation:
policy_violated:true
deny_policy_violated:true
license_policy_violated:true
vulnerability_policy_violated:true
Search by repository:
repository:repo-name
Search by last download date:
last_downloaded:<"30 days ago"
last_downloaded:>"August 14, 2022 EST"
Search queries for all Debian-specific (and related) package types
Search by component:
deb_component:unstable
Search queries for all Maven-specific (and related) package types
Search by group ID:
maven_group_id:org.apache
Search queries for all Docker-specific (and related) package types
Search by image digest:
docker_image_digest:sha256:7c5..6d4
(full hashref only)
Search by layer digest:
docker_layer_digest:sha256:4c4..ae4
(full hashref only)
Search queries for all Generic-specific package types
Search by file path:
generic_filepath:path/to/file.txt
Search by directory:
generic_directory:path/to
Field type modifiers (depending on the type, you can influence behaviour)
For all queries, you can use:
~foo for negation
For string queries, you can use:
^foo to anchor to start of term
foo$ to anchor to end of term
foo*bar for fuzzy matching
For number/date or version queries, you can use:
>foo for values greater than
>=foo for values greater / equal
<foo for values less than
<=foo for values less / equal
Need a secure and centralised artifact repository to deliver Alpine,
Cargo,
CocoaPods,
Composer,
Conan,
Conda,
CRAN,
Dart,
Debian,
Docker,
Generic,
Go,
Helm,
Hex,
HuggingFace,
LuaRocks,
Maven,
npm,
NuGet,
P2,
Python,
RedHat,
Ruby,
Swift,
Terraform,
Vagrant,
VSX,
Raw & More packages?
Cloudsmith is the new standard in Package / Artifact Management and Software Distribution.
With support for all major package formats, you can trust us to manage your software supply chain.
brainplotlib
1.0.0
One-liner (summary)
Description
[](https://pypi.org/project/brainplotlib/) [](https://pepy.tech/project/brainplotlib)  [](https://doi.org/10.5281/zenodo.5979819)
brainplotlib is a Python package that plots data on cortical surface. It's designed to have minimal requirements --- only NumPy and matplotlib.

## Installation The package can be installed with pip: `bash pip install brainplotlib `
## Example usage
See the [examples gallery](https://feilong.github.io/brainplotlib/examples/index.html) for all code examples with detailed explanations.
```Python import numpy as np from brainplotlib import brain_plot, example_data
# The example_data is icoorder5 resolution (10242 vertices per hemisphere), # and the non-cortical vertices have been masked out (9372 and 9370 remaining # vertices for the left and right hemisphere, respectively).
- img, scale = brain_plot(
- example_data, vmax=10, vmin=-10, cmap='seismic', return_scale=True)
The rendered image is a NumPy array. It can be rendered using matplotlib: `Python import matplotlib.pyplot as plt fig = plt.figure(figsize=(img.shape[1] / 200, img.shape[0] / 200), dpi=200) plt.imshow(img) plt.axis('off') cbar = plt.colorbar(scale, shrink=0.8, aspect=30) plt.savefig('example_data_with_colorbar.png', bbox_inches='tight') plt.show() `
Alternatively, the high-resolution image can be saved directly using OpenCV. ```Python import cv2 cv2.imwrite(
'example_data.png', np.round(img[:, :, [2, 1, 0]] * 255).astype(np.uint8))
## Citation If you use this software in your publications, please cite it [](https://doi.org/10.5281/zenodo.5979819) ```bibtex @software{brainplotlib,
author = {Ma Feilong and Guo Jiahui and M. Ida Gobbini and James V. Haxby}, title = {brainplotlib: plotting brain data on cortical surface}, month = feb, year = 2022, publisher = {Zenodo}, doi = {10.5281/zenodo.5979819}, url = {https://doi.org/10.5281/zenodo.5979819}
}
License
Size
8.0 MB
Downloads
7
Tags
bdist/wheel whl noarch py3 upstream python-upstream-pro… latest
| Status | Completed |
|---|---|
| Checksum (MD5) | ec351361294504aa29c8a702aab19c4b |
| Checksum (SHA-1) | 8d411f12661e14041de2bc961e14355a4f214cca |
| Checksum (SHA-256) | e70a80799b87e057f5184a54f40323cc6827ecdc0ee0e137ee60ee95a8a30317 |
| Checksum (SHA-512) | 25591d105e7d7087bfb3334b747c213f04c157c7a6a81891deee27ad7f82b9476d… |
| GPG Signature | |
| GPG Fingerprint | 6811684bac0b8895434e97bdd4391b8fb999e537 |
| Storage Region | Dublin, Ireland |
| Type | Binary (contains binaries and binary artifacts) |
| Uploaded At | 4 months, 3 weeks ago |
| Uploaded By |
|
| Slug Id | brainplotlib-100-py3-none-anywhl-4ndl |
| Unique Id | hLFJVFFMGBudgdko |
| Version (Raw) | 1.0.0 |
| Version (Parsed) |
|
| extended metadata | |
| Author | Ma Feilong <mafeilong@gmail.com> |
| Classifiers | Programming Language :: Python :: 3 :: Only | Programming Language :: Python :: 3.10 | Programming Language :: Python :: 3.6 | Programming Language :: Python :: 3.7 | Programming Language :: Python :: 3.8 | Programming Language :: Python :: 3.9 |
| Homepage URL | https://feilong.github.io/brainplotlib/ |
| Keywords | brain,surface,fmri,plotting,visualization |
| Metadata Version | 2.1 |
| Project Urls | Bug Tracker, https://github.com/feilong/brainplotlib/issues | Source Code, https://github.com/feilong/brainplotlib |
| Py Filetype | bdist_wheel |
| Py Version | py3 |
| Requires Dist | matplotlib | numpy | pytest ; extra == 'tests' |
| Requires Python | >=3.6 |
| pkg | brainplotlib-1.0.0-py3-none-any… |
7
8.0 MB |
md5 | sha1 | sha256 | sha512 |
This package has 29 files/directories.
|
|
brainplotlib |
7 |
|
|||
| Older |
|
brainplotlib |
8 |
|
||
| Older |
|
brainplotlib |
12 |
|
||
| Older |
|
brainplotlib |
10 |
|
||
| Older |
|
brainplotlib |
12 |
|
||
| Older |
|
brainplotlib |
9 |
|
||
| Older |
|
brainplotlib |
5 |
|
Last scanned
4 months, 3 weeks ago
Scan result
Clean
Vulnerability count
0
Max. severity
UnknownPackage statistics are no longer available on cloudsmith.io. Please visit our new web app to access this feature.
You can embed a badge in another website that shows this or the latest version of this package.
To embed the badge for this specific package version, use the following:
[](https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/brainplotlib/1.0.0/a=noarch;xf=bdist_wheel;xn=brainplotlib;xv=py3/)
|This version of 'brainplotlib' @ Cloudsmith|
.. |This version of 'brainplotlib' @ Cloudsmith| image:: https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/brainplotlib/1.0.0/a=noarch;xf=bdist_wheel;xn=brainplotlib;xv=py3/?render=true
:target: https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/brainplotlib/1.0.0/a=noarch;xf=bdist_wheel;xn=brainplotlib;xv=py3/
image::https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/brainplotlib/1.0.0/a=noarch;xf=bdist_wheel;xn=brainplotlib;xv=py3/?render=true[link="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/brainplotlib/1.0.0/a=noarch;xf=bdist_wheel;xn=brainplotlib;xv=py3/",title="This version of 'brainplotlib' @ Cloudsmith"]
<a href="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/brainplotlib/1.0.0/a=noarch;xf=bdist_wheel;xn=brainplotlib;xv=py3/"><img src="https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/brainplotlib/1.0.0/a=noarch;xf=bdist_wheel;xn=brainplotlib;xv=py3/?render=true" alt="This version of 'brainplotlib' @ Cloudsmith" /></a>
rendered as:
To embed the badge for the latest package version, use the following:
[](https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/brainplotlib/latest/a=noarch;xf=bdist_wheel;xn=brainplotlib;xv=py3/)
|Latest version of 'brainplotlib' @ Cloudsmith|
.. |Latest version of 'brainplotlib' @ Cloudsmith| image:: https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/brainplotlib/latest/a=noarch;xf=bdist_wheel;xn=brainplotlib;xv=py3/?render=true&show_latest=true
:target: https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/brainplotlib/latest/a=noarch;xf=bdist_wheel;xn=brainplotlib;xv=py3/
image::https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/brainplotlib/latest/a=noarch;xf=bdist_wheel;xn=brainplotlib;xv=py3/?render=true&show_latest=true[link="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/brainplotlib/latest/a=noarch;xf=bdist_wheel;xn=brainplotlib;xv=py3/",title="Latest version of 'brainplotlib' @ Cloudsmith"]
<a href="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/brainplotlib/latest/a=noarch;xf=bdist_wheel;xn=brainplotlib;xv=py3/"><img src="https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/brainplotlib/latest/a=noarch;xf=bdist_wheel;xn=brainplotlib;xv=py3/?render=true&show_latest=true" alt="Latest version of 'brainplotlib' @ Cloudsmith" /></a>
rendered as:
These instructions assume you have setup the repository first (or read it).
To install/use brainplotlib @ version 1.0.0 ...
pip install 'brainplotlib==1.0.0'
You can also install the latest version of this package:
pip install --upgrade 'brainplotlib'
If necessary, you can specify the repository directly:
pip install \
--index-url=https://dl.cloudsmith.io/public/demo-docs/awesome-repo/python/simple/ \
brainplotlib==1.0.0
If you've got a project requirements.txt file, you can specify this as a dependency:
--index-url=https://dl.cloudsmith.io/public/demo-docs/awesome-repo/python/simple/
brainplotlib==1.0.0
In addition, you can use this repository as an extra index url. However, please read our documentation on this parameter before using it. For example in a requirements.txt file:
--extra-index-url=https://dl.cloudsmith.io/public/demo-docs/awesome-repo/python/simple/
brainplotlib==1.0.0