@@ -23,7 +23,7 @@ def test_recursive_cleanfigure():
23
23
def test_pruneOutsideBox ():
24
24
"""test against matlab2tikz implementation
25
25
26
- octave code to generate baseline results.
26
+ octave code to generate baseline results.
27
27
Note that octave has indexing 1...N, whereas python has indexing 0...N-1.
28
28
```octave
29
29
x = linspace(1, 100, 20);
@@ -53,7 +53,7 @@ def test_pruneOutsideBox():
53
53
def test_replaceDataWithNaN ():
54
54
"""test against matlab2tikz implementation.
55
55
56
- octave code to generate baseline results.
56
+ octave code to generate baseline results.
57
57
Note that octave has indexing 1...N, whereas python has indexing 0...N-1.
58
58
```octave
59
59
x = linspace(1, 100, 20);
@@ -87,7 +87,7 @@ def test_replaceDataWithNaN():
87
87
def test_removeData ():
88
88
"""test against matlab2tikz implementation.
89
89
90
- octave code to generate baseline results.
90
+ octave code to generate baseline results.
91
91
Note that octave has indexing 1...N, whereas python has indexing 0...N-1.
92
92
```octave
93
93
x = linspace(1, 100, 20);
@@ -117,20 +117,18 @@ def test_removeData():
117
117
118
118
def test_removeNaNs ():
119
119
"""test against matlab2tikz implementation
120
-
120
+
121
121
octave code to generate baseline results. Note that octave has indexing 1...N, whereas python has indexing 0...N-1.
122
122
```octave
123
123
x = linspace(1, 100, 20);
124
124
y1 = linspace(1, 100, 20);
125
-
125
+
126
126
figure
127
127
plot(x, y1)
128
128
xlim([20, 80])
129
129
ylim([20, 80])
130
130
cleanfigure;
131
131
```
132
-
133
-
134
132
"""
135
133
id_replace = np .array ([0 , 16 ])
136
134
id_remove = np .array ([1 , 2 , 3 , 17 , 18 , 19 ])
@@ -150,8 +148,7 @@ def test_removeNaNs():
150
148
151
149
def test_isInBox ():
152
150
"""octave code to generate baseline results
153
-
154
-
151
+
155
152
```octave
156
153
x = 1:10;
157
154
y = 1:10;
@@ -160,8 +157,6 @@ def test_isInBox():
160
157
ylim = [3, 7];
161
158
mask = isInBox(data, xlim, ylim)
162
159
```
163
-
164
-
165
160
"""
166
161
x = np .linspace (1 , 100 , 20 )
167
162
y = np .linspace (1 , 100 , 20 )
@@ -191,8 +186,6 @@ def test_getVisualLimits():
191
186
set(gcf,'Position',[2.5 2.5 5 5])
192
187
cleanfigure;
193
188
```
194
-
195
-
196
189
"""
197
190
x = np .linspace (1 , 100 , 20 )
198
191
y = np .linspace (1 , 100 , 20 )
@@ -243,10 +236,10 @@ def test_simplifyLine():
243
236
"""octave code
244
237
```octave
245
238
addpath ("../matlab2tikz/src")
246
-
239
+
247
240
x = linspace(1, 100, 20);
248
241
y1 = linspace(1, 100, 20);
249
-
242
+
250
243
figure
251
244
plot(x, y1)
252
245
xlim([20, 80])
@@ -312,10 +305,10 @@ def test_limitPrecision():
312
305
"""octave code
313
306
```octave
314
307
addpath ("../matlab2tikz/src")
315
-
308
+
316
309
x = linspace(1, 100, 20);
317
310
y1 = linspace(1, 100, 20);
318
-
311
+
319
312
figure
320
313
plot(x, y1)
321
314
xlim([20, 80])
@@ -345,14 +338,14 @@ def test_limitPrecision():
345
338
346
339
def test_opheimSimplify ():
347
340
"""test path simplification
348
-
341
+
349
342
octave code
350
343
```octave
351
344
addpath ("../matlab2tikz/src")
352
-
345
+
353
346
x = linspace(1, 100, 20);
354
347
y1 = linspace(1, 100, 20);
355
-
348
+
356
349
figure
357
350
plot(x, y1)
358
351
xlim([20, 80])
@@ -393,8 +386,8 @@ def test_opheimSimplify():
393
386
def test_is_step (function , result ):
394
387
"""
395
388
396
- :param function:
397
- :param result:
389
+ :param function:
390
+ :param result:
398
391
399
392
"""
400
393
x = np .linspace (1 , 100 , 20 )
@@ -581,10 +574,10 @@ def test_surface3D(self):
581
574
with pytest .warns (Warning ):
582
575
cleanfigure .cleanfigure (fig )
583
576
584
- def test_trisurface3D (Self ):
577
+ def test_trisurface3D (self ):
585
578
"""
586
579
587
- :param Self:
580
+ :param Self:
588
581
589
582
"""
590
583
import matplotlib .pyplot as plt
@@ -643,7 +636,7 @@ def test_polygon3D(self):
643
636
def cc (arg ):
644
637
"""
645
638
646
- :param arg:
639
+ :param arg:
647
640
648
641
"""
649
642
return mcolors .to_rgba (arg , alpha = 0.6 )
@@ -883,13 +876,13 @@ class Test_subplots:
883
876
884
877
def test_subplot (self ):
885
878
"""octave code
886
-
879
+
887
880
```octave
888
881
addpath ("../matlab2tikz/src")
889
-
882
+
890
883
x = linspace(1, 100, 20);
891
884
y1 = linspace(1, 100, 20);
892
-
885
+
893
886
figure
894
887
subplot(2, 2, 1)
895
888
plot(x, y1, "-")
@@ -935,12 +928,12 @@ def test_subplot(self):
935
928
936
929
def test_segmentVisible ():
937
930
"""test against matlab2tikz implementation
938
-
931
+
939
932
octave code to generate baseline results. Note that octave has indexing 1...N, whereas python has indexing 0...N-1.
940
933
```octave
941
934
x = linspace(1, 100, 20);
942
935
y1 = linspace(1, 100, 20);
943
-
936
+
944
937
figure
945
938
plot(x, y1)
946
939
xlim([20, 80])
0 commit comments