brainglobe / brainrender

a python based software for visualization of neuroanatomical and morphological data.
https://brainglobe.info/documentation/brainrender/index.html
BSD 3-Clause "New" or "Revised" License
547 stars 77 forks source link

BUG Color not saved when exporing to html #245

Closed orena1 closed 10 months ago

orena1 commented 1 year ago

Describe the bug When exporting to html, all colors are saved as blue:

image

brain_regions.zip

To Reproduce

In [3]: vedo.__version__
Out[3]: '2021.0.5'

In [4]: brainrender.__version__
Out[4]: '2.0.5.5'

Then tell us the steps to reproduce the behavior: Add .export("brain_regions.html") to brainrender\examples\brain_regions.py before the scene.render() line Than run brainrender\examples>python brain_regions.py

orena1 commented 1 year ago

@FedeClaudi any thoughts?

adamltyson commented 10 months ago

Hi @orena1,

I can't reproduce this issue, it seems to be fixed with the latest release.

This script seems to work:

from brainrender import Scene

scene = Scene(title="HTML test")
scene.add_brain_region("TH", "CA1")
scene.export("brain_regions.html")

brain_regions.html.zip

orena1 commented 10 months ago

yes @adamltyson working great now. Thanks