@@ -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