Skip to content

Commit a333bf9

Browse files
adds docstring
1 parent d796e42 commit a333bf9

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/test_cleanfigure.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,23 @@ def test_isInBox():
130130

131131

132132
def test_getVisualLimits():
133+
"""
134+
octave code
135+
```octave
136+
addpath ("../matlab2tikz/src")
137+
138+
x = linspace(1, 100, 20);
139+
y1 = linspace(1, 100, 20);
140+
141+
figure
142+
plot(x, y1)
143+
xlim([20, 80])
144+
ylim([20, 80])
145+
set(gcf,'Units','Inches');
146+
set(gcf,'Position',[2.5 2.5 5 5])
147+
cleanfigure;
148+
```
149+
"""
133150
x = np.linspace(1, 100, 20)
134151
y = np.linspace(1, 100, 20)
135152

0 commit comments

Comments
 (0)