Private API

This page lists non-exported (internal) symbols of CTFlowsPlots.


From CTFlowsPlots

_PLOT_LABEL_FONT_SIZE [Constant]

CTFlowsPlots._PLOT_LABEL_FONT_SIZEConstant

Default font size for axis labels in the CTFlowsPlots extension.

Returns

  • 10: The font size in points.

Notes

  • Internal constant used by plotting methods to set consistent label font sizes.
  • Applied via the xguidefontsize and yguidefontsize keyword arguments in Plots.plot and Plots.plot!.

See also: _PLOT_TITLE_FONT.

_PLOT_TITLE_FONT [Constant]

CTFlowsPlots._PLOT_TITLE_FONTConstant

Default font for plot titles in the CTFlowsPlots extension.

Returns

  • A Plots font object with size 10 and the default font family.

Notes

  • Internal constant used by plotting methods to set consistent title fonts.
  • Applied via the titlefont keyword argument in Plots.plot and Plots.plot!.

See also: _PLOT_LABEL_FONT_SIZE.

_ham_sol_to_arrays [Function]

CTFlowsPlots._ham_sol_to_arraysFunction

Internal helper to convert a Hamiltonian solution to time, state, and costate arrays.

Arguments

  • sol::Trajectories.HamiltonianVectorFieldTrajectory: The Hamiltonian solution to convert.

Returns

  • Tuple{AbstractVector, AbstractMatrix, AbstractMatrix}: A tuple of (time vector, state matrix, costate matrix).

Notes

  • Uses reduce(hcat, ...)' for robust handling of 1D states.
  • Uses state(sol) and costate(sol) to explicitly obtain the state and costate functions.
  • Internal function, not part of public API.

_sol_to_arrays [Function]

CTFlowsPlots._sol_to_arraysFunction
_sol_to_arrays(
    sol::CTFlows.Trajectories.VectorFieldTrajectory
) -> Tuple{Any, Any}

Internal helper to convert a solution to time and state arrays.

Arguments

  • sol::Trajectories.VectorFieldTrajectory: The solution to convert.

Returns

  • Tuple{AbstractVector, AbstractMatrix}: A tuple of (time vector, state matrix).

Notes

  • Uses reduce(hcat, ...)' for robust handling of 1D states.
  • Uses state(sol) to explicitly obtain the state function.
  • Internal function, not part of public API.