Skip to content

Add option to create horizontally-oriented stem plots - #18187

Merged
jklymak merged 8 commits into
matplotlib:masterfrom
QuLogic:6168-vertical-stem
Aug 14, 2020
Merged

jklymak merged 8 commits into
matplotlib:masterfrom
QuLogic:6168-vertical-stem

Conversation

@QuLogic

@QuLogic QuLogic commented Aug 6, 2020

Copy link
Copy Markdown
Member

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
Comment thread lib/matplotlib/axes/_axes.py Resolved
Comment thread lib/matplotlib/axes/_axes.py Resolved
@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
Comment thread lib/matplotlib/axes/_axes.py Resolved
Comment thread lib/matplotlib/tests/test_axes.py Resolved
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
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

@timhoffm timhoffm left a comment

Copy link
Copy Markdown
Member

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

jklymak commented Aug 14, 2020

Copy link
Copy Markdown
Member

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

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

jklymak commented Aug 14, 2020

Copy link
Copy Markdown
Member

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