1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Latex : Making a Histogram

  1. Dec 2, 2014 #1
    1. The problem statement, all variables and given/known data
    I need to create a histogram in Latex.
    I know how to do this,
    I only know how to do it if I have a limited number of points so I want it so that I can get a
    computer program to generate a list of numbers and save them to a file and then I can import this to Latex and use it this way in the Histogram.

    2. Relevant equations

    3. The attempt at a solution





    \psset{xunit = 2}
    plotstyle = bar,
    barwidth = 0.8,
    linecolor = red,
    fillstyle = solid,
    fillcolor = blue!70
    Dx = 0.5,
    xticksize = -4pt 0


    This is what I am currently using to generate the histogram.
    I have a computer program that stores the frequency in which a certain number occurs.
    So, if my range in my program was from -10 to 10 it would tell me how many times in this range each number occurred for a certain number of n trials.

    How should I get my program to output this data to a file so that I can use it in this histogram?
  2. jcsd
  3. Dec 2, 2014 #2

    Ray Vickson

    User Avatar
    Science Advisor
    Homework Helper

    I suggest you re-direct your question to the CTAN website, where the TeX/LaTeX experts lurk. There may even be some existing free packages that do what you want, and the Texperts could tell you where to find them.

    Alternatively, go to the newsgroup "comp.text.tex" and see if the question has already been addressed.
    Last edited: Dec 2, 2014
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted