mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-24 14:15:14 +02:00
plotting adjusted
This commit is contained in:
parent
57eda0b77c
commit
a11ce740f7
1 changed files with 2 additions and 2 deletions
|
|
@ -110,7 +110,7 @@ class kern(Parameterized):
|
||||||
transOffset = offset_copy(ax.transData, fig=fig,
|
transOffset = offset_copy(ax.transData, fig=fig,
|
||||||
x=0., y= -2., units='points')
|
x=0., y= -2., units='points')
|
||||||
transOffsetUp = offset_copy(ax.transData, fig=fig,
|
transOffsetUp = offset_copy(ax.transData, fig=fig,
|
||||||
x=0., y=2., units='points')
|
x=0., y=1., units='points')
|
||||||
for bar in bars:
|
for bar in bars:
|
||||||
for patch, num in zip(bar.patches, np.arange(len(bar.patches))):
|
for patch, num in zip(bar.patches, np.arange(len(bar.patches))):
|
||||||
height = patch.get_height()
|
height = patch.get_height()
|
||||||
|
|
@ -119,7 +119,7 @@ class kern(Parameterized):
|
||||||
c = 'w'
|
c = 'w'
|
||||||
t = TextPath((0, 0), "${xi}$".format(xi=xi), rotation=0, usetex=True, ha='center')
|
t = TextPath((0, 0), "${xi}$".format(xi=xi), rotation=0, usetex=True, ha='center')
|
||||||
transform = transOffset
|
transform = transOffset
|
||||||
if patch.get_extents().height <= t.get_extents().height + 2:
|
if patch.get_extents().height <= t.get_extents().height + 3:
|
||||||
va = 'bottom'
|
va = 'bottom'
|
||||||
c = 'k'
|
c = 'k'
|
||||||
transform = transOffsetUp
|
transform = transOffsetUp
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue