# Troubleshooting duplicated plots

Everytime I draw a plot (I tried in many different ways and the result is always the same) using the kernel I get it twice. The one I want and a copy.

I tried, for example, with this code:

f[t_,lam1_,lam2_] := lam1/(lam2-lam1) * 103 * (Exp[-lam1 t] - Exp[-lam2 t]);

Plot[f[t,1,1.1],{t,0,2}];


but even a simple Plot[Sin[x],{x,0,10}] yields the same result.

I get two identical plots instead of one. I cannot pinpoint when it started to act this way because I haven't used it in a while and now that I need it I get this weird behaviour.

I'm working on Mathematica 9 on Ubuntu Linux 12.04, Xfce graphic environment, and my configuration file (~/.Mathematica/Kernel/init.m) only contains the line <<JavaGraphics;

-
Can you check what the value of $DisplayFunction is? – Ｊ. Ｍ. Jun 12 at 15:22 Along the same lines, do you have something defined in $Pre, $PreRead, $PrePrint, $Post, etc. – rm -rf Jun 12 at 15:29 Print[$DisplayFunction] yields SystemPrivateJavaDisplay None of those other variables is set –  blue Jun 12 at 18:24
Can you comment out <<JavaGraphics  line from you init.m file and see if that changes things? –  rcollyer Jun 12 at 20:21
@rc commenting out that part I just get no output at all –  blue Jun 13 at 7:45