|
195 | 195 | # peak = result_df.index[result_df['peak']==True].tolist() |
196 | 196 |
|
197 | 197 | fp.plot_persistence() |
| 198 | +fp.plot(figsize=(25, 14), text=True, marker='x', color='#ff0000', figure_order='vertical', fontsize=14) |
198 | 199 | fp.plot(figsize=(25, 14), text=False, marker='x', color='#ff0000', figure_order='vertical', fontsize=14) |
199 | 200 | # fp.plot_mesh(view=(40, 180)) |
200 | 201 | # fp.plot_mesh(view=(90, 0)) |
|
623 | 624 | # 2dpeaks example |
624 | 625 | fp = findpeaks(method='topology') |
625 | 626 | img = fp.import_example('2dpeaks') |
626 | | -fp.fit(img) |
627 | | -fp.plot(cmap='hot') |
628 | | -fp.plot() |
| 627 | +results = fp.fit(img) |
| 628 | +ax = fp.plot(cmap='hot', figure_order='horizontal') |
| 629 | +fp.plot(figure_order='horizontal') |
629 | 630 | fp.plot_persistence() |
630 | 631 |
|
631 | 632 | fp = findpeaks(method='mask', verbose='info') |
632 | 633 | img = fp.import_example() |
633 | 634 | fp.fit(img) |
634 | | -fp.plot() |
| 635 | +ax = fp.plot(figure_order='horizontal', fontsize=20, marker='x', s=14) |
| 636 | +ax = fp.plot(figure_order='horizontal', fontsize=20) |
635 | 637 |
|
636 | 638 |
|
637 | 639 | # 2dpeaks example with other settings |
638 | | -fp = findpeaks(method='topology', imsize=(300, 300), scale=True, togray=True, denoise='fastnl', params={'window': 31}, |
639 | | - verbose='info') |
| 640 | +fp = findpeaks(method='topology', scale=True, togray=True, denoise='fastnl', params={'window': 31}, verbose='info') |
640 | 641 | img = fp.import_example('2dpeaks') |
641 | | -fp.fit(img) |
642 | | -fp.plot() |
| 642 | +results = fp.fit(img) |
| 643 | +ax = fp.plot(figure_order='horizontal', fontsize=10) |
| 644 | +ax = fp.plot_persistence(marker='x', s=100) |
643 | 645 |
|
644 | 646 | # %% |
645 | 647 | from findpeaks import findpeaks |
|
0 commit comments