File: hrawplot.mdc

package info (click to toggle)
freemat 4.2%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 141,800 kB
  • ctags: 14,082
  • sloc: ansic: 126,788; cpp: 62,046; python: 2,080; perl: 1,255; sh: 1,146; yacc: 1,019; lex: 239; makefile: 100
file content (42 lines) | stat: -rw-r--r-- 1,414 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42

 Usage

This function takes a sequence of commands, and generates a
raw plot (to a file) that renders the commands. It is a
useful tool for creating high quality fully customized PDF
plots from within FreeMat scripts that are portable. The
syntax for its use

    hrawplot(filename,commands)

where filename is the name of the file to plot to, and
commands is a cell array of strings. Each entry in the cell
array contains a string with a command text. The commands
describe a simple mini-language for describing plots. The
complete dictionary of commands is given

* LINE x1 y1 x2 y2 – draw a line
* FONT name size – select a font of the given name and
  size
* TEXT x1 y1 string – draw the given text string at
  the given location
* STYLE style – select line style ('solid' or
  'dotted')
* PAGE – force a new page
* SIZE x1 y1 – Set the page mapping
* BOX x1 y1 x2 y2 – draw a filled box covering the
  given coordinates
* HTEXTBOX x1 y1 x2 y2 string – Draw a horizontal box
  with the given string centered in it
* VTEXTBOX x1 y1 x2 y2 string – Draw a vertical box
  with the given string centered in it (rotated 90 degrees)
* BRUSH string – Set the brush color ('red','blue',
  etc)
* PEN string – Set the pen color


* FreeMat_Documentation
* Handle-Based_Graphics
* Generated on Thu Jul 25 2013 17:17:22 for FreeMat by
  doxygen_ 1.8.1.1