Otherwise we have to correct for the ranges and ratio. it would be trivial if both axes would go from, for example 1:10 and are equal in length in the figure. The conversion to rotation is the most tricky part, because it depends on the range of your axes and the ratio between them. Set label 2 '5 meV' at 1.38,4e9 rotate by r(a) center tc ls 1 After we have the value of the slope we convert it to a rotation in degree with the r() function and set our label. The first bracket is the range on the x-axis and the second sets the corresponding y range to auto. This can be handled by applying the logarithm to the y data by log($2) and than do the linear fiting.įit f(x) 'PL_spectrum_mu_1.0eV_E0_05meV_300K.dat' \ I can't use the different labels like I use the different ls (linestyle). It is a little bit tricky, because we have a logarithmic y-axis. My Gnuplot tests so far: set style line 1 lt 1 lw 1 lc rgb 'FF4500' set label 1 'Var1 sprintf ('5.3f',Var1)' at graph 0.8, graph 0.95 front font 'Times-Roman,10' plot 'file.dat' u 1:2 ls 1 My problems: The sprintf isn't interpreted in the output. To reduce the amount of trail and error for placing the E0 labels, we get the rotation directly from the data by fitting a linear function to the corresponding part of the data. E0 is an indicator for disorder in a crystalline system. Tags: data, epslatex, label, legend, logscale, standaloneįigure 1 shows the theoretical curves of photon flux density dependent on the photon energy for different characteristic tail state energies E0. Set label 2 '\ft $5$\,meV' at 1.38,4e9 rotate by 78.5 center tc ls 1 Set terminal epslatex size 9cm,7cm color colortext standalone header \Īfter the definition of the abbreviation we can use it for every label we are interested in. First we introduce a abbreviation for the font size by adding a command definition to the header of our latex file. The label size is changed by setting it to \footnotesize with the following code. ( code to produce this figure, data)įigure 1 shows again the photon flux density from one of the last posts, but this time plotted with the epslatex terminal. 1 Photon flux density for different characteristic tail state energies E0 dependent on the photon energy.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |