# 4. Seaborn

<figure><img src="https://2909106259-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl07NBXgl5MbkBetObqPW%2Fuploads%2Fv7YREdICIV7XKaAuJ7Sn%2Fimage.png?alt=media&#x26;token=5e2cb7d2-3c98-429c-af8b-a487b153f998" alt="" width="281"><figcaption></figcaption></figure>

1. Click on ***Seaborn*** in the ***Visualization*** category.

<figure><img src="https://2909106259-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl07NBXgl5MbkBetObqPW%2Fuploads%2FyAvJ5rBPfKgHJn6ZoLl8%2Fimage.png?alt=media&#x26;token=797f0990-3db7-4c1c-9ad8-019541a33197" alt="" width="563"><figcaption></figcaption></figure>

2. You can use ***Settings*** to set the default style of the graph. For detailed configuration, use ***Chart Style*** in the ***Visualization*** category.
3. ***Chart Preview***: You can preview the plot that will be displayed. In ***Sampling** on the* top right, you can set the number of samples to use for the preview.

***

[Data](#data)

[Axes](#axes)

[Info](#info)

[Style](#style)

[Code](#code)

***

### Data

<figure><img src="https://2909106259-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl07NBXgl5MbkBetObqPW%2Fuploads%2FhwexgN9NDpFqcFnyvSXw%2Fimage.png?alt=media&#x26;token=f914b9a2-1a68-49c4-9c8a-a444f37a347a" alt="" width="563"><figcaption></figcaption></figure>

1. ***Chart Type***: Select the type of chart.
2. ***Data***: Select the data you want to graph. To select a specific column, use the funnel icon. To set X and Y separately, check ***Set X and Y individually**.*
3. *User Option*: You can add additional code beyond the functionality provided by Visual Python.

**\*The manuals provided below may or may not exist depending on the type of chart.**&#x20;

4. ***Hue***: Further segment the data based on other columns or data based on the data already selected. Based on the new criteria, the data is displayed in different colors.
5. ***Bins***: If the data you want to represent in a histogram is continuous, you can divide it into a certain number of *bins.* It will be displayed as bars divided by the specified intervals.
6. ***KDE***: Use the Density Plot format to smooth the appearance of the Histogra&#x6D;*.*
7. ***Stat***: Select the meaning of each bar in the Histogram, for example, if you select '***Count**',* the height of each bar will represent the number of data points in that interval.
8. ***Orient***: Choose the orientation of the graph (Bar Plot).
9. ***Annot***: Choose whether you want to show data values in each cell of the graph (Heatmap).

***

### Axes

<figure><img src="https://2909106259-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl07NBXgl5MbkBetObqPW%2Fuploads%2FEP9oMicRTEzpNugJYalI%2Fimage.png?alt=media&#x26;token=81bc335c-4296-4aa4-b10b-0ecc39403c3d" alt="" width="563"><figcaption></figcaption></figure>

1. ***X Limit, Y Limit***: Define the range of data to be displayed on the X and Y axis.
2. ***X ticks, Y ticks***: Set the scale for the X and Y axes.
   1. Specify where the tick marks should appear in the following format \[0, 1, 2, 3] -> the scale is drawn at the four locations you specify.
   2. Set the label (letter or number) to be displayed as a scale in the following format \['a', 'b', 'c', 'd'] -> The specified values will be displayed in order on each scale.
3. ***Rotation***: Rotates the scale by the specified angle. This is useful if you have overlapping text.

***

### Info

<figure><img src="https://2909106259-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl07NBXgl5MbkBetObqPW%2Fuploads%2FPxhXatp32KUEkcjCKVJg%2Fimage.png?alt=media&#x26;token=bf2d52d1-bc00-4209-a951-c48ef18d8657" alt="" width="563"><figcaption></figcaption></figure>

1. ***Title***: Set a title for the graph. The name is placed at the top center of the graph.
2. ***Labels***: Set the names for the X-axis and Y-axis.
3. ***Legend***: Set where to display the legend.

***

### Style

<figure><img src="https://2909106259-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl07NBXgl5MbkBetObqPW%2Fuploads%2FfsyYO3yz6i6VVODqK4tO%2Fimage.png?alt=media&#x26;token=66f73d9a-c18a-4f48-b72c-b5597bb9cb57" alt="" width="563"><figcaption></figcaption></figure>

1. ***Color***: You can check ***Use Color*** to enable the use of color and select a color for the graph.
2. ***Grid***: Select whether to use a grid. You can also assign a color.
3. ***Marker***: Select a style for the marker.

***

### Code

<figure><img src="https://2909106259-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl07NBXgl5MbkBetObqPW%2Fuploads%2FU9TsIWV6BBqKviFFXlaC%2Fimage.png?alt=media&#x26;token=58748b5c-6421-4e92-804b-9f4bd83a6fd0" alt="" width="563"><figcaption></figcaption></figure>

1. You can add additional code beyond what Visual Python provides.
