Questions tagged [histogram2d]
131 questions
0
votes
0 answers
Save binned data from numpy.histogram2d to text file
I want to do a 2d histogram using python and save the result as a three columns data file(x, y, histogram). The 2d data just looks like this:
x y
-0.609 -3.042
-0.528 -2.861
-1.219 -2.938
-0.196 -2.007
0.173 -3.128
1.600 …

Dd H
- 331
- 1
- 3
- 9
0
votes
1 answer
Calculate histogram graphic columns height
I cannot figure out the easiest formula to calculate the height of column in histogram graphic.
For example, I have an array of data
var data = [82, 61, 88, 245, 201, 619, 735, 1099, 1088, 1477, 1531, 1717, 1263, 1674, 1254, 1134, 718, 887, 748,…

Kosmetika
- 20,774
- 37
- 108
- 172
0
votes
1 answer
Remove vertical lines from the plot d3.js
I am using d3.js to plot the histograms. I want to remove the vertical lines that are connected to the plot at the start point and end point of the plot:
https://i.stack.imgur.com/CpP6C.png
Thank you in advance ;)
(function(window, document,…

Mateusz Mateja
- 269
- 2
- 4
- 14
0
votes
1 answer
2D Histogram in R: Converting from Count to Frequency within a Column
Would appreciate help with generating a 2D histogram of frequencies, where frequencies are calculated within a column. My main issue: converting from counts to column based frequency.
Here's my starting code:
# expected…

Jac
- 5
- 5
0
votes
0 answers
2D histogram of 1D function of random number
I have a 1D function of N values. I want to make a 2D histogram so that I get an image of nx*ny pixels and then cut the image summing along 1 dimension. The function before and after should be the same. I tried with a gaussian but I am missing a…

SUV
- 53
- 6
0
votes
1 answer
Issue with numpy's histogram2d and colormaps
So on the right I've got eigenvalue spectra of 1000 matrices scatter plotted over each other. On the left I wanted get a histogram oder density function to where eigenvalues occur and how often.
The histogram is done with numpy:
bins = 200
d =…

alice
- 254
- 2
- 4
- 9
-1
votes
2 answers
How do I use mathlibplot.hist with x and y values using bins=40 in Python 3?
I have a large list of data points of x and y values that I need to put into a histogram with 40 bins but mathlibplot.hist is only letting me enter 1 variable with bins. I've tried hist2d as well but it's not very clean. Any help would be…

Cathal McAleer
- 1
- 1
-1
votes
1 answer
Decrease white space among bars in Matplotlib histograms
I generated the following histogram:
I wish to compact the histogram, i.e. reducing the white space between bars (for instance, between 0.8-0.85 and 0.85-0.9).
In this respect, a solution that increase the width of the bars is not convenient for…

MM92x
- 548
- 1
- 4
- 25
-1
votes
1 answer
plotting density map per km2 pr year
i have a csv file containing data of 6 years ( date, longitude, latitude,value ) i plotted the density map using histogramm2d and contourf per km ,i got a beautiful map, but i believe that i plotted the density per km per 6year, so i need to take…

Mar
- 419
- 1
- 7
- 19
-1
votes
1 answer
CUDA histogram2d not working
Due to a seeming lack of a decent 2D histogram for CUDA (that I can find... pointers welcome), I'm trying to implement it myself with pyCUDA.
Here's what the histogram should look like (using Numpy):
Here's what I've got so far:
code =…

scnerd
- 5,836
- 2
- 21
- 36
-2
votes
2 answers
Plotting two different image histograms as a single 2D histogram plot
I'm looking to plot the histogram of one uint16 image on the x axis and the histogram of another uint16 image on the y axis, such that I get a colormap of the relationship between them as a 2D plot.
I have tried to form two seperate histograms and…
user12540304