I just wanted to get started on using the matplotlib library for the first time.
So I type the following commands:
import numpy as np
import scipy as sp
import matplotlib.pyplot as plt
data = sp.genfromtxt("web_traffic.tsv", delimiter = "\t");
x = data[:, 0];
y = data[:, 1];
x = x[~sp.isnan(y)];
y = y[~sp.isnan(y)];
plt.scatter(x, y);
And I have received the following error :
<matplotlib.collections.PathCollection object at 0x246abd0>
I have no idea what is causing this, I have just installed the required packages, scipy
, matplotlib
and it returned to me that particular error. I tried to google it but with no results.
I am using openSuse as OS and python came by default. My main purpose is to start learning using the scykit learn
package.
Can you give me any advice on how to get over this error?