Skip to content

Commit

Permalink
Fix example_angular.py (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
360tetsu360 authored Jan 4, 2025
1 parent 793eea0 commit 416b5ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file added doc/example_angular.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions doc/example_angular.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import numpy as np
import matplotlib.pyplot as plt
from matplotlib_scalebar.scalebar import ScaleBar, ANGULAR
from matplotlib_scalebar.scalebar import ScaleBar

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

scalebar = ScaleBar(dx, "deg", ANGULAR)
scalebar = ScaleBar(dx, "deg", dimension="angle")
ax.add_artist(scalebar)

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

0 comments on commit 416b5ab

Please sign in to comment.