NC_plotcategoryΒΆ

NC_plotcategory plots a category plot with grouped bars. Invokes plotcategory to create the plot.

rvData = NC_plotcategory(ssNCFile, ssLabelChannel, svChannel)
rvData = NC_plotcategory(ssNCFile, ssLabelChannel, svChannel, oParameter)
rvData = NC_plotcategory(ncid, ssLabelChannel, svChannel)
rvData = NC_plotcategory(ncid, ssLabelChannel, svChannel, oParameter)

Return Value

rvData is a vector with dataset handles.

Parameters

ssNCFile

ssNCFile is the name of an NC file with the source data.

ncid

ncid is the handle of an NC file, returned by nc_create or nc_open. The file must be opened with write access.

ssLabelChannel

ssLabelChannel is a channel name for category labels. Real values will be converted to strings

svChannel

svChannel is string vector with channel names.

oParameter

oParameter is an object with optional parameters. See plotcategory for a list of parameters. Extra object elements can be specified:

Element Name Description Default Value
bAutoAxisTitle Set the axis title. 1

Example

obj = [. color_scale = "Blues", bAutoAxisTitle = 1];
obj.yTitle = "Power in kW";
obj.bLabel = 0;
ssNCFile = auto_ImportData(GetRootDirectory() + "samples\\energie.asc";
NC_plotcategory(ssNCFile, "Drehzahl", ["Nutzleistung", "Oelenergie", "Abgasenergie"], obj)

id-1900742