Import data from .file and listlineplot

ok

Look at your file number 9. It has spaces “E + 01” and this is not “E+01” like other files.
This makes Mathematica fail.

I am working. I will refresh this message when I find more problems.

Files 9,10,11,…21 all have spaces “E + 01”.
These make Mathematica fail.
Can you remove those spaces and try again

I am working. I will refresh this message when I find more problems.

In[5]:= list1 = 
 Drop[Import[
   "C:\\Users\\cinar\\Documents\\Thesis_Numerics\\epsilon\\epsilon_0\\\
profile_shapes.0020", "Table"], 2]

Out[5]= {{0., 5.34074}, {0.0628319, 5.34003}, {0.125664, 
  5.33792}, {0.188496, 5.33441}, {0.251327, 5.32954}, {0.314159, 
  5.32334}, {0.376991, 5.31586}, {0.439823, 5.30715}, {0.502655, 
  5.29727}, {0.565487, 5.28628}, {0.628319, 5.27426}, {0.69115, 
  5.26128}, {0.753982, 5.2474}, {0.816814, 5.2327}, {0.879646, 
  5.21725}, {0.942478, 5.20113}, {1.00531, 5.1844}, {1.06814, 
  5.16714}, {1.13097, 5.14941}, {1.19381, 5.13128}, {1.25664, 
  5.1128}, {1.31947, 5.09404}, {1.3823, 5.07506}, {1.44513, 
  5.05591}, {1.50796, 5.03665}, {1.5708, 5.01734}, {1.63363, 
  4.99803}, {1.69646, 4.97877}, {1.75929, 4.95962}, {1.82212, 
  4.94065}, {1.88496, 4.92189}, {1.94779, 4.90342}, {2.01062, 
  4.88529}, {2.07345, 4.86757}, {2.13628, 4.85032}, {2.19911, 
  4.8336}, {2.26195, 4.81749}, {2.32478, 4.80205}, {2.38761, 
  4.78737}, {2.45044, 4.7735}, {2.51327, 4.76052}, {2.57611, 
  4.74851}, {2.63894, 4.73754}, {2.70177, 4.72767}, {2.7646, 
  4.71897}, {2.82743, 4.71149}, {2.89027, 4.7053}, {2.9531, 
  4.70044}, {3.01593, 4.69694}, {3.07876, 4.69482}, {3.14159, 
  4.69412}, {3.20442, 4.69482}, {3.26726, 4.69694}, {3.33009, 
  4.70044}, {3.39292, 4.7053}, {3.45575, 4.71149}, {3.51858, 
  4.71897}, {3.58142, 4.72767}, {3.64425, 4.73754}, {3.70708, 
  4.74851}, {3.76991, 4.76052}, {3.83274, 4.7735}, {3.89557, 
  4.78737}, {3.95841, 4.80205}, {4.02124, 4.81749}, {4.08407, 
  4.8336}, {4.1469, 4.85032}, {4.20973, 4.86757}, {4.27257, 
  4.88529}, {4.3354, 4.90342}, {4.39823, 4.92189}, {4.46106, 
  4.94065}, {4.52389, 4.95962}, {4.58673, 4.97877}, {4.64956, 
  4.99803}, {4.71239, 5.01734}, {4.77522, 5.03665}, {4.83805, 
  5.05591}, {4.90088, 5.07506}, {4.96372, 5.09404}, {5.02655, 
  5.1128}, {5.08938, 5.13128}, {5.15221, 5.14941}, {5.21504, 
  5.16714}, {5.27788, 5.1844}, {5.34071, 5.20113}, {5.40354, 5.21725},
  {5.46637, 5.2327}, {5.5292, 5.2474}, {5.59203, 5.26128}, {5.65487, 
  5.27426}, {5.7177, 5.28628}, {5.78053, 5.29727}, {5.84336, 
  5.30715}, {5.90619, 5.31586}, {5.96903, 5.32334}, {6.03186, 
  5.32954}, {6.09469, 5.33441}, {6.15752, 5.33792}, {6.22035, 
  5.34003}, {6.28319, 5.34074}}

This works fine

By the way, data comes from Fotran output, dont know that matters

Well then something I am doing differently from you, because I do not have your files and cannot get your files and must manually translate back and forth because this forum software has never allowed people to hand each other data files, is breaking this.

If I add this

, PlotRange -> {0, 6}

as a last argument to your ListLinePlot so that it will show that your first plot file is almost exactly equal to 1 for all points and is almost hidden by the plot axis

Then I see the first 8 or 9 of your plots when I ask it to do 9 plots.

I can’t get your files. You can’t get my files. We are both half blind because of the forum software limitations.

Can you describe exactly what problem you have now? I do not see only 3 plots. I must be doing something different from you.

I figure it out.

ListLinePlot[
 Map[Drop[Import[#, "Table"], 2] &, 
  Table["C:\\Users\\cinar\\Documents\\Thesis_Numerics\\epsilon\\\
epsilon_0\\profile_shapes." <> 
    StringTake["000" <> ToString[i], -4], {i, 1, 8}]]]

I just add “Table” in Import

So this is done?

Wonderful. Finished.


This is first 8 files graph (:

yep, it is done

thank you so much for your help..

This is the all 21 files graph Awesome!!!

onece again thank you so much..

Your first file is y=1 and this is almost hidden by your x axis at y=1.
If that is not important to see then it does not matter.
Otherwise look at PlotRange to tell a plot what y range to use.

I am very glad we were able to solve your problem.
I hope it works for you in the future.

You can edit your very large post of x,y values to delete those points.
I must have made some error in what I asked you to do. I was expecting to
see a single line of minX, maxX, minY, maxY and not thousands of lines.
I apologize for my error. I am glad that even with my errors you were successful.

Man this helps huge!!! and save time. You save my life.. I am plotting 250 files in a second :):slight_smile: