def setup_axes1(fig, rect):
 tr = Affine2D().scale(2, 1).rotate_deg(30)
 grid_helper = floating_axes.GridHelperCurveLinear(tr, extremes=((-0.5), 3.5, 0, 4))
 ax1 = floating_axes.FloatingSubplot(fig, rect, grid_helper=grid_helper)
 fig.add_subplot(ax1)
 aux_ax = ax1.get_aux_axes(tr)
 grid_helper.grid_finder.grid_locator1._nbins = 4
 grid_helper.grid_finder.grid_locator2._nbins = 4
 return (ax1, aux_ax)

def setup_axes1 ( fig , rect ) : tr = Affine2D ( ) . scale ( 2 , 1 ) . rotate_deg ( 30 ) grid_helper = floating_axes . GridHelperCurveLinear ( tr , extremes = ( ( - 0.5 ) , 3.5 , 0 , 4 ) ) ax1 = floating_axes . FloatingSubplot ( fig , rect , grid_helper = grid_helper ) fig . add_subplot ( ax1 ) aux_ax = ax1 . get_aux_axes ( tr ) grid_helper . grid_finder . grid_locator1 . _nbins = 4 grid_helper . grid_finder . grid_locator2 . _nbins = 4 return ( ax1 , aux_ax )
a simple one .