Skip to content

Commit 350b356

Browse files
committed
up version 0.2.0 -> 0.2.1
1 parent 0c5bfc0 commit 350b356

2 files changed

Lines changed: 22 additions & 10 deletions

File tree

src/tikzplotly/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Module metadata for tikzplotly.
33
"""
4-
__version__ = "0.2.0"
4+
__version__ = "0.2.1"
55
__author__ = "Thomas Saigre"
66
__license__ = "MIT"
77
__description__ = "Convert plotly figures to TikZ code for inclusion into PGFPlots figures."

src/tikzplotly/_axis.py

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,23 +84,35 @@ def add_option(self, option, value):
8484
self.options[option] = value
8585

8686
def open_environment(self, stack_env):
87-
"""Open the axis environment.
87+
"""!Open the axis environment.
8888
89-
Parameters
90-
----------
91-
stack_env
92-
stack of environments, to be filled with the axis environment
89+
@param stack_env stack of environments, to be filled with the axis environment
9390
"""
9491
return tex_begin_environment(self.environment, stack_env, options=self.get_options())
9592

93+
## Compute the sum of two numbers
94+
# @param x first number
95+
# @param y second number
96+
# @return sum of x and y
97+
def f(self, x: int, y: int) -> int:
98+
"""_summary_
99+
100+
Arguments:
101+
x {int} -- _description_
102+
y {int} -- _description_
103+
104+
Returns:
105+
int -- _description_
106+
"""
107+
return x + y
96108

97109
def get_options(self):
98-
"""Get options string for the axis environment.
110+
"""!Get options string for the axis environment.
99111
100-
Returns
101-
-------
102-
string of all options with their values
112+
@return string of all options with their values
103113
"""
114+
self.f(1, 2)
115+
104116
if self.title is not None:
105117
self.options["title"] = sanitize_tex_text(self.title)
106118
if self.x_label is not None:

0 commit comments

Comments
 (0)