Skip to main content

All Questions

0 votes
0 answers
36 views

How to plot a scatter box plot on subplots on matplotlib

I am trying to plot scatter data over the box plot of that data to show where each point lies. I have found a good solution to this on this previous question: Adding a scatter of points to a boxplot ...
Rachel Matthews's user avatar
1 vote
1 answer
41 views

Create a legend taking into account both the size and color of a scatter plot

I am plotting a dataset using a scatter plot in Python, and I am encoding the data both in color and size. I'd like for the legend to represent this. I am aware of .legend_elements(prop='sizes') but I ...
MBR's user avatar
  • 836
0 votes
0 answers
42 views

How do I clearly combine a 3D scatter plot and a surface plot together?

I think my problem is fairly simple. I've managed to find a way to plot my 3D surface against a set of discrete data points, but the issue now is that it is not clear to see whether the points lie ...
James's user avatar
  • 1
0 votes
3 answers
79 views

How to change both the shape and colour of an individual scatter point in Python Matplotlib?

I am currently trying to import some data in a table into python to create a plot of one variable against another. I also want to group each of the data point by two of the other variable in the same ...
gem9911's user avatar
2 votes
1 answer
32 views

How to unjoin of different plots when plotting multiple scatter/line plots on one figure?

I am plotting multiple line and scatter graphs on a single figure and axis. My code sets one variable called total_steel_area and then goes through a set of values of another variable called phi_x__h. ...
Kevin's user avatar
  • 47
1 vote
1 answer
55 views

Is it possible to make a colour-blind friendly RGB option in "color" for ax.scatter?

I have scatter plot in which I have colour coded the scatter points according to the relative contribution of 3 factors. I use the red, green and blue channels to represent this. This works really ...
4sght's user avatar
  • 11
0 votes
1 answer
67 views

For identical XY coordinates in the Matplotlib scatter function, how can I sum all the related array-like data values (c-parameter) on the plot?

I have three separate 1-Dimensional Numpy arrays of equal length that I am using as x, y and c parameter inputs to the matplotlib scatter function without a problem. Some of the plot coordinates ...
Cymylau's user avatar
1 vote
2 answers
122 views

How to draw a shaded area which tightly includes all the points in scatter plot?

I've pairs of y and z locations which I'm plotting as a scatter plot as shown below. Looking at the plot, we can visualize a tight boundary which includes all of the points. My question is how do we ...
Atharva Sunil Sathe's user avatar
1 vote
3 answers
112 views

Cut off scatterplot markers in matplotlib after autoscale

I'm generating a simple image with a scatter and two dots and I want the dots to be fully visible, but ax.autoscale_view() seems not to work properly. fig, ax = plt.subplots(figsize=(3, 3), dpi=150) ...
Alessandro Romancino's user avatar
2 votes
2 answers
83 views

Annotate a scatterplot with text and position taken from a pandas dataframe directly

What I want to achieve is a more elegant and direct method of annotating points with x and y position from a pandas dataframe with a corresponding label from the same row. This working example works ...
Brendan031's user avatar
4 votes
1 answer
101 views

How to plot a histogram as a scatter plot

How to plot a similar graph in python? import matplotlib.pylab as plt import numpy as np from scipy.stats import binom y = binom.rvs(n = 10, p = 0.5, size = 100) counts, bins = np.histogram(y, bins=...
Alex's user avatar
  • 43
0 votes
1 answer
152 views

Python 3d scatter plot linking annotation between subplots

I have two (or more) 3d scatter plots in subplots, each showing different 3 variables of a data set. When I hover over a data in one subplot, I'd like other subplots to also automatically show the ...
user32147's user avatar
  • 1,083
0 votes
0 answers
23 views

Overlapping Error Bars Using Only One Data Set Not Multiple

I have a scatter plot with error bars. The x-values for some of the points are the same so it is hard to see which error bars correspond to what point. I have looked up that people will add trans1 and ...
Allyand Camshow's user avatar
2 votes
1 answer
138 views

How to resolve error plotting arrows in mplfinance scatter plot

Although I don't consider myself a newbie, I would regard myself as inexperienced with Python. I am new to MPLFinance. I am tryting to plot trade entry points on a forex mplfinance chart. I have the ...
StuartM's user avatar
  • 137
0 votes
1 answer
107 views

Plot gets shrunk off to the side when adding a scatterplot on top of the violin plot

I want to create a double violin plot with custom markers for each thing. So far, I have successfully been able to create the violin plot However, when I add the scatter of the various markers on top ...
Zedonkay's user avatar

15 30 50 per page
1
2 3 4 5
82