Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • nomad-FAIR nomad-FAIR
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 239
    • Issues 239
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 42
    • Merge requests 42
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • nomad-labnomad-lab
  • nomad-FAIRnomad-FAIR
  • Merge requests
  • !1110

Add Feature for Plotting Scalar Values in XYPlot

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Hampus Naesstroem requested to merge 1333-add-feature-for-plotting-scalar-values-in-xyplot into develop Feb 21, 2023
  • Overview 14
  • Commits 5
  • Pipelines 4
  • Changes 2

Added feature for plotting scalars from repeating subsections

Closes #1333 (closed)

The following yaml:

definitions:
  name: My Plot Test
  sections:
    MySection:
      base_section: nomad.datamodel.data.ArchiveSection
      quantities:
        x_value:
          type: int
        y_value:
          type: int
        y2_value:
          type: int
    MyTopSection:
      base_section: nomad.datamodel.data.EntryData
      m_annotations:
        plot:
        - label: My values
          x: my_sections/:/x_value
          y:
            - my_sections/:/y_value
            - my_sections/:/y2_value
      sub_sections:
        my_sections:
          section: MySection
          repeats: True


data:
  m_def: MyTopSection
  my_sections:
    - x_value: 1
      y_value: -1
      y2_value: -5
    - x_value: 2
      y_value: -2
      y2_value: -4
    - x_value: 3
      y_value: -3
      y2_value: -3
    - x_value: 4
      y_value: -4
      y2_value: -2
    - x_value: 5
      y_value: -5
      y2_value: -1

No gives the following plot:

image

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: 1333-add-feature-for-plotting-scalar-values-in-xyplot