Skip to content

Commit

Permalink
upd readme #40
Browse files Browse the repository at this point in the history
  • Loading branch information
karolzak committed Mar 14, 2022
1 parent b0187d9 commit 4fa814d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,45 @@ and use any of the available plotting functions shown below (notice execution ti

#### Display a collection of images

```python
images = [
"docs/example1-tabs.jpg",
"docs/example2-images.jpg",
"docs/example3-classes.jpg",
]
ipyplot.plot_images(images, max_images=30, img_width=150)
```

![](https://raw.githubusercontent.com/karolzak/ipyplot/master/docs/example2-images.jpg)

#### Display class representations (first image for each unique label)

```python
images = [
"docs/example1-tabs.jpg",
"docs/example2-images.jpg",
"docs/example3-classes.jpg",
]
labels = ['label1', 'label2', 'label3']
ipyplot.plot_class_representations(images, labels, img_width=150)

```

![](https://raw.githubusercontent.com/karolzak/ipyplot/master/docs/example3-classes.jpg)

#### Display images in separate, interactive tabs for each unique class

```python
images = [
"docs/example1-tabs.jpg",
"docs/example2-images.jpg",
"docs/example3-classes.jpg",
]
labels = ['class1', 'class2', 'class3']
ipyplot.plot_class_tabs(images, labels, max_images_per_tab=10, img_width=150)

```

![](https://raw.githubusercontent.com/karolzak/ipyplot/master/docs/example1-tabs.gif)

To learn more about what you can do with IPyPlot go to [gear-images-examples.ipynb](https://github.com/karolzak/ipyplot/blob/master/notebooks/gear-images-examples.ipynb) notebook for more complex examples.

0 comments on commit 4fa814d

Please # to comment.