MCPcopy Create free account
hub / github.com/spotify/chartify / _kde_example2

Function _kde_example2

chartify/examples.py:933–946  ·  view source on GitHub ↗

# Parallel with datetime x axis

(data)

Source from the content-addressed store, hash-verified

931
932@_print_source
933def _kde_example2(data):
934 """# Parallel with datetime x axis"""
935 # Plot the data
936 ch = chartify.Chart(blank_labels=True, y_axis_type="density")
937 ch.set_title("KDE plot + Histogram")
938 ch.plot.kde(data_frame=data, values_column="unit_price", color_column="fruit")
939 ch.style.color_palette.reset_palette_order()
940 ch.plot.histogram(
941 data_frame=data,
942 values_column="unit_price",
943 color_column="fruit",
944 method="density",
945 )
946 ch.show(_OUTPUT_FORMAT)
947
948
949plot_histogram.__doc__ = _core.plot.PlotNumericDensityXY.kde.__doc__

Callers 1

plot_kdeFunction · 0.85

Calls 5

set_titleMethod · 0.95
showMethod · 0.95
kdeMethod · 0.80
reset_palette_orderMethod · 0.80
histogramMethod · 0.80

Tested by

no test coverage detected