postprocesses a figure and write out an image and a text file that can be included in TeX documents. More...
Go to the source code of this file.
Functions | |
function clim = | plot_as_tikzfile (model, params) |
postprocesses a figure and write out an image and a text file that can be included in TeX documents. More... | |
postprocesses a figure and write out an image and a text file that can be included in TeX documents.
Definition in file plot_as_tikzfile.m.
function clim = plot_as_tikzfile | ( | model, | |
params | |||
) |
postprocesses a figure and write out an image and a text file that can be included in TeX documents.
This method creates three files from a MATLAB figure specified by
png
coded image file containing a snapshot of the figure box.tikz
that can be included in a LaTeX document adding axes and meta information around the png
file._test.tex
that can be compiled with pdflatex and outputs a pdf file with the figure output.model | model |
params | Options controlling the output |
clim | clim |
figure_handle —
handle to the figure that shall be postprocessed filename —
base of filename for the three generated files filename.png
, filename.tikz
and filename_test.tex
filepath —
path where the output files shall be stored width —
width of output picture in pixels. scaleaxis —
scaleaxisheight —
height of output picture in pixels. If this parameter does not exist or is set to zero, the height is calculated from the width and the pictures ratio. save_colorbar —
boolean specifying wether separate files for the colorbar is generated. print_axes —
boolean specifying wether the tikz file shall include drawing commands for axes around the picture. (Default=true) print_axes_label —
boolean specifying wether the tikz file shall include drawing commands for labels at the axes. This field is ignored if print_axes
is set to false. (Default=true) ticks —
integer specifying how many ticks should be added to the axes drawn around the figure. This field is ignored if print_axes
or print_axes_label
is set to false. (Default=5) Definition at line 17 of file plot_as_tikzfile.m.