Colorspec Many commands allow you to specify a linetype with an explicit color. Gnuplot version 5 allows you to specify the dot-dash pattern independent of the line color. Linetypes also have an associated dot-dash pattern although not all terminal types are capable of using it. See colorspec, show colornames, hsv, set palette, cbrange. Plot sin(x) lt palette frac 0.3 # fractional value along the palette Plot sin(x) lt palette cb -45 # whatever color corresponds to -45 Plot sin(x) lt rgb "#FF00FF" # explicit RGB triple in hexadecimal In general, colors can be specified using named colors, rgb (red, green, blue) components, hsv (hue, saturation, value) components, or a coordinate along the current pm3d palette.Įxamples: plot sin(x) lt rgb "violet" # one of gnuplot's named colors Plot sin(x) linetype 4 # use linetype color 4 You can override this for any individual function, datafile, or plot element by giving explicit line properties in the plot command.Įxamples: plot "foo", "bar" # plot two files using linetypes 1, 2 Successive functions or datafiles plotted by a single command will be assigned successive linetypes in the current default sequence. The current linetype properties for a particular terminal can be previewed by issuing the test command after setting the terminal type. Several sample initialization files are provided in the distribution package. You can further customize the sequence of linetype properties interactively or in an initialization file. You can select this old behaviour via the command set colorsequence classic, but by default gnuplot version 5 uses a terminal-independent sequence of 8 colors. These colors and patterns were not guaranteed to be consistent across different terminal types although most used the color sequence red/green/blue/magenta/cyan/yellow. Given, then the next available figure handle is used.Linetypes, colors, and styles In older gnuplot versions, each terminal type provided a set of distinct "linetypes " that could differ in color, in thickness, in dot/dash pattern, or in some combination of color and dot/dash. The figure handle to use can be defined by h. The string str is a plot style string (example "r+"),Īnd by default is the default gnuplot point style. The first element of the signal to plot isĭetermined by off. Quadrature components of a complex signal and are plotted on the x andĮach point of the scatter plot is assumed to be separated by nĮlements in the signal. In this case the first column represents the in-phase and the second the Plotted separately on the x and y axes respectively. In this case the in-phase and quadrature components of the signal are The scatterplot is plotted along the x axis only. In this case the signal is assumed to be real and represented by the vector Function File: scatterplot ( x) Function File: scatterplot ( x, n) Function File: scatterplot ( x, n, off) Function File: scatterplot ( x, n, off, str) Function File: scatterplot ( x, n, off, str, h) Function File: h = scatterplot (…)ĭisplay the scatter plot of a signal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |