Skip to main content

Questions tagged [histograms]

Tag for questions about building histograms in Mathematica. Apart from generating the graphics, and prettifying them, this also includes methods to extract their data.

32 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8 votes
0 answers
121 views

Why is WeightedData slow?

I have been using WeightedData with Histogram, HistogramList, ...
anonymous's user avatar
  • 453
8 votes
0 answers
187 views

How to get DensityHistogram bins like GeoHistogram bins?

Version 11 introduced GeoHistogram. It creates bins that align the edges with certain shapes. DensityHistogram can also use ...
Edmund's user avatar
  • 42.4k
6 votes
0 answers
96 views

SetOptions[Plot, FIlling -> Axis] breaks SmoothHistogram of a CDF

Bug introduced in 12.1 or earlier and persists through 13.3 . UPDATE: I reached out to Wolfram, and they confirmed that it's a bug. I am using version 12.3. Here's a simple plot of some randomly ...
Brian's user avatar
  • 133
5 votes
0 answers
393 views

Histogram (automatic binning)

There are different methods for choosing widths of bins for a histogram, like Freedman-Diaconis rule. In Mathematica, without choosing a specific method, with the command ...
user avatar
5 votes
0 answers
133 views

Dynamic evaluation of Histogram

Can someone explain the following behavior exhibited by a combination of SetDelayed, Dynamic and ...
Sascha's user avatar
  • 8,469
3 votes
0 answers
944 views

Making a histogram with a log scale

Sorry for my poor english. I am really new in Mathematica. I have a data set and plot it in histogram, The whole script is following: ...
Shuoqi Li's user avatar
  • 185
2 votes
0 answers
84 views

Changing the color and thickness of smooth histograms of two sets curves on the same graph

I have a code (shown below) where I generate two different sets of data and plot the two sets as a smooth histogram on the same graph. The code works pretty well. What I'm having an issue with is ...
Sid Gopujkar's user avatar
2 votes
0 answers
278 views

How to create 2D ImageHistogram?

Using ImageHistogram I can find the frequency of each color value in an image. Applying the same, I can have a histogram of its gradient values. I wish to combine these two on a log scale such that X -...
user36426's user avatar
  • 3,365
1 vote
0 answers
36 views

Low EPS export quality for Histogram/BarChart

I like to export a figure as an EPS and continue to edit it afterwards (e.g., with inkscape). In the past, I was only exporting plots and everything worked fine: figures had high quality, and I could ...
Philipp Strasberg's user avatar
1 vote
0 answers
147 views

How to make a histogram-like plot?

Consider the following data: ...
John Taylor's user avatar
  • 5,851
1 vote
0 answers
34 views

How to use ScalingFunctions for multiple superimposed histograms?

Consider the simple MWE ...
mattiav27's user avatar
  • 6,747
1 vote
0 answers
53 views

Making a histogram of a dictionary

I am trying to make a histogram of the dictionary where each bin is how many characters in a word, and the height is the frequency of words with that many characters. I'd like to make one for the ...
Carlos Mario Cabrera's user avatar
1 vote
0 answers
379 views

Histogram doesn't show all bins

I have data that runs from values of 0 all the way to 40000. When I plot the histogram of this data using the Histogram[] command I get this: I've split the data up into those that are below 1500 ...
reemodels's user avatar
  • 511
1 vote
0 answers
61 views

Getting a PDF from a NonlinearFitModel

With the help of @JimB, I could fit some experimental data with a CDF using NonLinearFitModel. The set of data is the following: ...
José Augusto Devienne's user avatar
1 vote
0 answers
75 views

Can I make the z-axis on the SmoothHistogram3D output show quantity rather than probability?

In SmoothHistogram3D, the x- and y-axes are in the form of the original input; 0 maps to 0 and 1 maps to 1, etc. However, the z-axis returns a probability rather ...
user3769181's user avatar
1 vote
0 answers
166 views

Histogram - large data set

Hi everyone I have various text files that contain a large number of data points that have a broad range from negative to positive and even numbers that are small on the order of 10^-3 all the way to ...
John Kyle's user avatar
1 vote
0 answers
397 views

Difference of ImageHistogram and Histogram of gray scale image

