Skip to content

Commit

Permalink
added None as am explicit lable option to simplify long legends."
Browse files Browse the repository at this point in the history
  • Loading branch information
ledm committed Mar 21, 2024
1 parent d3f5f4a commit 59b46e6
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 194 deletions.
4 changes: 2 additions & 2 deletions bgcval2/timeseries/timeseriesAnalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ def loadModel(self):
# load and calculate the model info
if glob.glob(self.shelvefn+'*'): # shelve files have .bak .dat .dir files now
sh = shOpen(self.shelvefn)
print('seems fine:', self.shelvefn)
sh = shOpen(self.shelvefn)
print('Shelf opens fine:', self.shelvefn)
# sh = shOpen(self.shelvefn)
print (sh.keys())
readFiles = sh['readFiles']
modeldataD = sh['modeldata']
Expand Down
5 changes: 3 additions & 2 deletions bgcval2/timeseries/timeseriesPlots.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,8 @@ def multitimeseries(
label = None
else:
label = labels.get(jobID, jobID)

final_labels.append(final_labels)

if smoothing.lower() in ['spline', 'all']:
tnew = np.linspace(times[0], times[-1], 60)
arr_smooth = interpolate.spline(times, arr, tnew)
Expand Down Expand Up @@ -1043,7 +1044,7 @@ def multitimeseries(

#####
# Add legend:
legendSize = len(list(timesD.keys()))
legendSize = len(final_labels)
ncols = int(legendSize / 25) + 1
box = ax.get_position()
ax.set_position(
Expand Down
Loading

0 comments on commit 59b46e6

Please sign in to comment.