Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to plot function like this.

if $x > 6000$ plot function $y = 6000+ \frac{x}{15}$ otherwise plot y = $6000$

Suggest me any open source plotting software that has linux version. I have tried KmPlot, KAlgebra, kst they does not seem to has such option.

KAlgebra supports ? ... : notation but when I enter, it says invalid syntax. If you know how to draw this funciton in

share|cite|improve this question
up vote 5 down vote accepted

You should check out gnuplot. It is in almost any Linux repository.

share|cite|improve this answer
I think I have to learn a lot for that. – Shiplu Jun 30 '12 at 13:38
Check this out: – ncmathsadist Jun 30 '12 at 13:48
I have solved it by using these commands. Now I want to know how can I keep the axis not messed up. – Shiplu Jun 30 '12 at 14:42

Check out GNU Octave. This code should work out

if 3 > 4 ezplot('x^2 + y^2 = 25'); else ezplot('x^2/4 + y^2 = 36'); end

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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