fortplot_matplotlib_contour Module

Contour and field plotting functions for matplotlib-compatible API Contains contour, pcolormesh, streamplot, and surface operations



Subroutines

public subroutine contour(x, y, z, levels, label)

Add a contour plot to the global figure (pyplot-style)

Arguments

Type IntentOptional Attributes Name
real(kind=8), intent(in), dimension(:) :: x
real(kind=8), intent(in), dimension(:) :: y
real(kind=8), intent(in), dimension(:,:) :: z
real(kind=8), intent(in), optional, dimension(:) :: levels
character(len=*), intent(in), optional :: label

public subroutine contour_filled(x, y, z, levels, colormap, show_colorbar, label)

Add a filled contour plot with color levels to the global figure

Arguments

Type IntentOptional Attributes Name
real(kind=8), intent(in), dimension(:) :: x
real(kind=8), intent(in), dimension(:) :: y
real(kind=8), intent(in), dimension(:,:) :: z
real(kind=8), intent(in), optional, dimension(:) :: levels
character(len=*), intent(in), optional :: colormap
logical, intent(in), optional :: show_colorbar
character(len=*), intent(in), optional :: label

public subroutine pcolormesh(x, y, z, shading, colormap, show_colorbar, label, vmin, vmax, edgecolors, linewidths)

Add a pseudocolor plot to the global figure (pyplot-style) Creates a colored mesh representation of 2D data

Arguments

Type IntentOptional Attributes Name
real(kind=8), intent(in), dimension(:) :: x
real(kind=8), intent(in), dimension(:) :: y
real(kind=8), intent(in), dimension(:,:) :: z
character(len=*), intent(in), optional :: shading
character(len=*), intent(in), optional :: colormap
logical, intent(in), optional :: show_colorbar
character(len=*), intent(in), optional :: label
real(kind=8), intent(in), optional :: vmin
real(kind=8), intent(in), optional :: vmax
real(kind=8), intent(in), optional, dimension(3) :: edgecolors
real(kind=8), intent(in), optional :: linewidths

public subroutine streamplot(x, y, u, v, density, linewidth_scale, arrow_scale, colormap, label)

Add a streamplot to the global figure (pyplot-style) Creates streamlines from a vector field

Arguments

Type IntentOptional Attributes Name
real(kind=8), intent(in), dimension(:) :: x
real(kind=8), intent(in), dimension(:) :: y
real(kind=8), intent(in), dimension(:,:) :: u
real(kind=8), intent(in), dimension(:,:) :: v
real(kind=8), intent(in), optional :: density
real(kind=8), intent(in), optional :: linewidth_scale
real(kind=8), intent(in), optional :: arrow_scale
character(len=*), intent(in), optional :: colormap
character(len=*), intent(in), optional :: label

public subroutine add_contour(x, y, z, levels, label)

Direct interface to figure's add_contour method for testing

Arguments

Type IntentOptional Attributes Name
real(kind=8), intent(in), dimension(:) :: x
real(kind=8), intent(in), dimension(:) :: y
real(kind=8), intent(in), dimension(:,:) :: z
real(kind=8), intent(in), optional, dimension(:) :: levels
character(len=*), intent(in), optional :: label

public subroutine add_contour_filled(x, y, z, levels, colormap, show_colorbar, label)

Direct interface to figure's add_contour_filled for testing

Arguments

Type IntentOptional Attributes Name
real(kind=8), intent(in), dimension(:) :: x
real(kind=8), intent(in), dimension(:) :: y
real(kind=8), intent(in), dimension(:,:) :: z
real(kind=8), intent(in), optional, dimension(:) :: levels
character(len=*), intent(in), optional :: colormap
logical, intent(in), optional :: show_colorbar
character(len=*), intent(in), optional :: label

public subroutine add_pcolormesh(x, y, z, shading, colormap, show_colorbar, label, vmin, vmax, edgecolors, linewidths)

Direct interface to figure's add_pcolormesh for testing

Arguments

Type IntentOptional Attributes Name
real(kind=8), intent(in), dimension(:) :: x
real(kind=8), intent(in), dimension(:) :: y
real(kind=8), intent(in), dimension(:,:) :: z
character(len=*), intent(in), optional :: shading
character(len=*), intent(in), optional :: colormap
logical, intent(in), optional :: show_colorbar
character(len=*), intent(in), optional :: label
real(kind=8), intent(in), optional :: vmin
real(kind=8), intent(in), optional :: vmax
real(kind=8), intent(in), optional, dimension(3) :: edgecolors
real(kind=8), intent(in), optional :: linewidths

public subroutine add_surface(x, y, z, colormap, show_colorbar, alpha, edgecolor, linewidth, label)

Add a 3D surface plot with optional colormapping Provides direct access to figure's 3D surface capabilities

Arguments

Type IntentOptional Attributes Name
real(kind=8), intent(in), dimension(:) :: x
real(kind=8), intent(in), dimension(:) :: y
real(kind=8), intent(in), dimension(:,:) :: z
character(len=*), intent(in), optional :: colormap
logical, intent(in), optional :: show_colorbar
real(kind=8), intent(in), optional :: alpha
real(kind=8), intent(in), optional, dimension(3) :: edgecolor
real(kind=8), intent(in), optional :: linewidth
character(len=*), intent(in), optional :: label