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

Change the location of the logo so that it does not overlap with anything and...

Change the location of the logo so that it does not overlap with anything and replace it with a less pixelated version
parent d84a9751
......@@ -4,6 +4,7 @@
### Added
- The (1+z1)/(1+z2) factor between observed and grid flux densities caused by the differential redshifting is now taken into account. With a default grid redshift rounding of two decimals this yields a difference of at most 0.5% in the estimated physical properties at z=0 and even less at higher z. (Médéric Boquien)
### Changed
- The logo has now been moved to the lower-right corner of the figure so that it does not overlap with any information and it has been updated for a less pixelated version (Médéric Boquien & Rodrigo González Castillo)
### Fixed
- Make sure we can plot the PDF of equivalent widths. (Médéric Boquien)
- Fix a crash when generating a mock catalogue containing intensive properties. (Médéric Boquien)
......@@ -333,11 +333,14 @@ def _sed_worker(obs, mod, filters, sed_type, logo, xrange, yrange, series, forma
if logo is not False:
figure_height = figure.get_figheight() * figure.dpi
figure.figimage(logo, 12, figure_height - 67, origin='upper', zorder=0,
figure.savefig(path.join(outdir, '{}_best_model.{}'.format(obs['id'], format)))
# 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)
figure.savefig(path.join(outdir, '{}_best_model.{}'.format(obs['id'], format)),
dpi=figure.dpi * 2.)
print("No valid best SED found for {}. No plot created.".format(obs['id']))

4.57 KB | W: | H:


21.1 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
Supports Markdown
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