<< create_polylines_struct Gather Graphic Attributes Generate Tikz Strings >>

xs2tikz >> xs2tikz > Gather Graphic Attributes > gather_graphic_attributes

gather_graphic_attributes

Gather graphical elements from figure

Syntax

attributes = gather_graphic_attributes()

Parameters

attributes:

a struct containing graphical elements

Description

Gather all necessary graphical elements like figure, axes, entities, colorbars and so on and return a struct with fields, which can be converted by using generate_tikz_strings. The 'create' functions are called from here.

Examples

x = linspace(0, 2*%pi, 100);
plot(x, sin(x), x, cos(x), ':rd');
title("Sine and cosine");
xlabel("x");
ylabel("f(x)");
legend(['sin(x)', 'cos(x)']);
//Now use our function to get graphical attributes
str = gather_graphic_attributes();
disp(str)

Authors


Report an issue
<< create_polylines_struct Gather Graphic Attributes Generate Tikz Strings >>