Commit afeaf780 authored by Médéric Boquien's avatar Médéric Boquien
Browse files

Fix the position and size of the logo for the mock plots.

parent fd08a84e
...@@ -115,7 +115,11 @@ def _mock_worker(exact, estimated, param, logo, outdir): ...@@ -115,7 +115,11 @@ def _mock_worker(exact, estimated, param, logo, outdir):
plt.minorticks_on() plt.minorticks_on()
if logo is not False: if logo is not False:
plt.figimage(logo, 510, 55, origin='upper', zorder=10, alpha=1) # Multiplying the dpi by 2 is a hack so the figure is small and not too
# pixelated
figwidth = figure.get_figwidth() * figure.dpi * 2.
figure.figimage(logo, figwidth-logo.shape[0], 0, origin='upper',
zorder=0, alpha=1)
plt.tight_layout() plt.tight_layout()
plt.savefig(f'{outdir}/mock_{param}.pdf') plt.savefig(f'{outdir}/mock_{param}.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