The color is chosen according to the blue function for the electron, which is a little tricky and composed of the three color functions r,g,b. The size and position are determined by the posx,poxy,size functions. Set for object n object_number \įc rgb blue(n,max/1.0) fillstyle solid noborder lw 0 Set for object n object_number circle \Īt posx(x,n,max/1.0),posy(y,n,max/1.0) size size(n,max/1.0) This effect can be achieved with Gnuplot by plotting a bunch of circles with slightly different color and size on top of each other. There the electron is drawn as a red sphere with some lightning effect and the positron as a red sphere. In addition the sources should be plotted as well, as can be seen in Fig. #GNUPLOT SET ARROW CODE#1 Equipotential lines of an electron and a positron ( code to produce this figure, electron.gnu, positron.gnu) Tags: circle, colormap, dgrid3d, grid, imageįig. Set label 'very dense' at 0.3,-0.3 center front tc ls 1 Set label 'dense' at 0.5,0.75 center front tc ls 1 Set label 'normal' at -1,0.2 center front tc ls 1 R = 1.49 # make radius smaller to exclude interpolated edge points The result is then the nice circular heat map in Fig. The manually added points like xmin are removed by a smaller radius value. Plot "tmp.txt" u 1:2:(circle($1,$2,$3)) w imageįinally a few labels and the original measurement points are added. In order to limit the heat map to a circle you first extrapolate the grid using dgrid3d and store the data in a new file.Īfterwards a function is defined in order to limit the points to the inner of the circle and plot the data from the temporary file.Ĭircle(x,y,z) = sqrt(x**2 y**2)>r ? NaN : z 3 Sand density measured at different positions in a circular container ( code to produce this figure, sand.pal, data)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |