-1

I am using seaborn to plot a distribution using sns.distplot(x) and am having some issues with overriding the default distance between axis labels. Here is the plot

enter image description here

The issue I have is that along the x axis, I would rather have each integer and not a float spaced 2.5 apart.

I have been having a look online and havent found anything that explains how to do this.

Edited: Given that Seaborn is built upon matplotlib, I want to know how the 2 interact. How do I take this chart that is created using Seaborn and use matplotlib to edit it? Then how do I use matplotlib to change these axis to those I am looking for?

Taylrl
  • 3,601
  • 6
  • 33
  • 44
  • Why has this been down-voted??? – Taylrl Jun 22 '17 at 16:26
  • 2
    This is a `matplotlib` issue, not a `seaborn` issue. Take a look at https://stackoverflow.com/a/36229671/5285918 Note you'll have to return the matplotlib axis you're plotting on, something like `ax = sns.distplot(x)` – lanery Jun 22 '17 at 16:37

1 Answers1

0

Seaborn is built on top of matplotlib and merely extends its functionality. It should be thought of as complimentary to matplotlib and not a replacement for it. A more detailed explanation of Seaborn and what it does can be found here:

http://seaborn.pydata.org/introduction.html

A good answer to this question however can be found here

stackoverflow.com/a/36229671/5285918

Gaurav Taneja
  • 1,084
  • 1
  • 8
  • 19
Taylrl
  • 3,601
  • 6
  • 33
  • 44