Reference line operations for figures
This module provides horizontal and vertical reference line functionality similar to matplotlib's axhline, axvline, hlines, and vlines.
Draw a horizontal line spanning the axes at y position
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(plot_data_t), | intent(inout), | allocatable | :: | plots(:) | ||
| type(figure_state_t), | intent(inout) | :: | state | |||
| integer, | intent(inout) | :: | plot_count | |||
| real(kind=wp), | intent(in) | :: | y | |||
| real(kind=wp), | intent(in), | optional | :: | xmin | ||
| real(kind=wp), | intent(in), | optional | :: | xmax | ||
| character(len=*), | intent(in), | optional | :: | color | ||
| character(len=*), | intent(in), | optional | :: | linestyle | ||
| real(kind=wp), | intent(in), | optional | :: | linewidth | ||
| character(len=*), | intent(in), | optional | :: | label |
Draw a vertical line spanning the axes at x position
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(plot_data_t), | intent(inout), | allocatable | :: | plots(:) | ||
| type(figure_state_t), | intent(inout) | :: | state | |||
| integer, | intent(inout) | :: | plot_count | |||
| real(kind=wp), | intent(in) | :: | x | |||
| real(kind=wp), | intent(in), | optional | :: | ymin | ||
| real(kind=wp), | intent(in), | optional | :: | ymax | ||
| character(len=*), | intent(in), | optional | :: | color | ||
| character(len=*), | intent(in), | optional | :: | linestyle | ||
| real(kind=wp), | intent(in), | optional | :: | linewidth | ||
| character(len=*), | intent(in), | optional | :: | label |
Draw horizontal lines at each y position from xmin to xmax
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(plot_data_t), | intent(inout), | allocatable | :: | plots(:) | ||
| type(figure_state_t), | intent(inout) | :: | state | |||
| integer, | intent(inout) | :: | plot_count | |||
| real(kind=wp), | intent(in) | :: | y(:) | |||
| real(kind=wp), | intent(in) | :: | xmin | |||
| real(kind=wp), | intent(in) | :: | xmax | |||
| character(len=*), | intent(in), | optional | :: | colors | ||
| character(len=*), | intent(in), | optional | :: | linestyles | ||
| real(kind=wp), | intent(in), | optional | :: | linewidth | ||
| character(len=*), | intent(in), | optional | :: | label |
Draw vertical lines at each x position from ymin to ymax
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(plot_data_t), | intent(inout), | allocatable | :: | plots(:) | ||
| type(figure_state_t), | intent(inout) | :: | state | |||
| integer, | intent(inout) | :: | plot_count | |||
| real(kind=wp), | intent(in) | :: | x(:) | |||
| real(kind=wp), | intent(in) | :: | ymin | |||
| real(kind=wp), | intent(in) | :: | ymax | |||
| character(len=*), | intent(in), | optional | :: | colors | ||
| character(len=*), | intent(in), | optional | :: | linestyles | ||
| real(kind=wp), | intent(in), | optional | :: | linewidth | ||
| character(len=*), | intent(in), | optional | :: | label |