matplotlib.transforms
import
from
mpl_toolkits.axisartist
import
,
import
mpl_toolkits.axisartist.angle_helper
as
angle_helper
def
curvelinear_test2
(
):
"""Polar projection, but in a rectangular box."""
grid_helper
=
(
()
.
scale
(
/
180.
,
1.
)
+
(),
extreme_finder
=
(
20
,
20
,
lon_cycle
=
360
,
lat_cycle
=
None
,
lon_minmax
=
None
,
lat_minmax
=
(
0
,
),
),
grid_locator1
=
(
12
),
tick_formatter1
=
(),
)
ax1
=
(
axes_class
=
,
grid_helper
=
grid_helper
)
ax1
.
axis
[
"lat"
]
=
axis
=
ax1
.
new_floating_axis
(
0
,
60
)
axis
.
label
.
set_text
(
r
"$\theta = 60^{\circ}$"
)
axis
.
label
.
set_visible
(
True
)
ax1
.
axis
[
"lon"
]
=
axis
=
ax1
.
new_floating_axis
(
1
,
6
)
axis
.
label
.
set_text
(
r
"$r = 6$"
)
ax1
.
set_aspect
(
1.
)
ax1
.
set_xlim
(
-
5
,
12
)
ax1
.
set_ylim
(
-
5
,
10
)
ax1
.
grid
(
True
)
=
(
figsize
=
(
5
,
5
))
curvelinear_test2
(
)
()