[plotter] improve embeded
This commit is contained in:
@@ -638,16 +638,21 @@ class Plotter(Aggregator, BaseProcessor):
|
||||
cbaxes = inset_axes(ax, width="10%", height="100%", loc="right", borderpad=0)
|
||||
cbar = plt.colorbar(cax=cbaxes, orientation='vertical')
|
||||
cbaxes.yaxis.set_ticks_position('left')
|
||||
cbaxes.yaxis.set_label_position('left')
|
||||
cbaxes.yaxis.set_tick_params(color="white", which="both")
|
||||
plt.setp(plt.getp(cbaxes.axes, 'yticklabels'), color="white")
|
||||
cbar.outline.set_edgecolor("white")
|
||||
cbaxes.tick_params(axis="y", direction="in", pad=-25)
|
||||
plt.sca(ax)
|
||||
else:
|
||||
try:
|
||||
cbar = plt.colorbar(im, cax=plt.gca().cax)
|
||||
except AttributeError:
|
||||
cbar = plt.colorbar()
|
||||
if label is not None:
|
||||
if embeded:
|
||||
cbar.set_label(" " + label, color="white", loc="bottom")
|
||||
else:
|
||||
cbar.set_label(label)
|
||||
|
||||
if put_title:
|
||||
|
||||
Reference in New Issue
Block a user