

If we plot our function through the file something.dat, then we can use the with image modifier of the plot command, and this means that the plot will be of the same size as would a normal 2D plot. While this might appear superfluous, there are good reasons to do this. This requires a small overhead in terms of scripting, namely, we have got to issue the command One of the advantages of doing this is that in this way, we can make sure that the various plots have the same size.

In principle, we could plot both the colour-coded map and the isolines from gnuplot, but we will have much greater flexibility, if we first direct the plots to a file, and then call the data from those files. If you have a matrix to plot, you can replace this function with that file. I don't think that this function has any particular meaning, but it looks quite all right, at least, as far as maps and isolines are concerned. We will produce a simple map using the function As we go along, the map will become more and more complicated, but I hope that I set the right pace, and it will be easy to follow.Ī map is nothing but a colour-coded 3D plot, with the isolines attached to it. Since it is simple, this method won't have one of the features, isoline labelling, that the second one has. Well, there is a simple and a not-so-simple way to this. So, you have always wondered how on Earth one can make a real map with gnuplot. Contour plots Maps - Contour plots with labels
