This is an old revision of the document!
nextnanomat can display the following output formats.
.txt
- The file is displayed as a text..dat
- The file is displayed as a graph, e.g. scalar field $f(x)$ or vector field $\mathbf{F}(x)$.x1 f(x1) x2 f(x2) ... xn f(xn)
or
x1 f1(x1) f2(x1) f3(x1) f4(x1) ... fm(x1) x2 f1(x2) f2(x2) f3(x2) f4(x2) ... fm(x2) ... xn f1(xn) f2(xn) f3(xn) f4(xn) ... fm(xn)
.mtx
or .mat
- Matrix format for e.g. a matrix, a table, a $f(x,y)$ graph. The $x$ and $y$ axes are labeled with integer numbers.A11 A12 A13 ... A1n A21 A22 A23 ... A2n ... Am1 Am2 Am3 ... Amn
.vtr
- 2D/3D VTK data format (rectilinear grid) - scalar field $f(x,y,z)$ or vector field $\mathbf{F}(x,y,z)$. .vtr
files can be viewed using the Paraview software which is a full 3D visualization software while nextnanomat only displays 2D slices of 3D data files..fld
- 1D/2D/3D AVS data format (rectilinear grid) - scalar field $f(x,y,z)$ or vector field $\mathbf{F}(x,y,z)$.
If a file extension is unknown it is treated as if it were a .txt
file.
The menu contains the most important functions to visualize the output data.
More specific functions have their own panel. (For convenience some of them can be hidden.) Their location is shown in the following picture:
For 2D- or 3D-plots there are additionally panels for the displayed plane (xy, xz or yz) and its position, as well as the horizontal and vertical slices.
For the best experience when visually analyzing the results of the simulation, it is sometimes necessary to look at different files at the same time. We call this the Overlay feature.
Add to Overlay
button.⇒ Your memorized plots will be displayed in gray.
You can check and edit the content of your overlay in the overlay list (Don't know where to find it? Read previous chapter Panels). You can also export the selected graphs to an image file, see next chapter for more details Gnuplot export.
Only the gnuplot-export is also available from the output main menu.
But in 1D there is a slight difference! When the gnuplot-export is started in the global menu, all (and only) the items of the overlay list will be exported. With this feature more than a single file can be exported (e.g. the bandedge and the electron probability density): When started in the context menu, only the currently displayed file will be exported.
When exporting a 2D- or 3D-file, you have some additional options for your gnuplot file:
The option color map (2D)
will export a file with the same style as it is displayed in the nextnanomat.
The other options create surface plots (pseudo 3D-plots):
Title and labels are optional and if they aren't specified they will be taken directly from the file (if provided).
If remember settings
is checked, the next time the panel will be pre-filled with these settings.
If you always use the same settings and don't want this dialog to be displayed each time, you can chose the Create Gnuplot file - last used (*.plt)
- option in the context menu.
To visualize the *.plt files, the freely distributed software Gnuplot has to be installed on your device. For information and download visit Gnuplot website. If Gnuplot is installed on your device, the created file will be opened automatically.
1D-plots are linked to the original *.dat file(s). So if you want to move your plot to another device you can either save your plot as *.pdf/*.svg/*.png directly in gnuplot (recommended), or if you want to move the original *.plt-file you also have to move all necessary *.dat files (the paths can be adjusted when opening the *.plt file with a text editor).
The data of 2D/3D-plots is directly stored within the *.plt file, so there is nothing to consider when moving these files. (So why isn't this done alike for 1D-plots? Because with the overlay feature you have the possibility to export nearly unlimited *.dat files in only one *.plt file. If all this data would be duplicated and transferred into the *.plt file, it would simply get to big.)
To edit gnuplot commands, open the ".plt" file with your text editor.
set logscale x
set logscale y
plot 'D:\bandedges.dat' linetype rgb "#FF0000" pt 5 ...
plot 'D:\bandedges.dat' linetype rgb "#FF0000" pt 5 lw 4 ...
set xlabel "position (nm)" font "sans - serif"
set xlabel "position (nm)" font "sans - serif,20"
plot 'D:\density_hole.dat' using 1:2 title "p (10^{18} cm^{-3})"enhanced ...
plot 'D:\density_hole.dat' using 1:2 title "p (10^18 cm^-3)" noenhanced ...
set xrange [-0.3:100.3]
set xrange [0:100]
set yrange [-1.5:2.5]
set yrange [-1.0:0.5]
set grid
unset grid
set border lw 2
set border lw 3
set key on ...
set key off ...
set key on ... box
set key on ... nobox
set key on ... font "sans - serif,14"
set key on ... font "sans - serif,18"
set key left top inside ...
set key right bottom outside ...
plot 'D:\bandedges.dat' using 1:2 title "E_c " ...
plot 'D:\bandedges.dat' using 1:2 notitle "E_c " ...
using 1:2 title "{/Symbol G} [eV]" enhanced
produces $\Gamma$set label "label" at 0.5,1.5
set arrow from 1.5,0.3 to 4,2
set title "title" font "sans - serif,18"
Export plot to file
SVG files (*.svg)
.svg
file with Inkscape (www.inkscape.org)File
⇒ Export .PNG Image…
⇒ Select Drawing
⇒ Export