GCEL / ILAMB

(This is the GCEL development fork of ILAMB - it is not intended to replace the ornl bitbucket site which should be referred to first.)
2 stars 1 forks source link

Output ILAMB figures separately as files #4

Open dvalters opened 6 years ago

dvalters commented 6 years ago

Current behaviour is to output all the figures as components of an HTML page, with things like the headings and keys being formed of separate png files and HTML components.

This is useful for insepection of the data interactively, but would be nice to output publication-quality figures using matplotlib + cartopy.

e.g. all the map output is actually stored like this:

First the figure title:

JULES GLOBAL BIAS

(actually a <h2> tag in HTML)

Then the image file jules_global_bias.png

jules_global_bias

Then the legend file legend_bias.png

legend_bias

All aranged with HTML <div>s etc:


          <div class="child">
          <center>MODEL&nbsp;MEAN</center>
          <img src="JULES_global_timeint.png" id="timeint" alt="Data not available">
          <center><img src="legend_timeint.png" id="leg" alt="Data not available"></center>
          </div>

So what would actually be nice is a single figure with at least the Map + Legend + option to include title.

dvalters commented 6 years ago

Current figures are written out in src/ILAMB/ConfIOMB.py modelPlots class, but the actual plotting methid is in the Variable class which is located in Variable.py