For my first real document, I have to create lorenz curves. Problem is, I'm pretty new to TeX and I have absolutely no clue about how I should go about this. A google search only reveals this has not been attempted by anyone else, so any help or pointers are welcome.

  • What do you have to plot the curves ? Equations ? Sets of values ? What you will need is the package pgfplot and you can use the axis environment. – LMT-PhD Apr 23 '14 at 16:50
  • As indicated LMT-PhD, determine your equations, sets of values, then look at this question and answers: tex.stackexchange.com/q/164991/31034 – ferahfeza Apr 23 '14 at 17:28
  • 1
    Welcome to TeX.SE! Do you have to create that curve from TeX or is it just the inclusion of such a curve from another program into a .tex file? – user31729 Apr 23 '14 at 17:40
  • @christian Hupfer, externally is totally fine, but I take that it is possible with only tex, so I will attempt that. – Azsgy Apr 23 '14 at 17:42

You can easily do that with pstricks: the pst-func package has a special command for that. From the doc:

enter image description here

| improve this answer | |
  • It took a while to understand what I was seeing, but this works very well. – Azsgy Apr 23 '14 at 17:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.