TextDecorator¶
-
class
qf_lib.plotting.decorators.text_decorator.
TextDecorator
(text: str, x: qf_lib.plotting.decorators.coordinate.Coordinate, y: qf_lib.plotting.decorators.coordinate.Coordinate, key: str = None, **plot_settings: Any)[source]¶ Bases:
qf_lib.plotting.decorators.chart_decorator.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.