PieChart¶
-
class
qf_lib.plotting.charts.pie_chart.
PieChart
(data: qf_lib.containers.series.qf_series.QFSeries, slices_distance: float = 0.01, **plot_settings)[source]¶ Bases:
qf_lib.plotting.charts.chart.Chart
Pie chart util class, it can plot only QFSeries.
- Parameters
data (QFSeries) – The series to plot in the pie chart.
slices_distance (float) – The distance between slices. Default is 0.01
plot_settings – Options to pass to the
pie
function.
Methods
plot
(figsize, float] = None)Plots the chart.
-
plot
(figsize: Tuple[float, float] = None) → None[source]¶ Plots the chart. The underlying figure stays hidden until the show() method is called.
- Parameters
figsize (Tuple[float, float]) – The figure size to draw the chart at in inches. This is a tuple of (width, height) passed directly to matplotlib’s
plot
function. The values are expressed in inches.