Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D DNS Shotgun
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 19
    • Issues 19
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • 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
  • Knot projects
  • DNS Shotgun
  • Merge requests
  • !69

Change linestyle in latency charts

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Tom Krizek requested to merge plot-latency-linestyle into master Nov 10, 2022
  • Overview 1
  • Commits 2
  • Pipelines 3
  • Changes 1

When plotting multiple different versions together, it is useful if they can be visually told apart by using a different linestyle. Since the only input data is the file path and the shotgun JSON itself, provide the user with an option to change the linestyle based on the file name, which is also used as the chart label.

A choice to use regular expression was made to keep maximum flexibility for future use. The supported linestyles are limited to four predefined named choices which matplotlib supports [1]. A short consideration to support parametrized linestyles was made, but for simplicity's sake, it was decided that four linestyles are sufficient for everybody ;)

[1] - https://matplotlib.org/stable/gallery/lines_bars_and_markers/linestyles.html

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: plot-latency-linestyle