Error with Python.Plotting - Need to plot more than one scatter_matrix in Python

Viewed 357

I need to plot more than one scatter_matrix graph at once. Please find the code that I use:

import pandas as pd
smallX = pd.read_csv('data.csv')

scart = ['tau1', 'tau2', 'tau3']
uni = ['tau4', 'tau5', 'tau6']
for q in scart:
    smallX.drop(q, axis=1, inplace=True)
smallXkeys=list(smallX.columns.values)
for i4 in smallXkeys:
    if (i4 == uni):
        smallX = pd.read_csv('data.csv')
            for q in scart:
                smallX.drop(q, axis=1, inplace=True)
            for t in smallXkeys:
                print("entered")
                smallX.drop(t, axis=1, inplace=True)
                pd.plotting.scatter_matrix(smallX, alpha=0.2, figsize=(15, 15), diagonal='kde')

I obtain two scatter_matrixes, but not more than that. In the middle, I get the following error:

C:\ProgramData\Anaconda3\lib\site-packages\matplotlib\axes\_base.py:3124: UserWarning: Attempting to set identical left==right results
in singular transformations; automatically expanding.
left=1.0, right=1.0
  'left=%s, right=%s') % (left, right))
C:\ProgramData\Anaconda3\lib\site-packages\matplotlib\axes\_base.py:3443: UserWarning: Attempting to set identical bottom==top results
in singular transformations; automatically expanding.
bottom=1.0, top=1.0
  'bottom=%s, top=%s') % (bottom, top))

How can I resolve this error?

0 Answers
Related