Axes, scale, and labelling helpers for the matplotlib facade
Set aspect ratio: axis('equal'), axis('auto'), or axis(2.0)
Set axis aspect ratio using string mode: 'equal' or 'auto'
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | aspect |
Set axis aspect ratio using a numeric value (y-scale = ratio * x-scale)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | ratio |
Return the name of the currently active axes.
Set the x-axis label text. Routes to subplot or figure level.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | label_text |
Set the y-axis label text. Routes to subplot or figure level.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | label_text |
Set the title for the current axes. Routes to subplot or figure level.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | title_text |
Set a centered figure-level title above all subplots
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | title_text | |||
| real(kind=wp), | intent(in), | optional | :: | fontsize |
Display figure legend (matplotlib-compatible)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in), | optional | :: | loc | ||
| logical, | intent(in), | optional | :: | box | ||
| integer, | intent(in), | optional | :: | fontsize | ||
| character(len=*), | intent(in), | optional | :: | position |
Toggle or style grid lines (matplotlib-compatible)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| logical, | intent(in), | optional | :: | visible | ||
| character(len=*), | intent(in), | optional | :: | which | ||
| character(len=*), | intent(in), | optional | :: | axis | ||
| real(kind=wp), | intent(in), | optional | :: | alpha | ||
| character(len=*), | intent(in), | optional | :: | linestyle | ||
| logical, | intent(in), | optional | :: | enabled |
Set the x-axis display limits.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | xmin | |||
| real(kind=wp), | intent(in) | :: | xmax |
Set the y-axis display limits.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | ymin | |||
| real(kind=wp), | intent(in) | :: | ymax |
Set x-axis scale (matplotlib-compatible)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | scale | |||
| real(kind=wp), | intent(in), | optional | :: | linthresh | ||
| real(kind=wp), | intent(in), | optional | :: | threshold | ||
| real(kind=wp), | intent(in), | optional | :: | base | ||
| real(kind=wp), | intent(in), | optional | :: | linscale |
Set y-axis scale (matplotlib-compatible); see set_xscale for kwargs
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | scale | |||
| real(kind=wp), | intent(in), | optional | :: | linthresh | ||
| real(kind=wp), | intent(in), | optional | :: | threshold | ||
| real(kind=wp), | intent(in), | optional | :: | base | ||
| real(kind=wp), | intent(in), | optional | :: | linscale |
matplotlib pyplot alias for set_xscale
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | scale | |||
| real(kind=wp), | intent(in), | optional | :: | linthresh | ||
| real(kind=wp), | intent(in), | optional | :: | threshold | ||
| real(kind=wp), | intent(in), | optional | :: | base | ||
| real(kind=wp), | intent(in), | optional | :: | linscale |
matplotlib pyplot alias for set_yscale
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | scale | |||
| real(kind=wp), | intent(in), | optional | :: | linthresh | ||
| real(kind=wp), | intent(in), | optional | :: | threshold | ||
| real(kind=wp), | intent(in), | optional | :: | base | ||
| real(kind=wp), | intent(in), | optional | :: | linscale |
Set the default line width for subsequent plots.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | width |
Replace the y-data of the first plot line.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in), | contiguous | :: | ydata(:) |
Switch the active axes by name.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | axis_name |
Enable minor ticks on both axes (matplotlib-compatible)
Automatically adjust subplot parameters to give specified padding
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in), | optional | :: | pad | ||
| real(kind=wp), | intent(in), | optional | :: | w_pad | ||
| real(kind=wp), | intent(in), | optional | :: | h_pad |
Draw a horizontal reference line at data value y (matplotlib-compatible)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| 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 reference line at data value x (matplotlib-compatible)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| 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 one or more horizontal lines at y values between xmin and xmax
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in), | contiguous | :: | 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 one or more vertical lines at x values between ymin and ymax
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in), | contiguous | :: | 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 |
Set custom x-axis tick positions and optionally labels
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in), | contiguous | :: | positions(:) | ||
| character(len=*), | intent(in), | optional | :: | labels(:) |
Set custom y-axis tick positions and optionally labels
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in), | contiguous | :: | positions(:) | ||
| character(len=*), | intent(in), | optional | :: | labels(:) |