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.
Parameters aspect : character(len=*), intent(in) 'equal' or 'auto'.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | aspect |
Set axis aspect ratio using a numeric value.
Parameters ratio : real(wp), intent(in) 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.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | label_text |
Set the y-axis label text.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | label_text |
Set the title for the current axes.
| 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 |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | charset |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | mode |
Display the figure legend.
| 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.
| 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 the 3D view angles in degrees.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in), | optional | :: | elev | ||
| real(kind=wp), | intent(in), | optional | :: | azim | ||
| real(kind=wp), | intent(in), | optional | :: | dist |
Set the x-axis scale.
| 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 y-axis scale.
| 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 |
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 |
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.
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.
| 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.
| 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.
| 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.
| 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 optional 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 optional labels.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in), | contiguous | :: | positions(:) | ||
| character(len=*), | intent(in), | optional | :: | labels(:) |