In [1]:
using GR
inline()
figure(figsize=(5,4.75))
In [2]:
function readdata(path)
    f = open(path); read(f, UInt8, 4096); x = read(f, Int32, 981*1043); close(f)
    data = reshape(x + 3, 981, 1043)
end
In [3]:
data = readdata("Abuladze_BPM_7117.1.dat")
contourf(data, xlim=(-1,1), ylim=(-1,1), zlog=true, colormap=-15, xlabel="Q_Y", ylabel="Q_Z", title="Ag-Behenat")
Out[3]:
- 1.0 - 0.5 0 0.5 1.0 - 1.0 - 0.5 0 0.5 1.0 Ag Behenat - Q Y Q Z 10 0 10 1 10 2 10 3 10 4
In [4]:
data = readdata("FePt_Nanopartikel.dat")
contourf(data, xlim=(-0.3,0.3), ylim=(-0.2,0.4), zlog=true, colormap=13, xlabel="Q_Y", ylabel="Q_Z", title="FePt Nanoparticles")
Out[4]:
- 0.2 0 0.2 0.4 - 0.2 0 0.2 FePt Nanoparticles Q Y Q Z 10 0 10 1 10 2 10 3 10 4 10 5 10 6