File I/O and display operations for matplotlib-compatible API Contains figure management, saving, and showing functions
Show data as a simple plot with optional labels
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=8), | intent(in), | dimension(:) | :: | x | ||
real(kind=8), | intent(in), | dimension(:) | :: | y | ||
character(len=*), | intent(in), | optional | :: | label | ||
character(len=*), | intent(in), | optional | :: | title_text | ||
character(len=*), | intent(in), | optional | :: | xlabel_text | ||
character(len=*), | intent(in), | optional | :: | ylabel_text | ||
logical, | intent(in), | optional | :: | blocking |
Display the global figure (pyplot-style)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in), | optional | :: | blocking |
Get reference to the global figure for testing access to arrow data This allows tests to access fig%arrow_data without making fig public
Ensure global figure is initialized before use (matplotlib compatibility) Auto-initializes with default dimensions if not already initialized
Create or activate a figure with optional size and DPI settings
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in), | optional | :: | num | ||
real(kind=8), | intent(in), | optional, | dimension(2) | :: | figsize | |
integer, | intent(in), | optional | :: | dpi |
Create subplot arrangement (simplified for single axis) Currently implements single plot behavior
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | nrows | |||
integer, | intent(in) | :: | ncols | |||
integer, | intent(in) | :: | index |
Save the global figure to a file (pyplot-style)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | filename | |||
integer, | intent(in), | optional | :: | dpi | ||
logical, | intent(in), | optional | :: | transparent | ||
character(len=*), | intent(in), | optional | :: | bbox_inches |
Save figure with status return (error handling version)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | filename | |||
integer, | intent(out) | :: | status | |||
integer, | intent(in), | optional | :: | dpi | ||
logical, | intent(in), | optional | :: | transparent | ||
character(len=*), | intent(in), | optional | :: | bbox_inches |
Display figure using system viewer (cross-platform)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in), | optional | :: | blocking |