make_pie_composition_plot
- tulips.tulips.make_pie_composition_plot(ax, prof, num_rings=0, scale=11.0, width=0.01, startangle=90, isotope_list=None, cmap=None, show_colorbar=True, min_cbar_elem=5, max_cbar_elem=25, counterclock=True, raxis='mass', boundary=0, log_low_lim=- 2.1, cbar_orientation='vertical')[source]
Create composition plot.
Create a composition plot showing the percentage of composition for each element in each layer of the star.
- Parameters
- axaxis object
- prof: mesaPlot profile object
- num_ringsint
Number of rings to plot.
- scalefloat
Value to scale the plot to.
- widthfloat
Width of each nested piechart.
- startanglefloat
Value of the angle to start with for the piecharts.
- isotope_listNone or list
List of isotopes to take into account.
- counterclockbool, optional
Default: True, specify fractions direction, clockwise or counterclockwise.
- show_colorbarboolean
If set, add a colorbar that gives the isotopes and corresponding colors.
- 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
- ——-
- elem_list, artists