vastcraft.blogg.se

Gnuplot title
Gnuplot title




gnuplot title

We want to plot more than one function that’s why we have to divide the two commands with a comma. # Plot plot f( x) title 'sin(x)' with lines linestyle 1, \ g( x) notitle with lines linestyle 2Īs you can see, the definitions of functions in gnuplot are straight forward.

gnuplot title

Therefore we specify our functions and plot them: a = 0.9 f( x) = a * sin( x) In our first graph we want to plot a sinusoid and a cosinus. For them we specified a colour, the line type where 1 is a normal line and also the line width. We use the set command and specify the border line width and two line styles with the number 1 and 2. # Line width of the axes set border linewidth 1.5 # Line styles set style line 1 linecolor rgb '#0060ad' linetype 1 linewidth 2 set style line 2 linecolor rgb '#dd181f' linetype 1 linewidth 2 Therefore we have to write this line of code: set terminal wxt size 350, 262 enhanced font 'Verdana,10' persistĪfter that we will specify the style of the output, because the default gnuplot output is ugly in many ways.

gnuplot title

The most common are png, svg, postscript or LaTeX output, but first we will start with the output just on the screen using the wxWidgets toolkit.

#GNUPLOT TITLE CODE#

Therefore open a text file in your preferred text editor, or directly download the code for this tutorial.įirstly we have to tell gnuplot the output terminal we want to use. In this tutorial you will create your first gnuplot figure.






Gnuplot title