How to create a Bar Chart with Python Pandas with Greek Labels - python

i am trying to make a bar chart using pandas and matplotlib. The data is depicted in the dataframe (champs_by_number_of_matches) bellow and it is Greek.
by typing: champs_by_number_of_matches.plot(kind = 'bar')
i get the graph bellow. How can i get the x-axis labels to show Greek?
This is a frequent problem i have encountered and i dont want to convert the labels to "Greeklish".
Thank you.

Related

How to plot multiple stacked x-axis boxplot using Plotly Python

I wish to create multiple stacked x-axis using plotly python with below code. However, it only allows me to stack up 2 levels. Need Help. Thank you.
img1 = go.Figure()
img1.add_trace(go.Box(x=[df1['A'], df1['B'], df1['C']], y=df1['y_value']))
What I get:
What I want:

Image background in bar charts using bokeh (python)

I have a basic bar chart with the x-axis having categorical values of countries. I want to give each bar, an image background of the country's flag, to make the chart more appealing also to eliminate the x-axis labels. I am currently using bokeh for my charts and I dont think it is possible via this. Any ideas for the same, maybe some other python libraries which might do the trick?
Thanks

Is there anyway to change xticks in a plot with a data frame table?

Hey guys I was wondering if there is a way to change xticks in a plot with pandas data frame? I recently see this line chart that instead of the regular xticks, it has dataframe or table as the xticks. Can we do this by using matplotlib or seaborn? Check the picture to see the line chart. Sorry for my english.
In matplotlib there is such a possibility:
example 1, example 2, matplotlib manual.
Try to replace the bar command by a plot command

Using sns to plot a JIRA like created v/s resolved

I'm struggling with a basic qs.
My dataframe looks like this:
q = pd.DataFrame(data=[[28,50,30],[29,40,40],[30,30,30]],columns=['sprint','created','resolved'])
I want to plot a barplot with sprint & for each sprint I want to plot created & resolved.
Can someone help out how this can be done?
Pandas can use matplotlib in order to display information of pandas objects. In your case it seems for me the easiest way to go with pandas plots.
The following gives you a plot with only the information about the sprints as a bar plot
df.sprint.plot(kind='bar')
This gives you a plot for each sprint showing the created and resolved tasks
df.groupby('sprint').plot(y=['created','resolved'], kind='bar')

How to place a value outside stacked bar chart in xlsxwriter

in a stacked bar chart, is there's a way to put the value outside the chart using xlsxwriter?
You can add data labels to chart series in XlsxWriter charts.
See the Chart series option: Data Labels section of the Working with Charts part of the docs.
However, I'm not sure if Excel has an option to put data labels outside the bar for stacked bar charts.

Categories

Resources