10000 Update demo_floating_axes.py · matplotlib/matplotlib@c813ab0 · GitHub
[go: up one dir, main page]

Skip to content

Commit c813ab0

Browse files
author
ugurthemaster
committed
Update demo_floating_axes.py
1 parent 814ca66 commit c813ab0

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

examples/axes_grid/demo_floating_axes.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Import necessary libraries and modules
21
from matplotlib.transforms import Affine2D
32
import mpl_toolkits.axisartist.floating_axes as floating_axes
43
import numpy as np
@@ -127,20 +126,14 @@ def setup_axes3(fig, rect):
127126
return ax1, aux_ax
128127

129128

130-
131129
##########################################################
132130
fig = plt.figure(1, figsize=(8, 4))
133131
fig.subplots_adjust(wspace=0.3, left=0.05, right=0.95)
134132

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])
137135

138-
#theta = np.random.rand(10) #*.5*np.pi
139-
#radius = np.random.rand(10) #+1.
140-
#aux_ax1.scatter(theta, radius)
141-
142136
ax2, aux_ax2 = setup_axes2(fig, 132)
143-
144137
theta = np.random.rand(10)*.5*np.pi
145138
radius = np.random.rand(10)+1.
146139
aux_ax2.scatter(theta, radius)
@@ -152,4 +145,3 @@ def setup_axes3(fig, rect):
152145
aux_ax3.scatter(theta, radius)
153146

154147
plt.show()
155-

0 commit comments

Comments
 (0)
0