[Tutor] Barplot order-arrangement
Hi, I have created a barplot in Python. Now I want to arrange the order of the bars differently. I want them to be ordered from highest to lowest - how do I do that? Furthermore, I would like the names of the bars to be vertical - how do I do that? This is the code I have written: sns.barplot(x='word',y='andelelite',data=plotpanda) I have also attached a picture of the plot I have created. [cid:5226C847-252D-4E1A-9657-D4512B5085B9@emea.devoteam.com] ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Barplot order-arrangement
On 12/02/18 15:47, Charlotte Hoff Sonne wrote: > Hi, > > I have created a barplot in Python. It will help f you tell us which version of Python and which OS. > This is the code I have written: > sns.barplot(x='word',y='andelelite',data=plotpanda) What is sns? It's not part of the standard library so presumably it's a library you downloaded? Or maybe part of something like numpy or SciPy? > I have also attached a picture of the plot I have created. Binary attachments get stripped by the mail server. It will be better if you can put the picture on a web server somewhere and provide a link. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor