Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Adjusting Subplot Margins in Matplotlib

import matplotlib.pyplot as plt
 
# Left Plot
plt.subplot(1, 2, 1)
plt.plot([-2, -1, 0, 1, 2], [4, 1, 0, 1, 4])
 
# Right Plot
plt.subplot(1, 2, 2)
plt.plot([-2, -1, 0, 1, 2], [4, 1, 0, 1, 4])
 
# Subplot Adjust
plt.subplots_adjust(wspace=1.3)
 
plt.show()
Comment

PREVIOUS NEXT
Code Example
Python :: how can i make a list of leftovers that are str to make them int in python 
Python :: sort dict by values 
Python :: plt.legend( 
Python :: how to create qthread in pyqt5 
Python :: how to delete a file in python 
Python :: random number pythob 
Python :: length of pandas dataframe 
Python :: pyautogui press 
Python :: python check if class has function 
Python :: python tar a directory 
Python :: input command in python shell 
Python :: skip error python 
Python :: dynamic array python numpy 
Python :: Create list with numbers between 2 values by 
Python :: iso date convert in python 
Python :: python name input 
Python :: read files and write into another files python 
Python :: function without return python 
Python :: get number of rows pandas 
Python :: make tkinter label and input 
Python :: data frame list value change to string 
Python :: sieve of eratosthenes python 
Python :: python install jedi 
Python :: python color input 
Python :: form errors in django 
Python :: fnd closest element in array numpy 
Python :: python Decompress gzip File 
Python :: python telethon 
Python :: operator precedence in python 
Python :: read a csv and plot in python 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =