Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • SUNSET SUNSET
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 44
    • Issues 44
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Earth SciencesEarth Sciences
  • SUNSETSUNSET
  • Merge requests
  • !162

Fix plot titles for aggregated data

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged vagudets requested to merge dev-fix_aggregated_dates_plots into master Sep 17, 2024
  • Overview 0
  • Commits 8
  • Pipelines 1
  • Changes 10

As described in #147 (closed), this development improves the plot titles when aggregated data spans multiple years, displaying the correct years while avoiding repeating them when it's not necessary. The improvement has been done for subseasonal, seasonal and decadal data.

It also includes a refactoring of the code in plot_ensemble_mean() and plot_most_likely_terciles(); a new function get_plot_time_labels() has been added (modules/Visualization/R/get_plot_time_labels.R).

I have added a category of unit tests ("Utils") to include unit tests for utility functions. get_plot_time_labels() has a unit test already.

FYI @nperez

Victòria

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: dev-fix_aggregated_dates_plots