Pie chart creation functionality for figure_t
Single Responsibility: Handle creation of pie chart plots Extracted from fortplot_figure_plots to keep modules under 500 lines.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=wp), | public, | parameter | :: | PI | = | acos(-1.0_wp) |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public | :: | slice_count | = | 0 | ||
| real(kind=wp), | public | :: | total | = | 0.0_wp | ||
| integer, | public, | allocatable | :: | indices(:) | |||
| real(kind=wp), | public, | allocatable | :: | explode(:) | |||
| logical, | public | :: | valid | = | .false. |
Store pie chart slices using polar wedges with optional explode & colors
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(plot_data_t), | intent(inout) | :: | plots(:) | |||
| type(figure_state_t), | intent(inout) | :: | state | |||
| real(kind=wp), | intent(in), | contiguous | :: | values(:) | ||
| character(len=*), | intent(in), | optional | :: | labels(:) | ||
| real(kind=wp), | intent(in), | optional | :: | startangle | ||
| character(len=*), | intent(in), | optional | :: | color_strings(:) | ||
| real(kind=wp), | intent(in), | optional | :: | explode(:) | ||
| character(len=*), | intent(in), | optional | :: | autopct |