XLPack for Matplotlib Experimental Version 0.1
Reference Manual
Loading...
Searching...
No Matches

◆ Colorbar()

Function Colorbar ( Mappable As  PyObject,
Optional Cax As  PyObject,
Optional Ax As  PyObject,
Optional KwArgs As  String = "" 
)

Add colorbar to plot

Purpose
Add a colorbar to a plot.
Returns
PyObject (Colorbar).
(On error, Nothing is returned)
Parameters
[in]MappableAxesImage, ContourSet, etc. described by this colorbar.
[in]Cax(Optional)
Axs into which the colorbar will be drawn. If None, then a new Axs is created and the space for it will be stolen from the Axs(s) specified in Ax. (default = None)
[in]Ax(Optional)
The one or more parent Axs from which space for a new colorbar Axs will be stolen. This parameter is only used if Cax is not set. (default = None)
[in]KwArgs(Optional)
Optional keyword parameters. (default = "")
Example
See example of Contourf.