Skip to content

PPS: Add plotdz method#445

Merged
wkearn merged 1 commit into
TopoToolbox:mainfrom
wkearn:pps-plotdz
May 28, 2026
Merged

PPS: Add plotdz method#445
wkearn merged 1 commit into
TopoToolbox:mainfrom
wkearn:pps-plotdz

Conversation

@wkearn

@wkearn wkearn commented May 28, 2026

Copy link
Copy Markdown
Member

This is slightly different from the MATLAB PPS.plotdz method in that it doesn't plot the stream profile. It is tricky to forward some of the necessary keyword arguments to StreamObject.plotdz and some to plt.scatter. Use

...
p = tt3.PPS.from_nal(s, kp)
p.s.plotdz(dem, ax=ax)
p.plotdz(dem, ax=ax)
...

to plot both the StreamObject and the PPS.

This is slightly different from the MATLAB PPS.plotdz method in that
it doesn't plot the stream profile. It is tricky to forward some of
the necessary keyword arguments to StreamObject.plotdz and some to
plt.scatter. Use

...
p = tt3.PPS.from_nal(s, kp)
p.s.plotdz(dem, ax=ax)
p.plotdz(dem, ax=ax)
...

to plot both the StreamObject and the PPS.

Signed-off-by: William Kearney <william.kearney@uni-potsdam.de>
@wkearn wkearn merged commit 3837454 into TopoToolbox:main May 28, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant