Skip to content

DOC : add note about np.matrix and pandas objects #3394

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 22, 2014

Conversation

tacaswell
Copy link
Member

There is no intentional support for np.matrix or
pandas data objects as input to plotting functions.

Closes #2138

There is no intentional support for np.matrix or
pandas data objects as input to plotting functions.
@tacaswell tacaswell added this to the v1.4.0 milestone Aug 22, 2014
@jenshnielsen
Copy link
Member

This looks good to me. Do we want to add a note with an example about how to do this?
I.e.

a = pandas.DataFrame(np.random.rand(4,5), columns = list('abcde'))
a_asndarray = a.values
b = np.matrix([[1,2],[3,4]])
b_asarray = np.asarray(b)

Otherwise this is ready to merge

@tacaswell
Copy link
Member Author

Done.

@WeatherGod
Copy link
Member

+1 from me. I'll merge once the Travis confirms everything

@jenshnielsen
Copy link
Member

After restarting travis, the non related error went away. Merging

jenshnielsen added a commit that referenced this pull request Aug 22, 2014
DOC : add note about np.matrix and pandas objects
@jenshnielsen jenshnielsen merged commit aa49f1f into matplotlib:master Aug 22, 2014
@WeatherGod
Copy link
Member

Ah, beat me to it!

@tacaswell tacaswell deleted the input_type_faq branch August 22, 2014 18:27
jenshnielsen added a commit to jenshnielsen/matplotlib that referenced this pull request Aug 22, 2014
DOC : add note about np.matrix and pandas objects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pyplot.scatter not converting *x* and *y* to a 1-D sequence when the input is a 1xN matrix...
4 participants