Skip to content

Commit 416b5ab

Browse files
authored
Fix example_angular.py (#55)
1 parent 793eea0 commit 416b5ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/example_angular.png

32.2 KB
Loading

doc/example_angular.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import numpy as np
22
import matplotlib.pyplot as plt
3-
from matplotlib_scalebar.scalebar import ScaleBar, ANGULAR
3+
from matplotlib_scalebar.scalebar import ScaleBar
44

55
delta = 0.025
66
x = y = np.arange(-3.0, 3.0, delta)
@@ -14,7 +14,7 @@
1414
for ax, dx in zip(axes, [delta, delta / 60, delta / 3600]):
1515
ax.imshow(Z)
1616

17-
scalebar = ScaleBar(dx, "deg", ANGULAR)
17+
scalebar = ScaleBar(dx, "deg", dimension="angle")
1818
ax.add_artist(scalebar)
1919

2020
ax.set_title("dx = {:.6f}deg".format(dx))

0 commit comments

Comments
 (0)