mlreportgen.report.Section Class
Namespace: mlreportgen.report
Superclasses: mlreportgen.report.Reporter
Section reporter
Description
Create a section reporter that adds a section to the report. This class inherits from
mlreportgen.report.Reporter
The mlreportgen.report.Section
class is a handle
class.
Creation
Description
section = Section
creates a reporter that generates a report
section. You can add the section reporter to a report, chapter, or another section. If you
add a section to a report, the section starts on a new, portrait page with default margins
and a page number in the footer. The page number equals the previous page number plus one.
If you add the section to a chapter or another section, the reporter creates a subsection
that continues on the current page. The size of the title diminishes by default with the
depth of the section in the report hierarchy up to five levels deep. Titles of sections
lower than 5 are not numbered and have the same font size as level 5.
section = Section(title)
creates a report section containing a
section title with the specified title text. A hierarchical section number prefixes the
title text by default. For example, the default number of the first subsection in the
second chapter is 2.1. The font size of the title diminishes by default with the depth of
the section in the report hierarchy up to five levels deep.
sets properties using name-value pairs. You can specify multiple name-value pair arguments
in any order.section
= Section(Name=Value
)
Properties
Methods
Examples
Version History
Introduced in R2017b