Skip to content

Commit b1c7cf4

Browse files
committed
Fix warnings in examples
1 parent 8b7d7af commit b1c7cf4

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

examples/axisartist/demo_axis_direction.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ def setup_axes(fig, rect):
2121
"""Polar projection, but in a rectangular box."""
2222

2323
# see demo_curvelinear_grid.py for details
24-
tr = Affine2D().scale(np.pi/180., 1.) + PolarAxes.PolarTransform()
24+
tr = Affine2D().scale(np.pi/180., 1.) + PolarAxes.PolarTransform(
25+
_apply_theta_transforms=False)
2526

2627
extreme_finder = angle_helper.ExtremeFinderCycle(20, 20,
2728
lon_cycle=360,

examples/axisartist/demo_curvelinear_grid.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ def curvelinear_test2(fig):
5555

5656
# PolarAxes.PolarTransform takes radian. However, we want our coordinate
5757
# system in degree
58-
tr = Affine2D().scale(np.pi/180, 1) + PolarAxes.PolarTransform()
58+
tr = Affine2D().scale(np.pi/180, 1) + PolarAxes.PolarTransform(
59+
_apply_theta_transforms=False)
5960
# Polar projection, which involves cycle, and also has limits in
6061
# its coordinates, needs a special method to find the extremes
6162
# (min, max of the coordinate within the view).

examples/axisartist/demo_floating_axes.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def setup_axes2(fig, rect):
5353
With custom locator and formatter.
5454
Note that the extreme values are swapped.
5555
"""
56-
tr = PolarAxes.PolarTransform()
56+
tr = PolarAxes.PolarTransform(_apply_theta_transforms=False)
5757

5858
pi = np.pi
5959
angle_ticks = [(0, r"$0$"),
@@ -98,7 +98,8 @@ def setup_axes3(fig, rect):
9898
# scale degree to radians
9999
tr_scale = Affine2D().scale(np.pi/180., 1.)
100100

101-
tr = tr_rotate + tr_scale + PolarAxes.PolarTransform()
101+
tr = tr_rotate + tr_scale + PolarAxes.PolarTransform(
102+
_apply_theta_transforms=False)
102103

103104
grid_locator1 = angle_helper.LocatorHMS(4)
104105
tick_formatter1 = angle_helper.FormatterHMS()

examples/axisartist/demo_floating_axis.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
def curvelinear_test2(fig):
2323
"""Polar projection, but in a rectangular box."""
2424
# see demo_curvelinear_grid.py for details
25-
tr = Affine2D().scale(np.pi / 180., 1.) + PolarAxes.PolarTransform()
25+
tr = Affine2D().scale(np.pi / 180., 1.) + PolarAxes.PolarTransform(
26+
_apply_theta_transforms=False)
2627

2728
extreme_finder = angle_helper.ExtremeFinderCycle(20,
2829
20,

examples/axisartist/simple_axis_pad.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ def setup_axes(fig, rect):
2222
"""Polar projection, but in a rectangular box."""
2323

2424
# see demo_curvelinear_grid.py for details
25-
tr = Affine2D().scale(np.pi/180., 1.) + PolarAxes.PolarTransform()
25+
tr = Affine2D().scale(np.pi/180., 1.) + PolarAxes.PolarTransform(
26+
_apply_theta_transforms=False)
2627

2728
extreme_finder = angle_helper.ExtremeFinderCycle(20, 20,
2829
lon_cycle=360,

0 commit comments

Comments
 (0)