Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

matoplotlib set white background

import matplotlib.pyplot as plt
plt.style.use('dark_background')
Comment

plt text matplotlib white background

import numpy as np
import matplotlib.pyplot as plt
plt.figure()
ax = plt.subplot(111)
plt.plot(np.linspace(1,0,1000))
t = plt.text(0.03,.95,'text',transform=ax.transAxes,backgroundcolor='0.75',alpha=.5)
plt.show()
Comment

PREVIOUS NEXT
Code Example
Python :: pytest skip 
Python :: python datetime now only hour and minute 
Python :: how to install gym 
Python :: image to text python 
Python :: python find all pairs in list 
Python :: open website python 
Python :: how to rewrite minute in datetime python 
Python :: python selenium scroll all down 
Python :: python current date and time 
Python :: python get stock data 
Python :: pandas series values into strings 
Python :: opencv get area of contour 
Python :: check python version ubuntu 
Python :: code for showing contents of a file and printing it in python 
Python :: how to get the contents of a txt file in python 
Python :: how to get unix timestamp in python 
Python :: python dns pip 
Python :: python convert querydict to dict 
Python :: python datetime round to nearest hour 
Python :: python print in color 
Python :: remove comma from string python column 
Python :: python set env var 
Python :: python check if item in 2d list 
Python :: sort_values 
Python :: r2 score sklearn 
Python :: tkinter python may not be configured for Tk 
Python :: pip neat 
Python :: how to plot a graph using matplotlib 
Python :: how to plot two columns graphs in python 
Python :: imbade image to jupyter notebook 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =