Mathematica Changing interval in Histogram, Mathematica

AI Thread Summary
To change the intervals in a histogram in Mathematica, users can specify the bin width directly using the syntax Histogram[{data}, binWidth]. For example, to create intervals of 0.1, the command would be Histogram[mydata, 0.1]. The documentation for this feature is available in the Mathematica Help files or on Wolfram's website, particularly for users with version 7 or later. Older versions may have different methods, but similar guidance can be found in the respective documentation. Adjusting the bin width allows for more representative data visualization in histograms.
SrEstroncio
Messages
60
Reaction score
0
Hello again. Sorry for all the posts.

I have a histogram of frequencies in Mathematica and the intervals on the x-axis are predefined and kind of unrepresentative. I changed the bin number (with 'Histogram[mydata, binnumber]') but I can't seem to find anything on the internet about changing the interval(example, my chart starts at 0 and ends at 2, it shows intervals of 0.5, when I want them to be about 0.1 or so). Help!
 
Physics news on Phys.org
IF you have version 7 your MMA Help documents this OR Wolfram documents this:
http://reference.wolfram.com/mathematica/ref/Histogram.html

Histogram[{x1, x2, ...}, w]
plots a histogram with bin width specification w.

If you have an older version then the answer is somewhat different but you can still find this documented by searching your MMA Help documents or Wolfram's site.
 

Similar threads

Replies
9
Views
7K
Replies
9
Views
2K
Replies
3
Views
2K
Replies
12
Views
4K
Replies
2
Views
6K
Replies
6
Views
3K
Replies
1
Views
5K
Replies
8
Views
11K
Replies
1
Views
9K
Replies
3
Views
2K
Back
Top