12.07.2015 Views

GNU Octave - Local Sector 7 web page

GNU Octave - Local Sector 7 web page

GNU Octave - Local Sector 7 web page

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

136 <strong>GNU</strong> <strong>Octave</strong>‘-’ Set lines plot style (default).‘.’ Set dots plot style.‘@’‘-@’‘^’‘L’Set points plot style.Set linespoints plot style.Set impulses plot style.Set steps plot style.‘n’ Interpreted as the plot color if n is an integer in the range 1 to 6.‘nm’‘c’If nm is a two digit integer and m is an integer in the range 1 to 6, m isinterpreted as the point style. This is only valid in combination with the@ or -@ specifiers.If c is one of "r", "g", "b", "m", "c", or "w", it is interpreted as the plotcolor (red, green, blue, magenta, cyan, or white).‘";title;"’Here "title" is the label for the key.‘+’‘*’‘o’‘x’Used in combination with the points or linespoints styles, set the pointstyle.The color line styles have the following meanings on terminals that support color.Number Gnuplot colors (lines)points style1 red *2 green +3 blue o4 magenta x5 cyan house6 brown there existsThe fmt argument can also be used to assign key titles. To do so, include the desiredtitle between semi-colons after the formatting sequence described above, e.g. "+3;KeyTitle;" Note that the last semi-colon is required and will generate an error if it is leftout.Here are some plot examples:plot (x, y, "@12", x, y2, x, y3, "4", x, y4, "+")This command will plot y with points of type 2 (displayed as ‘+’) and color 1 (red),y2 with lines, y3 with lines of color 4 (magenta) and y4 with points displayed as ‘+’.plot (b, "*")This command will plot the data in the variable b will be plotted with points displayedas ‘*’.t = 0:0.1:6.3;plot (t, cos(t), "-;cos(t);", t, sin(t), "+3;sin(t);");This will plot the cosine and sine functions and label them accordingly in the key.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!