Commit f53324a
committed
Added optional flag to plot the fowt with axes around it
Before this commit, RAFT fowt.plots() would zoom in the FOWT if not plotting the mooring system, which is specified by plot_ms.
Now, we have an optional flag axes_around_fowt that overwrites that behaviour and lets you choose whether you want to zoom in or not. It works like this:
- If the flag is not provided, fowt.plot() just like before: it zooms in the FOWT if not plotting the mooring system, it does not zoom in if plotting the mooring system.
- If axes_around_fowt==True: Zoom in the FOWT regardless of plotting the mooring system or not.
- If axes_around_fowt==False: Zoom in the FOWT regardless of plotting the mooring system or not. In that case, the function uses the axes limits of the ax object passed to it. Users can use MoorPy's helper function `set_axes_equal` to ensure that axes have the same aspect ratio, just like done in model.plot()1 parent 5276534 commit f53324a
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2744 | 2744 | | |
2745 | 2745 | | |
2746 | 2746 | | |
2747 | | - | |
| 2747 | + | |
2748 | 2748 | | |
2749 | 2749 | | |
| 2750 | + | |
| 2751 | + | |
| 2752 | + | |
| 2753 | + | |
| 2754 | + | |
| 2755 | + | |
| 2756 | + | |
2750 | 2757 | | |
2751 | 2758 | | |
2752 | 2759 | | |
| |||
2787 | 2794 | | |
2788 | 2795 | | |
2789 | 2796 | | |
2790 | | - | |
2791 | | - | |
| 2797 | + | |
| 2798 | + | |
2792 | 2799 | | |
2793 | 2800 | | |
2794 | 2801 | | |
| |||
0 commit comments