Matplotlib logarithmic scale with zero value [duplicate]
问题 This question already has an answer here: Logscale plots with zero values in matplotlib 1 answer I have a very large and sparse dataset of spam twitter accounts and it requires me to scale the x axis in order to be able to visualize the distribution (histogram, kde etc) and cdf of the various variables (tweets_count, number of followers/following etc). > describe(spammers_class1$tweets_count) var n mean sd median trimmed mad min max range skew kurtosis se 1 1 1076817 443.47 3729.05 35 57.29