pygwalker icon indicating copy to clipboard operation
pygwalker copied to clipboard

Histogram by percentage (but not by absolute value)

Open ibobak opened this issue 1 year ago • 1 comments

As a data scientist, very often I make many histogram plots by many dimensions. I often compare distributions with each other by looking at side-by-side histograms, but aligning them by percentage - same as https://seaborn.pydata.org/generated/seaborn.histplot.html stat = probability or proportion: normalize such that bar heights sum to 1

But in your case this is problematic: image

ibobak avatar Mar 19 '24 13:03 ibobak

@ibobak thanks for your feedback. I think there are two parts in your current questions.

  1. compare the distribution in different facet.
  2. turn the distribution to percentage.

Currently for comparing distribution, you can set the scale of y axis to be indepent with each other. Here is a tutorial video:

https://github.com/Kanaries/pygwalker/assets/22167673/acf41d8b-629a-4abc-a78d-a712c61f0de4

ObservedObserver avatar Mar 19 '24 14:03 ObservedObserver