Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

matplotlib y axis log scale

import pylab
import matplotlib.pyplot as plt
a = [pow(10, i) for i in range(10)]
fig = plt.figure()
ax = fig.add_subplot(2, 1, 1)

line, = ax.plot(a, color='blue', lw=2)

ax.set_yscale('log')

pylab.show()
Comment

matplotlib log scale y axis base

ax.set_yscale("log", base=2).
Comment

PREVIOUS NEXT
Code Example
Python :: pandas select first within groupby 
Python :: count different values in list python 
Python :: python string isdecimal 
Python :: seaborn and matplotlib Setting the xlim and ylim python 
Python :: sqlite3 python 
Python :: django regexvalidator example 
Python :: import file in parent directory python 
Python :: python count items in list 
Python :: push element to list python 
Python :: pandas groupby mean round 
Python :: how to find in which directory my python code is running 
Python :: python factorial 
Python :: remove character(s)from each column in dataframe 
Python :: try except python not working 
Python :: jinja2 template import html with as 
Python :: python find index of first matching element in a list 
Python :: start django project in windows 
Python :: python check if website is reachable 
Python :: real hour in python 
Python :: who created python 
Python :: get multiple inputs in python 
Python :: python opencv subtract two images 
Python :: how to concat on the basis of particular columns in pandas 
Python :: underscore in python 
Python :: import get user model django 
Python :: rename in python 
Python :: audioplayer python 
Python :: how to loop through string in python 
Python :: python fstring 
Python :: selenium webdriver scroll down python 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =