Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey
3 votes
2 answers
68 views

How to generate scatter plot of all numeric columns against specific columns in the same dataframe

I have a dataframe with a mix of data types (object and numeric). I want to plot a scatter plot for all numeric columns in the dataset against specific columns: col_32, col_69,col_74 and col_80 ...
RayX500's user avatar
  • 319
Advice
0 votes
4 replies
106 views

Ridgeplot with area charts in plotly (or any other free python library)

I'm trying to create a chart, that looks like a Ridgeplot (for examples see this and this), but has smoothed Area charts with a categorical x-axis as a basis. Why standard Ridgeplot libraries don't ...
MaximJ's user avatar
  • 35
-1 votes
0 answers
121 views

Create a loop that gives the prices of gold for different dates from an API [closed]

This is the API that I'm using: https://www.goldapi.io/dashboard Basically, what I want to achieve from this project is a Tkinter program that displays the prices of gold in different currencies on ...
Zaina's user avatar
  • 9
2 votes
1 answer
68 views

Seaborn pairplot with one dataset having only NaN values leads to unexpected behavior

I have two datasets I'd like to plot in a single corner plot. In some instances, one of the datasets may be empty, but I'd still like the legend to show the keys for both datasets. I thought setting ...
user1799323's user avatar
0 votes
0 answers
87 views

"UserWarning: No artists with labels found to put in legend" Error when trying to create a legend with labels from dataset

I can't get legend labels to show up when I use 'CONDITION' (a longer string) as my x data and hue, however when I use CONDITION_N (a shorter string) as the hue then it appears. Why? Warning: /var/...
Sarah Warner's user avatar
2 votes
1 answer
70 views

How to set background seaborn style in a multi-plot figure with subplot()

I have a multi-plot bar plot figure produced with matplotlib/ seaborn and I'd like to control the tick lines and background style. When I try to use sns.set_style("whitegrid"), the ...
Will Hamilton's user avatar
1 vote
2 answers
71 views

Seaborn swarmplot - Change the shape of some dots

Currently I am generating this figure ax = sns.swarmplot(data=df, x="value", y="letter", log_scale=2, hue="type", palette=my_palette, size=6) hue/palette I would like to ...
Benoit Wernerus's user avatar
3 votes
2 answers
97 views

Seaborn heatmap with a logarithmic colorbar with each color resembling one order of magnitude?

I´m trying to plot some data in a heatmap. The expected data can be in the range between 1x100 and 1x109, so I´d like to use a discrete logarithmic color scale where one color represents one order of ...
lilith's user avatar
  • 33
2 votes
2 answers
94 views

Hide legend labels with underscore in matplotlib>3.10

I create a plot with seaborn that has several lines and error bands. In the legend, I only want to show some of the labels and hide others. Previously, it was possible to call ax.legend(['one', '_', '...
skjerns's user avatar
  • 2,270
2 votes
0 answers
51 views

broken x axis and broken dual y-axes - draw replot across subplots

My post relates to this one here: Formatting a broken y axis in python matplotlib I have borrowed code from this post and adapted it to what I am doing. I am attempting to create a graph whereby I am ...
jmcgowan's user avatar
1 vote
0 answers
77 views

Seaborn objects stacked bar plot not respecting dodge

I have survey data where I have an 'index' of the survey question, a 'variable' of the answer, and a 'value' of the fraction of respondents that gave the answer. The survey was repeated in two ...
Erin W's user avatar
  • 59
1 vote
1 answer
34 views

How to use both fixed colors and colorbar with range in matplotlib/seaborn heatmap

I saw JohanC's answer here: How to set fixed color ranges with Seaborn heatmap? When I made my plot, I had two types of cells that I needed to highlight: those with fixed values (e.g.,0 and 1), and ...
Cats's user avatar
  • 11
1 vote
1 answer
44 views

Seaborn fig_size = textwidth: figure much smaller than expected

I'm having an issue with setting the figure and font sizes in my seaborn plots to make sure that everything is the expected size and can be pasted into a Latex file for publication. Fig_size is set to ...
RBG's user avatar
  • 81
1 vote
3 answers
86 views

Can't return graph to website using Flask and HTML

This file is called 'html app.py' from flask import Flask, render_template, request import yfinance as yf import seaborn as sns import matplotlib.pyplot as plt import io import base64 app = Flask(...
rashmip_21's user avatar
1 vote
1 answer
105 views

Tried plotting yfinance data by framing into pandas with the help of seaborn and matplotlib. Shows error no matter what. How to fix this?

import yfinance as yf import matplotlib.pyplot as plt import seaborn as sns import pandas as pd df = yf.download('AAPL',start="2021-01-01",end='2025-07-13') print(df.head()) #display the ...
Rashmi Priya's user avatar

15 30 50 per page
1
2 3 4 5
653