1
- # Import necessary libraries and modules
2
1
from matplotlib .transforms import Affine2D
3
2
import mpl_toolkits .axisartist .floating_axes as floating_axes
4
3
import numpy as np
@@ -127,20 +126,14 @@ def setup_axes3(fig, rect):
127
126
return ax1 , aux_ax
128
127
129
128
130
-
131
129
##########################################################
132
130
fig = plt .figure (1 , figsize = (8 , 4 ))
133
131
fig .subplots_adjust (wspace = 0.3 , left = 0.05 , right = 0.95 )
134
132
135
- ax1 , aux_ax2 = setup_axes1 (fig , 131 )
136
- aux_ax2 .bar ([0 , 1 , 2 , 3 ], [3 , 2 , 1 , 3 ])
133
+ ax1 , aux_ax1 = setup_axes1 (fig , 131 )
134
+ aux_ax1 .bar ([0 , 1 , 2 , 3 ], [3 , 2 , 1 , 3 ])
137
135
138
- #theta = np.random.rand(10) #*.5*np.pi
139
- #radius = np.random.rand(10) #+1.
140
- #aux_ax1.scatter(theta, radius)
141
-
142
136
ax2 , aux_ax2 = setup_axes2 (fig , 132 )
143
-
144
137
theta = np .random .rand (10 )* .5 * np .pi
145
138
radius = np .random .rand (10 )+ 1.
146
139
aux_ax2 .scatter (theta , radius )
@@ -152,4 +145,3 @@ def setup_axes3(fig, rect):
152
145
aux_ax3 .scatter (theta , radius )
153
146
154
147
plt .show ()
155
-
0 commit comments