Skip to content

Added marker and line options for forestplot #2220

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 4 commits into from
May 26, 2017
Merged

Conversation

fonnesbeck
Copy link
Member

Added options for:

  • line width
  • color
  • marker
  • marker size
  • font size

Defaults are no longer hard-coded.

chain_spacing=0.05, vline=0, gs=None, plot_transformed=False):
chain_spacing=0.05, vline=0, gs=None, plot_transformed=False,
marker='o', markersize=4, color='blue', linewidth=2,
fontsize=None):
Copy link
Member

Choose a reason for hiding this comment

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

Why not pipe through **kwargs?

markersize = plot_kwargs.pop('markersize', 4)
color = plot_kwargs.pop('color', 'blue')
linewidth = plot_kwargs.pop('linewidth', 2)
fontsize = plot_kwargs.pop('fontsize', None)
Copy link
Member

Choose a reason for hiding this comment

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

Can't we just forward all of **plot_kwargs to the plotting function below?

Copy link
Member Author

Choose a reason for hiding this comment

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

I suppose so. fontsize gets used further down, but I can push everything into _plot_tree.

@twiecki
Copy link
Member

twiecki commented May 25, 2017

LGTM.

@twiecki twiecki merged commit 6fe51e5 into master May 26, 2017
@twiecki twiecki deleted the forestplot_color branch May 26, 2017 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants