histogram Questions

3

Solved

I am trying to combine percentage histogram with facet_wrap, but the percentages are not calculated based on group but all data. I would like each histogram to show distribution in a group, not rel...
Parisian asked 7/10, 2018 at 16:0

3

Solved

Here is the histogram To generate this plot, I did: bins = np.array([0.03, 0.3, 2, 100]) plt.hist(m, bins = bins, weights=np.zeros_like(m) + 1. / m.size) However, as you noticed, I want to plo...
Calices asked 3/11, 2015 at 11:6

5

Solved

As far as I know the option Log=True in the histogram function only refers to the y-axis. P.hist(d,bins=50,log=True,alpha=0.5,color='b',histtype='step') I need the bins to be equally spaced in l...
Bohon asked 28/7, 2011 at 7:55

7

I am trying to plot a histogram using seaborn. When I try to set kde=True this error is returned: ValueError: Multi-dimensional indexing (e.g. obj[:, None]) is no longer supported. Convert to a num...
Given asked 5/4, 2023 at 11:55

6

If I have a list of y-values that correspond to bar height and a list of x-value strings, how do I plot a histogram using matplotlib.pyplot.hist? Related: matplotlib.pyplot.bar.
Lely asked 18/10, 2015 at 21:46

7

Solved

I want to create a CDF with NumPy, my code is the next: histo = np.zeros(4096, dtype = np.int32) for x in range(0, width): for y in range(0, height): histo[data[x][y]] += 1 q = 0 cdf = list()...
Samhita asked 17/5, 2012 at 17:44

3

Solved

I need to generate bins for the purposes of calculating a histogram. Language is C#. Basically I need to take in an array of decimal numbers and generate a histogram plot out of those. Haven't be...
Ryurik asked 5/3, 2010 at 15:40

2

Solved

BigQuery with Legacy SQL has a pretty convenient QUANTILES function to quickly get a histogram of values in a table without specifying the buckets by hand. I can't find a nice equivalent in aggreg...
Colchicum asked 10/5, 2017 at 13:43

4

Solved

I have data (pd Series) that looks like (daily stock returns, n = 555): S = perf_manual.returns S = S[~((S-S.mean()).abs()>3*S.std())] 2014-03-31 20:00:00 0.000000 2014-04-01 20:00:00 0.000000...
Accipitrine asked 29/7, 2016 at 4:31

10

Suppose I have a list of items, like: ['apple', 'red', 'apple', 'red', 'red', 'pear'] I want a dictionary that counts how many times each item appears in the list. So for the list above the result...
Plainlaid asked 16/8, 2010 at 19:19

5

Solved

I want to create the next histogram density plot with ggplot2. In the "normal" way (base packages) is really easy: set.seed(46) vector <- rnorm(500) breaks <- quantile(vector,seq(0,1,by=0....
Sporophyte asked 11/1, 2014 at 11:25

5

plt.hist's density argument does not work. I tried to use the density argument in the plt.hist function to normalize stock returns in my plot, but it didn't work. The following code worked fine for...
Verism asked 7/4, 2019 at 3:52

3

Solved

refer to julia-lang documentations : hist(v[, n]) → e, counts Compute the histogram of v, optionally using approximately n bins. The return values are a range e, which correspond to the edges ...
Lyda asked 7/9, 2015 at 10:5

3

Solved

I have some x and y data, with which I would like to generate a 3D histogram, with a color gradient (bwr or whatever). I have written a script which plot the interesting values, in between -2 and...
Macey asked 18/9, 2018 at 11:11

5

According to Prometheus documentation in order to have a 95th percentile using histogram metric I can use following query: histogram_quantile(0.95, sum(rate(http_request_duration_seconds_bucket[5m...
Billetdoux asked 14/3, 2019 at 12:3

2

Solved

I have plotted a histogram and was expecting to see the outlines of my bars but this is not the case. I'm using the following code: import matplotlib.pyplot as plt from numpy.random import normal ...
Shackleford asked 11/3, 2017 at 22:58

4

Solved

I'm making a fairly simple histogram with pandas using results.val1.hist(bins=120) which works fine, but I really want to have a log scale on the y axis, which I normally (probably incorrectly) do...
Nord asked 9/1, 2014 at 23:58

4

Solved

I am plotting a histogram, and I have three datasets which I want to plot together, each one with different colours and linetype (dashed, dotted, etc). I am also giving some transparency, in order ...
Byron asked 8/2, 2015 at 19:14

4

I am using the following code, trying to plot the histogram of every column of a my pandas data frame df_in as subplot of a big figure. %matplotlib notebook from itertools import combinations impo...
Azygous asked 22/9, 2016 at 18:11

2

Solved

Seaborn distplot is now deprecated and will be removed in a future version. It is suggested to use histplot (or displot as a figure-level plot) as an alternative. But the presets differ between dis...
Label asked 21/5, 2021 at 14:13

2

Hi I was trying to create histogram buckets but in Springboot 2 is it possible to create custom buckets or equal interval buckets something like below le="0.005", le="0.01" , le="0.025" , le="0.0...
Portia asked 9/1, 2020 at 5:41

9

Solved

Let's say I have a database column 'grade' like this: |grade| | 1| | 2| | 1| | 3| | 4| | 5| Is there a non-trivial way in SQL to generate a histogram like this? |2,1,1,1,1,0| where 2 means th...
Holm asked 27/1, 2009 at 21:41

2

Solved

I'm trying to plot an histogram for one variable with ggplot2. Unfortunately, the default binwidth of ggplot2 leaves something to be desired: I've tried to play with binwidth, but I am unable to...
Waxwing asked 5/8, 2014 at 18:52

2

I'm making histograms using matplotlib's hist() function or bar(), and I want to use >10,000 bins (one bin to represent the counts at each coordinate of a large entity). Is there any way to crea...
Verbena asked 20/8, 2014 at 0:11

6

I would like to draw a 3D histogram (with gnuplot or octave) in order to represent my data. lets say that I have a data file in the following form: 2 3 4 8 4 10 5 6 7 I'd like to draw nine col...
Poignant asked 12/6, 2014 at 9:27

© 2022 - 2024 — McMap. All rights reserved.