Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

set xlim histogram python

import numpy as np
import matplotlib.pyplot as plt

x = np.random.uniform(-100, 100, 1000)
plt.hist(x, bins=30, range=(-50, 50))
plt.show()
Comment

PREVIOUS NEXT
Code Example
Python :: pandas legend placement 
Python :: count_values in python 
Python :: how to get length of string in python 
Python :: flask wtforms multiple select 
Python :: shift list python 
Python :: Game of Piles Version 2 
Python :: open file in python directory 
Python :: python projects with source code 
Python :: how to add new column in csv file using pandas 
Python :: python get zip file size 
Python :: How to append train and Test dataset in python 
Python :: decimal to binary in python 
Python :: convert .py to .exe 
Python :: pandas convert first row to header 
Python :: plt text matplotlib white background 
Python :: django only certain columns from database 
Python :: how to view all attributes and methods of an object python 
Python :: matplotlib set integer ticks 
Python :: django get parameters from url 
Python :: input in one line python 
Python :: python last n array elements 
Python :: seaborn pairplot python 
Python :: python 1 line for loop with else 
Python :: python how to show package version 
Python :: closing a file in python 
Python :: python array slice 
Python :: python json string indices must be integers 
Python :: python if string contains substring 
Python :: print random integers python 
Python :: import all csv as append dataframes python 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =