Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I have a do loop in which I "Put" a ListPlot of a list in every iteration by doing


While the process is running and is still not finished, I get the desired plots in "file", but once the process is finished, I do not get the plot but the numerical values of the list with something like

{"      0.0134559544171447}", " {298.", " 0.013484438740159787}", 
  " {299.", " "}, {"      0.013512496857553435}", " {300.", 
" 0.013540123145712023}}]}", " {}}}", 
" "}, {"  {AspectRatio -> GoldenRatio^(-1)", " Axes -> True", 
" AxesOrigin -> {0", " 0.0098}", " "}, {"   PlotRange -> {{0.", 
" 300.}", " {0.00977737893161915", " 0.016994445972500355}}", 
" "}, {"   PlotRangeClipping -> True", 
" PlotRangePadding -> "}, {"    {Scaled[0.02]", 
" Scaled[0.02]}}]}"}}

this is just a small piece of the output. I am working in the background by using "nohup" and running an .m file (in case it might have something to do with my issue).

What do I have to do so that I always get the ListPlots as output?


share|improve this question
why not just output the data(in your case is list)?when you need plot ,import data and then listplot. –  Chenminqi Mar 24 at 9:45
yea, thats an option... –  Mencia Mar 24 at 10:09
You might be happier with Export rather than Put –  m_goldberg Mar 24 at 10:13
I dont know what you are doing, but for me Put[Listplot[],file] puts in the file the same as you get with ListPlot[..]//InputForm , and Get[file] displays the plot. Show your actual code if you still need help, though just saving the data is probably a better idea anyway –  george2079 Mar 24 at 14:16

Your Answer


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

Browse other questions tagged or ask your own question.