how to use matplotlib to plot multi-figures

f, axarr = plt.subplots(2,2)
axarr[0,0].imshow(image_datas[0])
axarr[0,1].imshow(image_datas[1])
axarr[1,0].imshow(image_datas[2])
axarr[1,1].imshow(image_datas[3])
fig = plt.figure()
ax1 = fig.add_subplot(2,2,1)
ax1.imshow(...)
ax2 = fig.add_subplot(2,2,2)
ax2.imshow(...)
ax3 = fig.add_subplot(2,2,3)
ax3.imshow(...)
ax4 = fig.add_subplot(2,2,4)
ax4.imshow(...)

--

--

--

An ordinary guy who wants to be the reason someone believes in the goodness of people. He is living at Brisbane, Australia, with a lovely backyard.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Find your Core Customers and Determine Customer Segments

Data science | Data preprocessing | Iris dataset

Time Series Clustering — Deriving Trends and Archetypes from Sequential Data

RoofingRR: Resources from Marley Eternit https://t.co/1FXZuq1ulf https://t.co/0BtUYUieFW

Coffee Daily ☕ Effect brew temperature = overrated

62

05b My first ML model — Exploratory data analysis

Python 3.10 is Released. Know What’s New and If It’s Worth the Switch

15 Best Data Lineage Tools 2022 | Reviews & Comparison

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ke Gui

Ke Gui

An ordinary guy who wants to be the reason someone believes in the goodness of people. He is living at Brisbane, Australia, with a lovely backyard.

More from Medium

Getting started with linear regression with one variable on Matlab (from scratch)

Exploring Singular Value Decomposition(SVD) from scratch in python

Automate ODK survey forms using XLSform, Python or R

Domain Generalisation