@@ -150,8 +150,6 @@ def __init__(self, data, obj): # noqa: C901
150150 else :
151151 self .content .append ("\\ begin{axis}" )
152152
153- return
154-
155153 def get_begin_code (self ):
156154 content = self .content
157155 if self .axis_options :
@@ -201,7 +199,6 @@ def _set_axis_dimensions(self, data, aspect_num, xlim, ylim):
201199 else :
202200 # TODO keep an eye on https://tex.stackexchange.com/q/480058/13262
203201 pass
204- return
205202
206203 def _ticks (self , data , obj ):
207204 # get ticks
@@ -291,8 +288,6 @@ def _ticks(self, data, obj):
291288 self .axis_options .append (x_tick_position_string )
292289 self .axis_options .append (y_tick_position_string )
293290
294- return
295-
296291 def _grid (self , obj , data ):
297292 # Don't use get_{x,y}gridlines for gridlines; see discussion on
298293 # <http://sourceforge.net/p/matplotlib/mailman/message/25169234/> Coordinate of
@@ -321,8 +316,6 @@ def _grid(self, obj, data):
321316 if col != "black" :
322317 self .axis_options .append (f"y grid style={{{ col } }}" )
323318
324- return
325-
326319 def _colorbar (self , colorbar , data ):
327320 colorbar_styles = []
328321
@@ -408,8 +401,6 @@ def _colorbar(self, colorbar, data):
408401 "colorbar style={{{}}}" .format ("," .join (colorbar_styles ))
409402 )
410403
411- return
412-
413404 def _subplot (self , obj , data ):
414405 # https://github.com/matplotlib/matplotlib/issues/7225#issuecomment-252173667
415406 geom = obj .get_subplotspec ().get_topmost_subplotspec ().get_geometry ()
@@ -431,8 +422,6 @@ def _subplot(self, obj, data):
431422 data ["is_in_groupplot_env" ] = True
432423 data ["pgfplots libs" ].add ("groupplots" )
433424
434- return
435-
436425 def _get_label_rotation_and_horizontal_alignment (self , obj , data , x_or_y ):
437426 tick_label_text_width = None
438427 tick_label_text_width_identifier = f"{ x_or_y } tick label text width"
0 commit comments