forked from altmany/export_fig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
functionSignatures.json
217 lines (217 loc) · 8.49 KB
/
functionSignatures.json
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
{
"export_fig":
{
"inputs":
[
{"name":"figure", "kind":"ordered", "type":[["@ishandle"],["char"]], "purpose":"figure handle or name"},
{"name":"filename", "kind":"ordered", "type":[["char"],["string"]], "purpose":"output filename"},
{"tuple":
[
{"name":"actions", "kind":"ordered", "type":["choices={'-pdf','-eps','-emf','-svg','-png','-tif','-jpg','-bmp','-transparent','-nocrop','-c','-p','-m','-r','-native','-a1','-a2','-a3','-a4','-painters','-opengl','-RGB','-CMYK','-gray','-q','-n','-x','-s','-append','-bookmark','-d','-depsc','-update','-version','-nofontswap','-linecaps','-noinvert','-preserve_size','-silent','-regexprep','-toolbar','-menubar','-contextmenu','-clipboard','-clipboard:image','-clipboard:bitmap','-clipboard:emf','-clipboard:pdf'}"], "purpose":"export actions"},
{"name":"-metadata", "kind":"namevalue", "type":["struct","cell"], "purpose":"PDF meta-data"},
{"name":"-font_space", "kind":"namevalue", "type":"char", "purpose":"font-name space character"},
{"name":"-options", "kind":"namevalue", "type":["struct","cell"], "purpose":"export options"}
], "repeating":true}
],
"outputs":
[
{"name":"imageData"},
{"name":"alpha"}
]
},
"eps2pdf":
{
"inputs":
[
{"name":"source", "kind":"required", "type":"file=*.eps", "purpose":"source filename (*.eps)"},
{"name":"destination", "kind":"required", "type":"file=*.pdf", "purpose":"destination filename (*.pdf)"},
{"name":"crop", "kind":"ordered", "type":"logical", "purpose":"crop borders? (default=true)"},
{"name":"append", "kind":"ordered", "type":"logical", "purpose":"append to PDF? (default=false)"},
{"name":"gray", "kind":"ordered", "type":"logical", "purpose":"output grayscale? (default=false)"},
{"name":"quality", "kind":"ordered", "type":["numeric",">0"], "purpose":"image quality (>100=lossless)"},
{"name":"gs_options", "kind":"ordered", "type":["char","cell"], "purpose":"ghostscript options"}
]
},
"pdf2eps":
{
"inputs":
[
{"name":"source", "kind":"required", "type":"file=*.pdf", "purpose":"source filename (*.pdf)"},
{"name":"destination", "kind":"required", "type":"file=*.eps", "purpose":"destination filename (*.eps)"}
]
},
"append_pdfs":
{
"inputs":
[
{"name":"destination", "kind":"required", "type":"file=*.pdf", "purpose":"destination filename (*.pdf)"},
{"name":"source", "kind":"required", "type":"file=*.pdf", "purpose":"source filename (*.pdf)", "repeating":true}
]
},
"copyfig":
{
"inputs":
[
{"name":"figure", "kind":"required", "type":"@ishandle", "purpose":"handle of figure to copy"}
],
"outputs":
[
{"name":"new_figure", "purpose":"handle of the new figure"}
]
},
"crop_borders":
{
"inputs":
[
{"name":"image", "kind":"required", "type":"numeric", "purpose":"HxWxCxN array of image data"},
{"name":"bgcolor", "kind":"required", "type":"numeric", "purpose":"background color"},
{"name":"padding", "kind":"ordered", "type":["numeric",">=0","<=1"], "purpose":"padding amount (0-1, default=0)"},
{"name":"crop", "kind":"required", "type":"numeric", "purpose":"crop amounts [top,right,bottom,left]; NaN=auto-crop"}
],
"outputs":
[
{"name":"A", "purpose":"cropped array of images"},
{"name":"vA", "purpose":"coordinates in A that contain the cropped image"},
{"name":"vB", "purpose":"coordinates in B that contain the cropped image"},
{"name":"bb_rel", "purpose":"relative bounding box (used for EPS crop)"}
]
},
"isolate_axes":
{
"inputs":
[
{"name":"handles", "kind":"required", "type":"@ishandle", "purpose":"handles of axes or uipanel"},
{"name":"visible", "kind":"ordered", "type":"logical", "purpose":"make new figure visible? (default=false)"}
],
"outputs":
[
{"name":"new_figure", "purpose":"handle of the new figure"}
]
},
"pdftops":
{
"inputs":
[
{"name":"command", "kind":"ordered", "type":"char", "purpose":"pdftops command"}
],
"outputs":
[
{"name":"status", "purpose":"result status (0=ok, ~0=error)"},
{"name":"results", "purpose":"pdftops command results", "repeating":true}
]
},
"ghostscript":
{
"inputs":
[
{"name":"command", "kind":"ordered", "type":"char", "purpose":"ghostscript command"}
],
"outputs":
[
{"name":"status", "purpose":"result status (0=ok, ~0=error)"},
{"name":"results", "purpose":"ghostscript command results", "repeating":true}
]
},
"using_hg2":
{
"inputs":
[
{"name":"figure", "kind":"required", "type":"@ishandle", "purpose":"figure handle"}
],
"outputs":
[
{"name":"flag", "purpose":"logical flag (true=HG2, false=HG1)"}
]
},
"print2array":
{
"inputs":
[
{"name":"figure", "kind":"ordered", "type":"@ishandle", "purpose":"figure handle"},
{"name":"resolution", "kind":"ordered", "type":["numeric",">0"], "purpose":"output resolution (default=1)"},
{"name":"renderer", "kind":"ordered", "type":["choices={'-opengl','-painters'}"], "purpose":"output renderer (default='-opengl')"},
{"name":"gs_options", "kind":"ordered", "type":["char","cell"], "purpose":"ghostscript options"}
],
"outputs":
[
{"name":"image", "purpose":"MxNx3 bitmap figure screenshot"},
{"name":"bgcolor", "purpose":"auto-detected figure background color"},
{"name":"alpha", "purpose":"MxN array of 0-1 alpha values (0=transparent, 1=opaque)"}
]
},
"print2eps":
{
"inputs":
[
{"name":"filename", "kind":"required", "type":"char", "purpose":"output filename (*.eps)"},
{"name":"figure", "kind":"ordered", "type":"@ishandle", "purpose":"figure handle"},
{"name":"export_options", "kind":"ordered", "type":["numeric","struct"], "purpose":"export options"},
{"name":"print_options", "kind":"ordered", "type":["char","cell"], "purpose":"print() options"}
]
},
"read_write_entire_textfile":
{
"inputs":
[
{"name":"filename", "kind":"required", "type":"file", "purpose":"input text filename"},
{"name":"text", "kind":"ordered", "type":"char", "purpose":"text string to write in file"}
],
"outputs":
[
{"name":"text", "purpose":"text string read from file"}
]
},
"user_string":
{
"inputs":
[
{"name":"name", "kind":"required", "type":"char", "purpose":"parameter name"},
{"name":"text", "kind":"ordered", "type":"char", "purpose":"text string to store in parameter"}
],
"outputs":
[
{"name":"text", "purpose":"text string stored in parameter"},
{"name":"filename", "purpose":"filename containing the parameter"}
]
},
"eps2pdf":
{
"inputs":
[
{"name":"source", "kind":"required", "type":[["file=*.eps"],["char"]], "purpose":"source filename (*.eps) or text"},
{"name":"destination", "kind":"ordered", "type":"file=*.pdf", "purpose":"destination filename (*.eps)"}
],
"outputs":
[
{"name":"text", "purpose":"modified text string in file"}
]
},
"hyperlink":
{
"inputs":
[
{"name":"url", "kind":"required", "type":"char", "purpose":"hyperlink url"},
{"name":"label", "kind":"ordered", "type":"char", "purpose":"text label (default=<url>)"},
{"name":"msg", "kind":"ordered", "type":"char", "purpose":"string instances to hyperlink"}
],
"outputs":
[
{"name":"text", "purpose":"modified text"}
]
},
"im2gif":
{
"inputs":
[
{"name":"image", "kind":"required", "type":[["file"],["numeric"]], "purpose":"input images array or filename"},
{"tuple":
[
{"name":"outfile", "kind":"ordered", "type":"char", "purpose":"output filename (*.gif)"},
{"name":"actions", "kind":"ordered", "type":["choices={'-nocrop','-nodither'}"], "purpose":"export actions"},
{"name":"-ncolors", "kind":"namevalue", "type":["numeric",">1"], "purpose":"max number of colors (default=256)"},
{"name":"-loops", "kind":"namevalue", "type":["numeric",">0"], "purpose":"number of playback loops (default=65536)"},
{"name":"-delay", "kind":"namevalue", "type":["numeric",">0"], "purpose":"delay [secs] between frames (default=1/15)"}
], "repeating":true}
]
}
}