fortplot_matplotlib_axes Module

Axis operations and annotations for matplotlib-compatible API Contains axis limits, labels, scales, text, and annotation functions



Subroutines

public subroutine xlabel(label_text)

Set the x-axis label for the global figure (pyplot-style)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: label_text

public subroutine ylabel(label_text)

Set the y-axis label for the global figure (pyplot-style)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: label_text

public subroutine title(title_text)

Set the title for the global figure (pyplot-style)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: title_text

public subroutine legend(position, box, fontsize)

Add a legend to the global figure (pyplot-style)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in), optional :: position
character(len=*), intent(in), optional :: box
real(kind=8), intent(in), optional :: fontsize

public subroutine xlim(xmin, xmax)

Set the x-axis limits for the global figure (pyplot-style)

Arguments

Type IntentOptional Attributes Name
real(kind=8), intent(in) :: xmin
real(kind=8), intent(in) :: xmax

public subroutine ylim(ymin, ymax)

Set the y-axis limits for the global figure (pyplot-style)

Arguments

Type IntentOptional Attributes Name
real(kind=8), intent(in) :: ymin
real(kind=8), intent(in) :: ymax

public subroutine set_xscale(scale, threshold)

Set the x-axis scale type (linear, log, symlog)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: scale
real(kind=8), intent(in), optional :: threshold

public subroutine set_yscale(scale, threshold)

Set the y-axis scale type (linear, log, symlog)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: scale
real(kind=8), intent(in), optional :: threshold

public subroutine set_line_width(width)

Set the line width for subsequent plot elements This affects all plot elements added after this call

Arguments

Type IntentOptional Attributes Name
real(kind=8), intent(in) :: width

public subroutine set_ydata(ydata)

Update y-data for the last plot added to the figure Useful for animation or updating existing plots

Arguments

Type IntentOptional Attributes Name
real(kind=8), intent(in), dimension(:) :: ydata