Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

You can annotate your renderings using Vapor’s build in annotations as well as MatPlotLib

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[1], line 1
----> 1 import example_utils
      2 from vapor import session, renderer, dataset, camera
      3 from vapor.utils import histogram
      4 

File ~/work/vapor-python-cookbook/vapor-python-cookbook/notebooks/example_utils.py:20
     16     sys.path.append('..')
     19 from inspect import signature
---> 20 import numpy as np
     21 from math import sin
     23 def SampleFunctionOnRegularGrid(f, ext=None, shape=None):

ModuleNotFoundError: No module named 'numpy'

Vapor Colorbars

MatPlotLib Colorbars

You can customize the histograms as you would MatPlotLib’s pylab.colorbar

MatPlotLib Histograms


You can customize the histograms as you would matplotlib.pyplot.hist

Axis Annotations

Scene Annotations

Scene annotations are other annotations and rendering options that apply to the entire rendering such as background color.