dstl / Stone-Soup

A software project to provide the target tracking community with a framework for the development and testing of tracking algorithms.
https://stonesoup.rtfd.io
MIT License
411 stars 138 forks source link

Add additional functionality into Plotter class. #661

Closed jswright-dstl closed 2 years ago

jswright-dstl commented 2 years ago

This PR adds the ability to pass custom arguments to figure initialisation as highlighted in #655. For example, figsize can be passed to Plotter in initialisation to change the figure size. Additionally, the method to set equal axes in 3d plots. This uses the data in the figure to set the axes.

codecov[bot] commented 2 years ago

Codecov Report

Merging #661 (eb92633) into main (aaa895b) will increase coverage by 0.01%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #661      +/-   ##
==========================================
+ Coverage   94.43%   94.45%   +0.01%     
==========================================
  Files         168      168              
  Lines        8429     8451      +22     
  Branches     1630     1638       +8     
==========================================
+ Hits         7960     7982      +22     
  Misses        348      348              
  Partials      121      121              
Flag Coverage Δ
integration 67.58% <29.16%> (-0.12%) :arrow_down:
unittests 92.15% <100.00%> (+0.07%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
stonesoup/plotter.py 94.17% <100.00%> (+0.76%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update aaa895b...eb92633. Read the comment docs.