LinkedEarth / Pyleoclim_util

Python Package for the Analysis of Paleoclimate Data. Documentation at
https://pyleoclim-util.readthedocs.io
GNU General Public License v3.0
87 stars 33 forks source link

Fix problems with graphics #604

Closed khider closed 1 month ago

khider commented 1 month ago

This fixes two issues encountered with EnsembleSeries and EnsembleGeoSeries graphics:

  1. Issue #602 Changes to the Matplotlib API required to put a label with an underscore on the traces to avoid having a legend entry for everything since these are ignored. Another solution was found: passing the handles directly to legend; however this would result in the traces showing up again is another line was added to the plot.
  2. Issue #598 The code was lifted directly from the GeoSeries.dashboard resulting in self.archiveType being always None. Needed to set it to the archiveType in the first entry in the series_list.