Skip to content
Snippets Groups Projects

[plot] lineplot API same as matplotlib.pyplot.plot

Merged Florian Zill requested to merge FZill/ogstools:lineplot_API into main
All threads resolved!

Changing the new plot.line API to be similar to the API of matplotlib.pyplot.plot e.g.

line(mesh)  # z=const: y over x, y=const: z over x, x=const: z over y
line(mesh, ot.variables.temperature)    # temperature over x, y or z
line(mesh, "y", "temperature")          # temperature over y
line(mesh, ot.variables.pressure, "y")  # y over pressure
line(mesh, "pressure", "temperature")   # temperature over pressure
  • Tests covering your feature were added?
Edited by Florian Zill

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Tobias Meisel
  • Tobias Meisel
  • Florian Zill added 14 commits

    added 14 commits

    Compare with previous version

  • Florian Zill resolved all threads

    resolved all threads

  • Tobias Meisel approved this merge request

    approved this merge request

  • Tobias Meisel mentioned in commit 573a9e0c

    mentioned in commit 573a9e0c

  • merged

  • Please register or sign in to reply
    Loading