I have a gray scale image showing noise and would like to plot the histogram. The image is: A. When I use ImageHistogram I get the histogram with: ...
HuRrIC4N3's user avatar
1 vote
0 answers
259 views

Comparing heavy tailed and non-heavy tailed distribution using Mathematica

I have data from a heavy tailed distribution (see picture 1) and a non-heavy tailed distribution (see picture 2) and want to compare it using a histogram on log-scale. However the picture 3 does not ...
warsaga's user avatar
  • 551
1 vote
0 answers
136 views

Automatically sizing elements in a DistributionChart with custom ChartElementFunction

This is a follow-up to some related questions: 46770 and 60600. I'd like to make a DistributionChart where the elements are histograms with my own custom settings. ...
Daniel Weissman's user avatar
1 vote
0 answers
507 views

Problems with log-log histograms

I'm using a custom function to create Log-Log Histograms of my data. It uses the CustomTicks` package (in LevelScheme, http://scidraw.nd.edu/levelscheme/) to display Log Ticks. ...
jlmr's user avatar
  • 155
0 votes
0 answers
37 views

Color Range of Chart Style in DensityHistogram and How to Annotate?

I have experimental data in the structure of thousands of {x,y} set. So, I want to get the 2D histogram of x and y. I found the Function called DensityPlot and DensityHistogram. The former seemed that ...
rani's user avatar
  • 365
0 votes
1 answer
118 views

Bin edges from BinCounts

I'm working with a set of data binning values. I'm using bincount and binlists to find bins that meet a certain criteria and then testing a list to see which are within one of those bins. This list of ...
kernel density's user avatar
0 votes
0 answers
71 views

Plot BarChart and fixing the bars

I have 3 problems plotting the amplitudes of eigenvectors of a matrix H vertically (column). e.g. ...
Med Ch's user avatar
  • 117
0 votes
0 answers
60 views

Exporting histogram to PDF with log scaled heights does not seem to work on 11.2

I'm on version 11.2 and using Windows 10. Here is some data and a histogram of it with log scaled heights. ...
Kiro's user avatar
  • 1,521
0 votes
0 answers
44 views

Was there ever a package called "BinThis"?

I'm working my way through someone's old code and rebuilding it. In one of the notebooks it appears they used a package called "BinThis" which I cannot seem to find any documentation for or ...
chicago.physicist's user avatar
0 votes
0 answers
32 views

How can I keep a distance to the abscissa axis when specifying an AxisLabel in the form "text"?

These observations are from Mathematica 12.3.0.0 on Linux x86 (64 Bit). With AxisLabel->{"A", "number"} the character ...
Adalbert Hanßen's user avatar
0 votes
0 answers
85 views

How Do I can Generate a CDF Plot from Below PDF code and also it Histogram Plot?

I have tried many times to plot a CDF from the following PDF code , But I failed to get that however I have used the command CumulantGeneratingfunction[, ] but it coudn't work , any Help ?and also the ...
zeraoulia rafik's user avatar
0 votes
0 answers
62 views

How can I fit my histogram with appropriate distribution?

I got this list: ...
AlainP's user avatar
  • 1
0 votes
0 answers
146 views

Mixture distribution fitting containing a uniform distribution

I have a dataset that is clearly the mixture of 3 known distributions which can be generated as follows: ...
tquarton's user avatar
  • 427
0 votes
0 answers
83 views

Plot moments as a function of bin size?

I need to plot moments of a distribution as a function of bin size to show whether or not the tails of this data set are Gaussian. My data is in [pastebin.com/nzCs5BwE.][1] Here is how I've plotted ...
K. Schneider's user avatar
0 votes
0 answers
73 views

Assign observations into classes using Sturges rule

I have a list of 562 observations that I would like to assign to classes (bins) using Sturges rule. What is the best way to implement this in Mathematica?
Saqib Ali's user avatar
  • 275
-2 votes
1 answer
638 views

How to get data from Histogram (HistogramList) for making plot?

I have a data I need to calculate the probability of the second column of my data in different bins and then getting(-LOG) from this probability and plot with the each bin related to it. my data is ...
Parviz's user avatar
  • 403