Reader small image

You're reading from  Matplotlib 3.0 Cookbook

Product typeBook
Published inOct 2018
PublisherPackt
ISBN-139781789135718
Edition1st Edition
Right arrow
Authors (2):
Srinivasa Rao Poladi
Srinivasa Rao Poladi
author image
Srinivasa Rao Poladi

Srinivasa Rao Poladi has been in the IT services industry for over two decades, providing consulting and implementation services in data warehousing, business intelligence, and machine learning areas for global customers. He has worked with Wipro Technologies for two decades and played key leadership roles in building large technology practices and growing them to multi-million $ business. He spoke at international conferences, published many blogs and white papers in the areas of big data, business intelligence, and analytics. He is a co-founder of krtrimaIQ a consulting firm that provides cognitive solutions to create tomorrow's Intelligent Enterprises powered by automation, big data, machine learning, and deep learning.
Read more about Srinivasa Rao Poladi

Nikhil Borkar
Nikhil Borkar
author image
Nikhil Borkar

Nikhil Borkar holds a CQF designation and a post Graduate Degree in Quantitative finance. He also holds the Certified Financial Crime examiner and Certified Anti-Money Laundering Professional qualifications. He is a registered Research Analyst with the Securities and Exchange Board of India (SEBI) and has a keen grasp of the Indian regulatory landscape pertaining to Securities and Investments. He is currently working as an independent FinTech and legal consultant. Prior to this, the worked with Morgan Stanley Capital International (MSCI) as a Global RFP Project Manager.
Read more about Nikhil Borkar

View More author details
Right arrow

Embedding Matplotlib in a Tkinter GUI application

In this recipe, we will learn how to embed Matplotlib in a Tkinter GUI application. Here, the control of the application flow will be with Tkinter. Here, we will not use the pyplot module and associated plt.figure() method. Instead, we invoke the Tkinter application and embed Matplotlib's canvas as a widget.

Getting ready

Here, we will not set up the backend, as the application itself is to be started from the GUI.

Import the required libraries:

import tkinter as tk 
import numpy as np
from tkinter.font import Font
from matplotlib.figure import Figure
from matplotlib.backends.backend_tkagg import (FigureCanvasTkAgg, NavigationToolbar2Tk)
...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Matplotlib 3.0 Cookbook
Published in: Oct 2018Publisher: PacktISBN-13: 9781789135718

Authors (2)

author image
Srinivasa Rao Poladi

Srinivasa Rao Poladi has been in the IT services industry for over two decades, providing consulting and implementation services in data warehousing, business intelligence, and machine learning areas for global customers. He has worked with Wipro Technologies for two decades and played key leadership roles in building large technology practices and growing them to multi-million $ business. He spoke at international conferences, published many blogs and white papers in the areas of big data, business intelligence, and analytics. He is a co-founder of krtrimaIQ a consulting firm that provides cognitive solutions to create tomorrow's Intelligent Enterprises powered by automation, big data, machine learning, and deep learning.
Read more about Srinivasa Rao Poladi

author image
Nikhil Borkar

Nikhil Borkar holds a CQF designation and a post Graduate Degree in Quantitative finance. He also holds the Certified Financial Crime examiner and Certified Anti-Money Laundering Professional qualifications. He is a registered Research Analyst with the Securities and Exchange Board of India (SEBI) and has a keen grasp of the Indian regulatory landscape pertaining to Securities and Investments. He is currently working as an independent FinTech and legal consultant. Prior to this, the worked with Morgan Stanley Capital International (MSCI) as a Global RFP Project Manager.
Read more about Nikhil Borkar