Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Divya Singh
ligo.skymap
Commits
d0f98944
Commit
d0f98944
authored
Jun 06, 2019
by
Leo Pound Singer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass kwargs from scalebar().label()
parent
77477145
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ligo/skymap/plot/allsky.py
ligo/skymap/plot/allsky.py
+2
-2
No files found.
ligo/skymap/plot/allsky.py
View file @
d0f98944
...
...
@@ -593,9 +593,9 @@ class ScaleBar(FancyArrowPatch):
transform
=
ax
.
transAxes
,
**
kwargs
)
def
label
(
self
):
def
label
(
self
,
**
kwargs
):
(
x0
,
y
),
(
x1
,
_
)
=
self
.
_posA_posB
s
=
u
' {0.value:g}{0.unit:unicode}'
.
format
(
self
.
_length
)
return
self
.
_ax
.
text
(
0.5
*
(
x0
+
x1
),
y
,
s
,
ha
=
'center'
,
va
=
'bottom'
,
transform
=
self
.
_ax
.
transAxes
)
ha
=
'center'
,
va
=
'bottom'
,
transform
=
self
.
_ax
.
transAxes
,
**
kwargs
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment