Skip to content

Commit 79aa5b5

Browse files
committed
Add wrapped classes
1 parent b4ae5aa commit 79aa5b5

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

lib/matplotlib.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ class Error < StandardError
3434
end
3535
end
3636

37+
require 'matplotlib/axis'
3738
require 'matplotlib/axes'
3839
require 'matplotlib/polar_axes'
3940
require 'matplotlib/figure'
41+
require 'matplotlib/spines'
4042

4143
PyCall.append_sys_path(File.expand_path('../matplotlib/python', __FILE__))

lib/matplotlib/axis.rb

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module Matplotlib
2+
class XTick
3+
include PyCall::PyObjectWrapper
4+
wrap_class PyCall.import_module('matplotlib.axis').XTick
5+
end
6+
7+
class YTick
8+
include PyCall::PyObjectWrapper
9+
wrap_class PyCall.import_module('matplotlib.axis').XTick
10+
end
11+
12+
class XAxis
13+
include PyCall::PyObjectWrapper
14+
wrap_class PyCall.import_module('matplotlib.axis').XAxis
15+
end
16+
17+
class YAxis
18+
include PyCall::PyObjectWrapper
19+
wrap_class PyCall.import_module('matplotlib.axis').XAxis
20+
end
21+
end

lib/matplotlib/spines.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module Matplotlib
2+
class Spine
3+
include PyCall::PyObjectWrapper
4+
wrap_class PyCall.import_module('matplotlib.spines').Spine
5+
end
6+
end

0 commit comments

Comments
 (0)