create_elem_colorbars
- tulips.tulips.create_elem_colorbars(isotope_list, ax, cmap=<matplotlib.colors.ListedColormap object>, min_cbar_elem=5, max_cbar_elem=25, cbar_orientation='vertical')[source]
Create colorbar for isotopes
Create colorbars containing labels of isotopes for chemical_profile plots
- Parameters
- isotope_listlist
List of isotopes to plot
- axmatplotlib.Axes object
The current axis to plot on
- cmapstr or matplotlib.colors.ListedColormap
colormap to use for the isotopes
- min_cbar_elemint
Minimum number of isotopes in a colorbar
- max_cbar_elemint
Maximum number of isotopes per colorbar
- cbar_orientationstring, one of “vertical” or “horizontal”
Orientation of the colorbar. If horizontal, it is placed below the figure, if vertical, it is placed to the right.
- Returns
- ——-
- cbar_listlist
List of colorbar objects