У меня есть приведенный ниже код в соответствии с https://github.com/nmalkin/plot-likert/ ... uide.ipynb
!pip install plot_likert
import plot_likert
import pandas as pd
import matplotlib.pyplot as plt
precomputed_counts2 = pd.DataFrame(
{'Strongly disagree': {'Q1': 3.0},
'Disagree': {'Q1': 9.0},
'Neither agree nor disagree': {'Q1': 13.0},
'Agree': {'Q1': 69.0},
'Strongly agree': {'Q1': 31.0}}
)
precomputed_counts2
ax=plot_likert.plot_counts(precomputed_counts2, plot_likert.scales.agree,colors=plot_likert.colors.likert6,bar_labels_color="black",bar_labels="count");
ax.figure.set_size_inches(12, 2)
ax.xaxis.set_label_text('Difficulty Level of Questions');
< /code>
и выход, как показано ниже:
У выходного сигнала есть метки, но не для категорически не согласен < /p>
Как убедиться, что все параметры имеют данные Метки на графике?>
Подробнее здесь: https://stackoverflow.com/questions/794 ... ler-values
Сюжет-Ликерт не печатает этикетки для меньших значений ⇐ Python
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение