Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

log scale seaborn

import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt

x = 10 ** np.arange(1, 10)
y = x * 2
data = pd.DataFrame(data={'x': x, 'y': y})

f, ax = plt.subplots(figsize=(7, 7))
ax.set(xscale="log", yscale="log")
sns.regplot("x", "y", data, ax=ax, scatter_kws={"s": 100})
Comment

PREVIOUS NEXT
Code Example
Python :: get video duration opencv python 
Python :: jupyter notebook show more rows 
Python :: python clipboard to image 
Python :: get attribute in selenium python 
Python :: ver todas linhas dataframe pandas 
Python :: get list of all files in folder and subfolders python 
Python :: sort python dictionary by date 
Python :: python range for float 
Python :: change background color of tkinter 
Python :: datetime one month ago python 
Python :: decisiontreeclassifier sklearn 
Python :: cv2 image object to base64 string 
Python :: Python sort dataframe by list 
Python :: define a column as index pandas 
Python :: mouse in pygame 
Python :: django proper capitalization case jinja 
Python :: matplotlib set dpi 
Python :: list all files of a directory in Python 
Python :: django admin slug auto populate 
Python :: how to subtract 2 lists in python 
Python :: summation django queryset 
Python :: how to do label encoding in multiple column at once 
Python :: how to split channels wav python 
Python :: increase contrast cv2 
Python :: python print error traceback 
Python :: Could not locate a bind configured on mapper mapped class class-tablename, SQL expression or this Session. 
Python :: check iterable python 
Python :: get parameters flask 
Python :: python plot_confusion_matrix 
Python :: how to set google chrome as default browser when coding with python using webbroiwser module 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =