2016-07-21 9 views
0

Ich versuche, das Plotten Stil in matplotlib zu setzen:Matplotlib benutzerdefinierten Stil Fehler

import pandas as pd 

import matplotlib 

print matplotlib.__version__ 

matplotlib.style.use('ggplot') 

Ausgang:

1.5.1

AttributeError: 'module' object has no attribute 'style'

So die Version meiner matplotlib ist> 1,4, aber Stil immer noch nicht funktioniert. Ich habe bestätigt, dass sich der Style-Ordner in site-packages befindet.

Jede Hilfe wäre willkommen. Dank

Antwort

0

Versuchen Sie folgendes:

%matplotlib inline 
import pandas as pd 
import matplotlib 
print matplotlib.version 
matplotlib.style.use('ggplot') 
Verwandte Themen