-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
Describe the bug
Using Vapor 3.10.0 with Python 3.9.18.
The Python bindings fail to set the axis color for an annotation axis.
Helpful additional information
(Please click check boxes AFTER submitting ticket)
- Did VAPOR crash?
- Did you get wrong results?
Impact
- High - User productivity significantly degraded
- Medium - User productivity partially degraded
- Low - User productivity trivially degraded
To Reproduce
Steps to reproduce the behavior. Python code:
from vapor import session, renderer, dataset, camera, widget, annotations
from vapor.animation import Animation
# create a VAPOR session
ses = session.Session()
ses.SetResolution(1024,1024)
# get default annotation axes
anno = ses.GetAxisAnnotations()
# following SUCCEEDS
backColorAxis = anno.GetAxisBackgroundColor()
print(backColorAxis)
backColorAxis = [0.5,0.5,0.5,1.]
anno.SetAxisBackgroundColor(backColorAxis)
backColorAxis = anno.GetAxisBackgroundColor()
print(backColorAxis)
print()
# following FAILS to set values correctly
backColorAxis = anno.GetAxisColor()
print(backColorAxis)
backColorAxis = [0.5,0.5,0.5,1.]
anno.SetAxisColor(backColorAxis)
backColorAxis = anno.GetAxisColor()
print(backColorAxis)
Expected behavior
I expect the last two lines in the code above to print the demand values [0.5,0.5,0.5,1.].
Desktop
- OS and version: Archlinux
- Version: see above: Vapor 3.10.0 / Python 3.9.18
Additional context
using vapor in a micromamba environment with jupyter-lab.