Skip to content

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Nov 9, 2019

This makes examples shorter and more to the point by simplifying the
data-load part. A small (standard) backcompat-dance is needed.

Edit: will also depend on #15645.
Edit: now good to go.

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@anntzer anntzer added this to the v3.3.0 milestone Nov 9, 2019
@anntzer anntzer force-pushed the get_sample_data-npy branch from edfcd85 to 19b3427 Compare November 9, 2019 17:32
@anntzer anntzer mentioned this pull request Nov 9, 2019
6 tasks
@anntzer
Copy link
Contributor Author

anntzer commented Dec 29, 2019

rebased

@anntzer anntzer force-pushed the get_sample_data-npy branch from 50e95bf to 4388154 Compare February 11, 2020 09:57
Copy link
Member

@tacaswell tacaswell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am normally very wary of kwargs that change the return type, but that train has already left the station with this function so I am 👍 on adding the ability to get it as a numpy array. However I am -0 on changing the default to True in the future.

However given that this is primarily a helper function for our documentation I am perfectly happy to have this merged over my concern.

@anntzer
Copy link
Contributor Author

anntzer commented Feb 11, 2020

Well the whole point is to change the default to True in the future; if you don't want to do that I'm not even sure the PR is worth it.
How many people actually want to have the path to our sample data, as opposed to loading our sample data? (Well sure technically we don't know, however I think we can make a reasonable guess...)

This makes examples shorter and more to the point by simplifying the
data-load part.  A small (standard) backcompat-dance is needed.
@anntzer
Copy link
Contributor Author

anntzer commented May 22, 2020

rebased

@anntzer anntzer force-pushed the get_sample_data-npy branch from 4388154 to d7d11a7 Compare May 22, 2020 09:31
@tacaswell tacaswell merged commit a1c51a0 into matplotlib:master May 22, 2020
@anntzer anntzer deleted the get_sample_data-npy branch May 22, 2020 13:00
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.

5 participants