Skip to main content
1 vote
1 answer
92 views

I am working with a dataset and am trying to correlate 2 variables and use the third variable as a weight within a numpy 2d histogram. However, there is a lot of noise within the output histogram and ...
Cumulus303's user avatar
1 vote
0 answers
231 views

I have some data that I want to plot as a ternary hexbin or tribin plot. When I plot it using a scatter plot, it looks like I expect it to. Here is the scatter plot of the data I expect to see. ax....
Duncan Moseley's user avatar
0 votes
1 answer
37 views

This is my dataframe: df <- data.frame( confidence = c(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1), A = c(44615, 4767, 2035, 834, 374, 186, 86, 35, 9, 4, 4), B = c(133995, 3059, 1152, ...
Mohamed Aziz Hadj Nasr's user avatar
1 vote
1 answer
550 views

I have values from a Monte Carlo simulation. now I am supposed to plot the results using a bivariate Gaussian. Since it is experimental data on a specific topic, I was given the empirical formula of ...
Giovanni Curiazio's user avatar
2 votes
1 answer
319 views

I am a physicist studying about super-galactic objects and I feel like it is difficult to make 2D histogram based on what I want to make. To avoid confusion and getting answer what I already know. I ...
Kyle's user avatar
  • 90
1 vote
0 answers
17 views

I am writing a Python version of a Matlab program that does 2D histogram. I am making a program that calculates a histogram using the hist3 function in Matlab. And in Python I use the numpy function ...
milkz-boi's user avatar
2 votes
2 answers
327 views

I'm trying to run this very simple example from numpy page regarding histogram2d: https://numpy.org/doc/stable/reference/generated/numpy.histogram2d.html. from matplotlib.image import NonUniformImage ...
081N's user avatar
  • 75
1 vote
0 answers
152 views

I'm testing plotly.js 2D Histogram contour to show the pressures of a foot, but it changes a lot the shape and it doesn't look like a foot pressure. There is the Codepen to test it, as you can see ...
Sebas Bejenaru's user avatar
1 vote
0 answers
137 views

I m a student and I m in a huge trouble, I am trying to visualize a plot of 2 variables x and y the number of data points in x and y are like 100 thousand or similar and the data in is float and ...
Ankur Giri's user avatar
0 votes
1 answer
305 views

I have generated a bokeh 2d-histogram plot as mentioned in this StackOverflow answer. The code and respective image is given below. In the code, the count of data-points per bin is in the entries in H....
Anirban Chakraborty's user avatar
1 vote
1 answer
443 views

The documentation for scipy's binned_statistic_2d function gives an example for a 2D histogram: from scipy import stats x = [0.1, 0.1, 0.1, 0.6] y = [2.1, 2.6, 2.1, 2.1] binx = [0.0, 0.5, 1.0] biny = [...
gammapoint's user avatar
  • 1,163
0 votes
1 answer
156 views

I'm using a 3 dimensional dataset from a simulation. It contains the coordinates of some gaseous particles and their associated magnetic field vector. I'm trying to plot a 2D histogram of some region ...
Martin Phar AC Fournier's user avatar
0 votes
1 answer
967 views

I need my plots to completely fill with color. Adjusting xlim, ylim, only works works after, but it is apparently past the step where the plot is completely filled. In cases where data spans (0,360), (...
Josh's user avatar
  • 11
2 votes
1 answer
6k views

I'm using the hist2d function of matplotlib.pyplot, giving it input some coordinates (x,y). I would like, after having defined the histogram, to get the center of each bin, i.e., the coordinates of ...
Cla's user avatar
  • 181
0 votes
0 answers
804 views

I am able to extract a TH2 histogram from ROOT using the h = f[...].to_numpy() of uproot. This I can then plot with mplhep as a hist2dplot(h). However, I have the problem that I would like to rebin ...
nyw's user avatar
  • 195

15 30 50 per page
1
2 3 4 5
9