TextDecorator
- class qf_lib.plotting.decorators.text_decorator.TextDecorator(text: str, x: Coordinate, y: Coordinate, key: Optional[str] = None, **plot_settings: Any)[source]
Bases:
ChartDecorator
Adds text to the Chart at given coordinates (e.g. the label for data point).
- Parameters:
text (str) – Text which should be added to the chart
x (Coordinate) – x coordinate for the text
y (Coordinate) – y coordinate for the text
key (str) – see: ChartDecorator.__init__#key
plot_settings – additional arguments which will be passed to the matplotlib plotting function (see: http://matplotlib.org/api/text_api.html#matplotlib.text.Text)
Methods:
decorate
(chart)Modifies the axes object taken from the chart (e.g.