i have plotting data using matplotlib plot.hist and i have some extreme data that outlie…
- User
i have plotting data using matplotlib plot.hist and i have some extreme data that outlie from normal data and make chart bad
like most of my data is between -50 to 50 and there are some rare datas like 12000 ,5000 and...
is there any way to make chart logarithmic or something so we can have all normal and extreme data in proper scale?
- Assistant
Yes, you can adjust the scale of your histogram to better represent data that spans a broad range, including outliers, by applying a logarithmic scale. However, it's essential to note that applying a log scale to a histogram can be slightly more nuanced than when dealing with other types of plots, because with a histogram, it typically makes more sense to apply the logarithmic scale to the y-axis (which represents the frequency/count of occurrences within a bin) rather than the x-axis (which represents the range of the data values). This is because the log scale on the y-axis helps to visualize the differences in frequency for bins that have a wide range of values, from very low to very high counts.