Arviz: Variable names in element labels for `plot_forest` should be optional

Created on 27 Jan 2021  Â·  5Comments  Â·  Source: arviz-devs/arviz

Currently, creating a forest plot with plot_forest uses <var name> <coordinate name> as the scheme for labels on the y-axis. This creates a slew of repeated variable names in the labels, which I would guess is almost always undesirable (particularly when you have nice element labels as coordinates in the dataset):

Screen Shot 2021-01-27 at 1 02 58 PM

There should be excluded by default, and turned on with a include_var_names=True (or similar) argument.

Alternatively, the first coordinate could include the variable name, and then exclude it for subsequent ones.

Most helpful comment

... and in Bokeh

Screen Shot 2021-01-27 at 10 37 21 PM

All 5 comments

What would probably be even better is if we displayed the var_name + coords
only once and then only the coords. Not sure how much harder that would be
🤔

Le mer. 27 janv. 2021 à 20:12, Chris Fonnesbeck notifications@github.com
a écrit :

Currently, creating a forest plot with plot_forest uses
as the scheme for labels on the y-axis. This creates a
slew of repeated variable names in the labels, which I would guess is
almost always undesirable (particularly when you have nice element labels
as coordinates in the dataset):

[image: Screen Shot 2021-01-27 at 1 02 58 PM]
https://user-images.githubusercontent.com/81476/106040982-d6389b80-60a0-11eb-9f8a-be4a4a579062.png

There should be excluded by default, and turned on with a
include_var_names=True (or similar) argument.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/arviz-devs/arviz/issues/1524, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHIJMTAY5ZJVX4DWSKSPUXLS4BQSDANCNFSM4WVZC55A
.

Yeah, that's what I meant by the second comment. If there is only one (multivariate) variable it should probably only use the coord names, except for the first element.

How about something like this (using the mpl_plot_forest_ridge example):

Screen Shot 2021-01-27 at 10 23 03 PM

here is the current behavior:

Figure_1

Got a PR ready to go if this works for everyone.

I like it!

On Wed, Jan 27, 2021, 11:29 PM Chris Fonnesbeck notifications@github.com
wrote:

How about something like this (using the mpl_plot_forest_ridge example):

[image: Screen Shot 2021-01-27 at 10 23 03 PM]
https://user-images.githubusercontent.com/81476/106089777-4ae5f700-60ee-11eb-8a84-5a343ff99827.png

here is the current behavior:

[image: Figure_1]
https://user-images.githubusercontent.com/81476/106090062-de1f2c80-60ee-11eb-80e8-20962e5db01a.png

Got a PR ready to go if this works for everyone.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/arviz-devs/arviz/issues/1524#issuecomment-768791457,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AARQOEH5OZBXZJ4EW5S26PDS4DRY3ANCNFSM4WVZC55A
.

... and in Bokeh

Screen Shot 2021-01-27 at 10 37 21 PM

Was this page helpful?
0 / 5 - 0 ratings