##// END OF EJS Templates
desplazamiento del logo al margen superior derecho de la figura
sebastianVP -
r1779:443eddb2c904
parent child
Show More
@@ -591,8 +591,14 class Plot(Operation):
591 )
591 )
592 with cbook.get_sample_data(file_logo) as file:
592 with cbook.get_sample_data(file_logo) as file:
593 IM_LOGO = image.imread(file)
593 IM_LOGO = image.imread(file)
594 IM_X = 94
594 alto_logo = IM_LOGO.shape[0] # Altura del logo en píxeles
595 IM_Y = 90
595 ancho_logo= IM_LOGO.shape[1] # ancho del logo en pixeles
596 fig_height = fig.get_figheight() * fig.dpi
597 fig_width = fig.get_figwidth() * fig.dpi
598 # IM_X = 94
599 # IM_Y = 90
600 IM_X = fig_width - ancho_logo - 160 # Pegado al borde derecho
601 IM_Y = fig_height - alto_logo - 95 # Pegado al borde superior
596 logo=fig.figimage(IM_LOGO,IM_X,IM_Y,zorder=3,alpha=0.7)
602 logo=fig.figimage(IM_LOGO,IM_X,IM_Y,zorder=3,alpha=0.7)
597 else:
603 else:
598 figname = os.path.join(
604 figname = os.path.join(
General Comments 0
You need to be logged in to leave comments. Login now