fortplot_plot_contours Module

Contour and pcolormesh plotting functionality

Provides: - Basic contour plots - Filled contour plots with colormaps - Pcolormesh (pseudocolor mesh) plots - Colormap and colorbar support



Subroutines

public subroutine add_contour_impl(self, x_grid, y_grid, z_grid, levels, label)

Add basic contour plot

Arguments

Type IntentOptional Attributes Name
class(figure_t), intent(inout) :: self
real(kind=wp), intent(in), contiguous :: x_grid(:)
real(kind=wp), intent(in), contiguous :: y_grid(:)
real(kind=wp), intent(in), contiguous :: z_grid(:,:)
real(kind=wp), intent(in), optional :: levels(:)
character(len=*), intent(in), optional :: label

public subroutine add_contour_filled_impl(self, x_grid, y_grid, z_grid, levels, cmap, show_colorbar, label, colormap)

Add filled contour plot with colors

Read more…

Arguments

Type IntentOptional Attributes Name
class(figure_t), intent(inout) :: self
real(kind=wp), intent(in), contiguous :: x_grid(:)
real(kind=wp), intent(in), contiguous :: y_grid(:)
real(kind=wp), intent(in), contiguous :: z_grid(:,:)
real(kind=wp), intent(in), optional :: levels(:)
character(len=*), intent(in), optional :: cmap
logical, intent(in), optional :: show_colorbar
character(len=*), intent(in), optional :: label
character(len=*), intent(in), optional :: colormap

public subroutine add_pcolormesh_impl(self, x, y, c, cmap, vmin, vmax, edgecolors, linewidths, colormap)

Add pseudocolor mesh plot

Read more…

Arguments

Type IntentOptional Attributes Name
class(figure_t), intent(inout) :: self
real(kind=wp), intent(in), contiguous :: x(:)
real(kind=wp), intent(in), contiguous :: y(:)
real(kind=wp), intent(in), contiguous :: c(:,:)
character(len=*), intent(in), optional :: cmap
real(kind=wp), intent(in), optional :: vmin
real(kind=wp), intent(in), optional :: vmax
character(len=*), intent(in), optional :: edgecolors
real(kind=wp), intent(in), optional :: linewidths
character(len=*), intent(in), optional :: colormap