Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
42 views

Change y axis scaling on a Seaborn Heatmap

I am at the final stage of displaying a heatmap within a facetgrid. When I am presenting the data, some of the index values may or may not be present for the row / column combination. I would like to ...
sxs's user avatar
  • 59
0 votes
0 answers
19 views

Setting title in displot for each subplot

I want to set the title of each graph to be the crop type and the interval it is looking at. # Load the CSV files df_corn = pd.read_csv(r"D:\Final Prep\Everything\WUVR_corn.csv") df_soy = ...
Ekkehardt Rosasee's user avatar
0 votes
1 answer
48 views

Change color for displot based on column

I have a displot: I want the data for Corn to be a different color (say Red and Green) and the data for soy to be (Orange and Blue) df_melted = {'Sink_ID': ['100012_HUC8_09020204', '...
Ekkehardt Rosasee's user avatar
2 votes
1 answer
35 views

Using map_dataframe in a FacetGrid

Thanks in advance for your help with my query. I would like to generate 4 heatmaps, the specialty is the row and colnum indicates the column in the facetgrid. Each heatmap should reflect the specialty ...
sxs's user avatar
  • 59
2 votes
1 answer
54 views

How to generate a hierarchical colourmap in matplotlib?

I have a hierarchical dataset that I wish to visualise in this manner. I've been able to construct a heatmap for it. I want to generate a colormap in matplotlib such that Level 1 get categorical ...
K G's user avatar
  • 1,775
-1 votes
1 answer
111 views

Handling Infinite Values in Seaborn

I'm trying to plot a pairplot of my dataset using Seaborn, but I'm encountering an error related to infinite values. Here is the code I'm using: import seaborn as sns import matplotlib.pyplot as plt ...
José Antonio Pino Morales's user avatar
0 votes
0 answers
29 views

How to break y axis after using ax2.twinx()

I have created a plot with two y axis using ax2.twinx(). But now i want to break y axys according to a certain value to create two different sublots with an interval of value between them. How to do ...
toms's user avatar
  • 113
1 vote
0 answers
69 views

How to break multiple y axis in matplotlib subplots

I have two dataframes from which I want to create a figure with two plots. The first corresponds to the daily temperature and the average temperature for each month. The second subplot shows the width ...
toms's user avatar
  • 113
0 votes
1 answer
42 views

Plotting multivariable plot in seaborn using Pandas DataFrame

Reproducing the data frame as showed : dx = {'SEGM':[9, 8, 7, 6, 5, 4, 3, 2, 1, 0], 'YES':[4812, 2697, 2677, 1811, 1570, 1010, 418, 210, 115, 166], 'NO':[590, 1368, 2611, 2968, 3942, 3596, 2141, 1668, ...
Nabi Shaikh's user avatar
0 votes
1 answer
48 views

Hovering Annotations on Seaborn Stripplot

I am currently trying to program a seaborn stripplot which shows a point's column and index in the dataframe when hovered on by the mouse. This raises a few questions: What does stripplot.contains() ...
Rachmanichou's user avatar
0 votes
1 answer
53 views

How to format the scale bar in my heatmap to display words instead of numbers? [duplicate]

I want to make a heatmap using seaborn and want to format the scale bar in such a way that it displays no numbers only low and high. import pandas as pd import matplotlib.pyplot as plt import seaborn ...
user390735's user avatar
0 votes
1 answer
75 views

Data Visualization -Incorrect Data

I have a CSV file with data that I'm trying to compile into some type of graph. I managed to get one beautiful heatmap thanks to Google Colab's "recommended plots" generator, but all other ...
K13's user avatar
  • 11
0 votes
0 answers
51 views

Errorbars in a seaborn.PairGrid plot

I have the following code: import seaborn as sns import pandas as pd import numpy as np import matplotlib.pyplot as plt Data = pd.DataFrame(columns=['x1','x2','x3','label']) for i in range(100): ...
Kaynar's user avatar
  • 63
1 vote
1 answer
63 views

How to apply different kinds of error regions to some subplots of a facet grid

I have a Seaborn facet grid with multiple 4 rows and 2 cols. I want to map lineplots onto the grid from a melted dataframe (with 4 variables and 2 cats) and apply error bars to the top three rows but ...
Gareth Howell's user avatar
1 vote
1 answer
38 views

Problem plotting pandas dataframe containing arrays

I have a tricky question for you concerning data structure in pandas for plotting with seaborn. Let's imagine, I have several experiments, each of them performed in different conditions. The result of ...
toto's user avatar
  • 132

15 30 50 per page
1
2 3 4 5
209