nmalkin / plot-likert

Python library to visualize results from Likert scale survey questions
BSD 3-Clause "New" or "Revised" License
102 stars 25 forks source link

Whitespace #29

Closed Novak3 closed 2 years ago

Novak3 commented 2 years ago

Is there a way to change the whitespace or separation between the various Likert bars? Sometimes you've got a great big stack of bars and the whitespace eats up a lot of your page.

I tried changing the location of the Yticks, but that only changed the location of the labels.

nmalkin commented 2 years ago

You should be able to do it by using a combination of the width and (optionally) the figsize parameters:

Screen Shot 2022-03-16 at 22 43 34

`

Novak3 commented 2 years ago

That sure looks like it should work, but it doesn't. Is that parameter getting passed to Pandas with kwargs?

This: plot_likert.plot_likert(df_likert, dilation_scale, colors=new_palette, figsize=(15,5), width = 1)

produces this: plot_likert() got an unexpected keyword argument 'width'

(The position of the argument doesn't seem to matter.)

nmalkin commented 2 years ago

Yes, sorry about that, the feature I was using hasn't been released to the main/stable version of the library on PyPI.

I'm hoping to fix that soon, but for now, you can get the pre-release with pip install --pre plot-likert.

Novak3 commented 2 years ago

That works-- thanks much!

nmalkin commented 2 years ago

v0.4.0 is now out, so this no longer requires installing the prerelease version.