initialize_backend Subroutine

public subroutine initialize_backend(backend, backend_type, width, height)

Initialize the appropriate backend based on type

@param backend: Polymorphic backend to initialize @param backend_type: Type of backend ('png', 'pdf', 'ascii') @param width: Canvas width @param height: Canvas height

Arguments

Type IntentOptional Attributes Name
class(plot_context), intent(out), allocatable :: backend
character(len=*), intent(in) :: backend_type
integer, intent(in) :: width
integer, intent(in) :: height