graphinglib.Histogram.to_desmos#
- Histogram.to_desmos(decimal_precision: int = 2, to_clipboard: bool = False) str[source]#
Gives every bin’s upper center in a Desmos-readable format. The outputted string can then be pasted into a single Desmos cell and the object’s data will be displayed.
- Parameters:
- decimal_precisionint, optional
Specifies the number of decimals of the formatted points. Defaults to 2.
- to_clipboardbool, optional
Specifies whether the points should be directly copied to the user’s clipboard in addition to being returned as a string. Defaults to False.
- Returns:
- formatted pointsstr
A list of tuples representing every data point.