Skip to content

Add option to create horizontally-oriented stem plots #18187

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 8 commits into from
Aug 14, 2020

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Aug 6, 2020

PR Summary

This is a rebase and slight squash of #6168. It also fixes the documentation, style, and tests to match current practices.

Fixes #5856.
Closes #6168.

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/next_api_changes/* if API changed in a backward-incompatible way

@QuLogic QuLogic added this to the v3.4.0 milestone Aug 6, 2020
@QuLogic QuLogic force-pushed the 6168-vertical-stem branch from 4cd53fe to b940f57 Compare August 11, 2020 05:04
@QuLogic QuLogic changed the title Add option to create vertically-oriented stem plots Add option to create horizontally-oriented stem plots Aug 11, 2020
vecuenca and others added 7 commits August 12, 2020 23:43
* Added docstrings for optional args in stem, made vertical default to
  false
* Added flipping and renamed xs and ys in stem
Also modified documentation for the change.
Flipped thisx to thisy and vice versa when the orientation value is
vertical
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
They are no longer x/y when using a different orientation. Also, this
should fix the unit conversion to use the correct Axis.
@QuLogic QuLogic force-pushed the 6168-vertical-stem branch from b940f57 to 99e7ede Compare August 13, 2020 03:44
Copy link
Member

@timhoffm timhoffm left a comment

Choose a reason for hiding this comment

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

Optionally, use the suggested shorter what's new entry.

@QuLogic QuLogic force-pushed the 6168-vertical-stem branch from 99e7ede to 13d962a Compare August 14, 2020 05:15
@jklymak
Copy link
Member

jklymak commented Aug 14, 2020

CI doesn't pass, but its the MacOS problem not this PR

@jklymak jklymak merged commit ade20db into matplotlib:master Aug 14, 2020
@jklymak
Copy link
Member

jklymak commented Aug 14, 2020

Thanks @vecuenca and @QuLogic ! This looks to be a very useful addition...

@QuLogic QuLogic deleted the 6168-vertical-stem branch August 14, 2020 20:27
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.

Horizontal stem plot
5 participants