# Logical function plotting software in Linux

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

-

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

-
I think I have to learn a lot for that. –  Shiplu Jun 30 '12 at 13:38
Check this out: duke.edu/~hpgavin/gnuplot.html –  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
if 3 > 4 ezplot('x^2 + y^2 = 25'); else ezplot('x^2/4 + y^2 = 36'); end