Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fsleyes
fsleyes-widgets
Commits
69cc68a6
Commit
69cc68a6
authored
Jun 01, 2018
by
Paul McCarthy
🚵
Browse files
BF: Setting xticks appeared to be changing xlim. Set xlim afterwards.
parent
8c4f81e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsleyes_widgets/utils/colourbarbitmap.py
View file @
69cc68a6
...
...
@@ -143,8 +143,6 @@ def colourBarBitmap(cmap,
origin
=
'lower'
,
interpolation
=
'nearest'
)
ax
.
set_xlim
((
0
,
ncols
-
1
))
ax
.
set_yticks
([])
ax
.
tick_params
(
colors
=
textColour
,
labelsize
=
fontsize
,
length
=
0
)
...
...
@@ -212,6 +210,8 @@ def colourBarBitmap(cmap,
for
l
,
a
in
zip
(
ticklabels
,
tickalign
):
l
.
set_horizontalalignment
(
a
)
ax
.
set_xlim
((
0
,
ncols
-
1
))
canvas
.
draw
()
buf
=
canvas
.
tostring_argb
()
...
...
Write
Preview
Supports
Markdown
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