File tree Expand file tree Collapse file tree 2 files changed +34
-3
lines changed Expand file tree Collapse file tree 2 files changed +34
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ class XTick
6
6
7
7
class YTick
8
8
include PyCall ::PyObjectWrapper
9
- wrap_class PyCall . import_module ( 'matplotlib.axis' ) . XTick
9
+ wrap_class PyCall . import_module ( 'matplotlib.axis' ) . YTick
10
10
end
11
11
12
12
class XAxis
@@ -16,6 +16,6 @@ class XAxis
16
16
17
17
class YAxis
18
18
include PyCall ::PyObjectWrapper
19
- wrap_class PyCall . import_module ( 'matplotlib.axis' ) . XAxis
19
+ wrap_class PyCall . import_module ( 'matplotlib.axis' ) . YAxis
20
20
end
21
21
end
Original file line number Diff line number Diff line change 1
1
require "spec_helper"
2
2
3
- describe Matplotlib do
3
+ RSpec . describe Matplotlib do
4
4
it "has a version number" do
5
5
expect ( Matplotlib ::VERSION ) . not_to be nil
6
6
end
7
+
8
+ describe Matplotlib ::XAxis do
9
+ specify do
10
+ fig = Matplotlib ::Pyplot . figure
11
+ ax = fig . add_axes ( PyCall . tuple ( 0.1 , 0.2 , 0.8 , 0.7 ) )
12
+ expect ( ax . xaxis ) . to be_a ( Matplotlib ::XAxis )
13
+ end
14
+ end
15
+
16
+ describe Matplotlib ::YAxis do
17
+ specify do
18
+ fig = Matplotlib ::Pyplot . figure
19
+ ax = fig . add_axes ( PyCall . tuple ( 0.1 , 0.2 , 0.8 , 0.7 ) )
20
+ expect ( ax . yaxis ) . to be_a ( Matplotlib ::YAxis )
21
+ end
22
+ end
23
+
24
+ describe Matplotlib ::Spine do
25
+ specify do
26
+ fig = Matplotlib ::Pyplot . figure
27
+ ax = fig . add_axes ( PyCall . tuple ( 0.1 , 0.2 , 0.8 , 0.7 ) )
28
+ expect ( ax . spines [ 'right' ] ) . to be_a ( Matplotlib ::Spine )
29
+ end
30
+ end
31
+
32
+ describe Matplotlib ::PolarAxes do
33
+ specify do
34
+ ax = Matplotlib ::Pyplot . subplot ( 111 , projection : :polar )
35
+ expect ( ax ) . to be_a ( Matplotlib ::PolarAxes )
36
+ end
37
+ end
7
38
end
You can’t perform that action at this time.
0 commit comments