Commit 5d2ee8a5 authored by Marcelo Luda's avatar Marcelo Luda

fix

parent aa39512d
......@@ -677,6 +677,22 @@ arr = mpatches.FancyArrowPatch((x0, y0*1.1), (x0/2, y0*1.1),
ax_dib.add_patch(arr)
ax_dib.annotate("ion position", (.5, .5), xycoords=arr, ha='center', va='bottom', color='C1')
bbox = ax_dib.get_window_extent().transformed(fig.dpi_scale_trans.inverted())
aspect_ratio = bbox.width / bbox.height
ax_dib.plot(0.1, 0, ">k", transform=ax_dib.transAxes, clip_on=False, ms=3, lw=1)
ax_dib.plot([0,0.1], [0,0], "-k", transform=ax_dib.transAxes, clip_on=False, lw=1)
ax_dib.plot(0, 0.1*aspect_ratio, "^k", transform=ax_dib.transAxes, clip_on=False, ms=3, lw=1)
ax_dib.plot([0,0], [0,0.1*aspect_ratio], "-k", transform=ax_dib.transAxes, clip_on=False, lw=1)
ax_dib.text(0.1, 0.13, "x", transform=ax_dib.transAxes,
fontsize=8, va='top')
ax_dib.text(0.03, 0.13*aspect_ratio, "y", transform=ax_dib.transAxes,
fontsize=8, va='top')
# Leyenda ##############################
# h1, l1 = ax_central.get_legend_handles_labels()
# h2, l2 = axx[0,0].get_legend_handles_labels()
......@@ -688,8 +704,8 @@ fig.align_ylabels([ax_central,ax_res])
fig.tight_layout()
# fig.savefig('grafico_central_opcion_B.png', dpi=300)
# fig.savefig('grafico_central_opcion_B.pdf')
fig.savefig('grafico_central_opcion_B.png', dpi=300)
fig.savefig('grafico_central_opcion_B.pdf')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment