Hence we are using a bunch of arrows to achieve the same result. The scale needs a little more work, because Gnuplot can not plot a axis with tics to both directions of it. Plot 'fish.jpg' binary filetype=jpg with rgbimage Also we ensure that the image axes are in the right relation to each other by setting ratio to -1. To plot the jpg image of the longnose hawkfish you have to tell the plot command that you have binary data, the filetype, and choose rgbimage as a plotting style. 1 Plotting a jpg image within your graph and adding a scale ( code to produce this figure, image data). If you want to see an overview, look at my gnuplot configuration snippets and at the collection of palettes and line colors.įig. The set loadpath command tells gnuplot the directory where it can find all the configuration snippets. The same can be done for adding a grid, the right line color definitions and the extra Bessel functions leading to the following excerpt from the main plotting file: In the main plotting file I then just have to load the setting I like to have and I’m done. Set style line 101 lc rgb '#808080' lt 1 lw 1 Here, I have four different config files, called xyborder.cfg, xborder, yborder.cfg, noborder.cfg, which do exactly what their names would suggest. All of those could be easily stored in small config files and reused in other plots.Īs an example I will start with the axes. 1, it is a 2D plot, including axes, a grid, line colors, and definitions of higher order Bessel functions. Let us start with the Bessel function example from the last blog entry. ( code to produce this figure, dark2.pal, xyborder.cfg, grid.cfg, mathematics.cfg) 1 Bessel functions from order zero up to six plotted with the dark2 line colors.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |