Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
2 votes
1 answer
78 views

How to reset selection across multiple plots to avoid accumulation?

Ah, and is there any hack or workaround on the latest version to reset the selection? Maybe simulating the double click event on an empty area of the plot. This is what I want to achieve: I cannot ...
ChesuCR's user avatar
  • 9,752
0 votes
0 answers
100 views

How to format X-axis values from Scatter charts in PptxGenJs?

I’m working on a project that adds a scatter chart from highchart's data to a PowerPoint slide using PptxGenJS. When I try to format the X-axis using dataLabelFormatCode: "0.0%", the format ...
Enrique Alcacer's user avatar
0 votes
1 answer
40 views

KNIME: how to access the configure window in the new version

I'm following a course on Udemy where the instructor is using an older version than me. When he right-click on "scatter plot" or "table partitioner" he gets an option to open a ...
Manar's user avatar
  • 101
2 votes
1 answer
110 views

Is there a reason why Jupyter Notebook will not display trendlines?

The problem I'm having is that my code will not display the trendline, but will give me a huge error message. When I remove the trendline, it displays the scatter plot still without the error message, ...
Jasmine Bridges's user avatar
1 vote
0 answers
111 views

matplotlib.pyplot scatter s parameter meaning

I am follwoing a Datacamp Course on Data Science and I have the following script: # Import numpy as np import numpy as np # Store pop as a numpy array: np_pop np_pop = np.array(pop) # Double np_pop ...
JouJour's user avatar
  • 11
-1 votes
3 answers
98 views

Create a Matplotlib chart showing a time series with x-axis tick marks every 5 years from 1900 to 2020

So i have a Series with year index (1901,1902,1903 etc) and values. My challenge in course is "Show a tick mark on the x-axis for every 5 years from 1900 to 2020. (Hint: you'll need to use NumPy)...
Tamerlan's user avatar
1 vote
0 answers
45 views

Scroll and Scatter scale

My problem: In this script the do_translation is working. The do_scale does not work. The scrolling and scale interfere with each other. If I change the ‘do_scroll_y’ to False the do_scale works fine, ...
sybe's user avatar
  • 53
2 votes
0 answers
65 views

Shading scatter plot markers

I would like to make a scatterplot, but using a shading for the scatter plot markers rather a solid facecolor. My application for this is that I would like to indicate a "range" (...
Heisenbugs's user avatar
0 votes
1 answer
147 views

Excel XY scatter chart glitch

Sometimes Excel refuses point blank to create XY scatter plots properly. Defaulting to a silly format plotting rows as lines with legends "series 1", "series 2" & "series ...
Martin Brown's user avatar
  • 3,586
1 vote
1 answer
56 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
  • 848
0 votes
0 answers
40 views

Translation from linker to scatter script - define global symbols

I have to translate a ld script to ARM Scatter syntax in order to use an ARM FuSa Compiler. How are the commented parts from ld translated into scatter syntax? ld: .foo_data { . = ALIGN(4); ...
scatterUser123's user avatar
0 votes
1 answer
43 views

Spatial clustering with two separate datasets

I'm hoping to get some advice on approaching a clustering problem. I have two separate spatial datasets, being real data and modelled data. The real data contains a binary output (0,1), which is ...
jonboy's user avatar
  • 392
0 votes
0 answers
54 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
1 answer
42 views

Struggling with plt.scatter()

I'm trying to do a logistic map using the code below, but I'm struggling with making a scatter plot because I keep getting this error: "scatter() missing 1 required positional argument: 'y'"....
magicgenie's user avatar
0 votes
0 answers
56 views

Overlay a raster image with the component scattermap (plotly) in streamlit

Type With a streamlit application, I try to add a georeferenced raster image in the scattermap graph. a fixed image appears on the top left of the map, the image seems not well georeferenced, and does ...
Emmanuel's user avatar
0 votes
0 answers
43 views

Facing problems with scatter mapbox and time frames within plotly express

just starting to program in Python, and faced the following problems when trying to plot three points moving in a map, as the time progresses. Not sure if this is a bug from plotly or it is just me.......
Alejandro Barragan's user avatar
-1 votes
1 answer
21 views

Text and annotations removal with Legend

I did a scatter plot with legends , text and annotations . But when i click on the legend text and annotations associated with the bubble remains. Please check the below code. const getAnnotations ...
vishnu BHAT's user avatar
2 votes
2 answers
107 views

How to scale points in scatterplot by area

How can I scale the points in a Stata scatterplot by another variable? (I would like to get the area of each point, so I would like to scale by the area, or the square root of the variable, but this ...
bill999's user avatar
  • 2,580
0 votes
0 answers
12 views

Scatter express looks odd when trying to add lines to bin edges in histogram marginals

I am trying to show a scatter plot in plotly express (to my understanding PX is the way to go since I can tweak the traces for formatting efficiently) This is what I got from searching online import ...
Jung Hun Kim's user avatar
0 votes
3 answers
201 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
0 votes
0 answers
37 views

Creating scatterplot in R but want the X and Y from same column

I have trade data as shown. The countries and trade direction are not in separate fields, otherwise I think that might be easier. I would like the X axis to be one trade partner and the Y axis to be ...
Ivanna's user avatar
  • 1
0 votes
0 answers
46 views

How to plot Timedelta error bars in Plotly

I am trying to use plotly with streamlit. I want to add error bars to my data. The y axis is a date, and I have start and end date, therefore, I compute the timedelta. Then, I use total_seconds and ...
J Agustin Barrachina's user avatar
2 votes
1 answer
36 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
0 votes
0 answers
60 views

I'm trying to make a scatter plot with error bars, and am having difficulty changing the black dot in the data point to blue

Here is my code. I've tried rearranging lines of code and turning the black dot blue. I would like to keep the data dots blue and have black error bars with the caps. a = [85, 77, 77, 77, 70, 81, 70] #...
Liz's user avatar
  • 1
0 votes
0 answers
52 views

Legend has one entry for every combination of two parameters -- how can I simplify the legend?

I have a pandas scatterplot with two parameters: type of intervention (ventilation, filtration, source control, or combination) and type of benefit (health, productivity, or both). Right now the ...
ZHoskin's user avatar
1 vote
1 answer
105 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
0 answers
62 views

Plotly Express - how to set date slider on x,y scatter plot

I'm trying to make a scatter plot that allows me to do a couple things: Toggle a selected date range that automatically displays the coordinates for each day within the range - I figure some sort of ...
Wayne's user avatar
  • 1
1 vote
0 answers
64 views

Colab stuck in an infinite loop while installing PyTorch-related packages

I'm trying to install several PyTorch-related packages in Colab, but the installation process gets stuck in an infinite loop and doesn't complete, even though it doesn't give any error messages. I'm ...
Zehra Moğulkoç's user avatar
-1 votes
1 answer
84 views

Correlation (scatter) plot between two groups in the same time series in R

I am struggling with making a scatter plot and then performing a cross-correlation between my two groups; vitamin_intake and diffusion, across a time series. Note both groups have the same time series....
KenH's user avatar
  • 29
1 vote
1 answer
61 views

Create a graph that includes all columns until the last column

I want to create a graph in Excel using vba with a dynamically amount of columns. My partial current code is: 'Create chart 'Columns("A:DZ").Select ActiveSheet.Shapes.AddChart2(240, ...
JetskiS's user avatar
  • 143
-1 votes
1 answer
85 views

show a data point on boxplot of pandas dataframe

I'm simulating the results of a paper and need to show a data point on boxplot of a pandas dataframe. the image of the corresponding paper is like this: i tried to plot the boxplot using df.boxplot , ...
nima's user avatar
  • 101
1 vote
1 answer
309 views

How to display eCharts labels in two unrelated groups on scatter chart

I am creating an interactive scatter chart with eCharts in Angular, that will potentially have a very large data set. I have two groupings of points that will be displayed on the same chart. I want to ...
bleujaiz's user avatar
0 votes
1 answer
54 views

Tensorflow equivalent of torch.scatter_add

How can I implement the same operation with tf 1.15? import torch B, T, N, K = 2,3,4,2 # a is a counter table where T is the number of groups a = torch.zeros(T, N, dtype=torch.long) # x is a batch ...
namespace-Pt's user avatar
  • 1,964
0 votes
1 answer
195 views

How to Automatically Adjust Data Label Positions in Excel Scatter Plot

I have an Excel scatter plot that uses slicers to filter data dynamically. I’m looking for a way to automatically adjust the positions of the data labels to avoid overlap, similar to the “best fit” ...
MysticPulse's user avatar
0 votes
0 answers
50 views

How to adapt scatterplot scales, without reducing the resolution

I wrote a macro that creates a scatter plot of my dataset, using VBA code. However, I want to reduce the y-scale of my plot by factor 10. This means I want to replace 0.0001 with 0.00001, to get the ...
JetskiS's user avatar
  • 143
0 votes
0 answers
79 views

How to create dynamic altair x-axis and not fixed on current values?

My data looks like this: Name Date 1% 2% 10% ... 100% Anne 1/1/24 3 5 1 ... 92 Anne 1/2/24 4 8 2 ... 78 Anne 1/3/24 7 9 6 ... 47 My x axis are the percentages: 1%, 2%, 5%, 10%, 15%, 25%, 50%, and 100% ...
mmv456's user avatar
  • 33
0 votes
1 answer
86 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
0 votes
1 answer
112 views

How can I set up the inputs to this scatter_chart?

My data looks like this: Name Date 10% 20% 30% ... 100% Anne 1/1/24 3 5 1 ... 92 Anne 1/2/24 4 8 2 ... 78 Anne 1/3/24 7 9 6 ... 47 What I would like is to create a Snowflake Streamlit scatterplot with ...
mmv456's user avatar
  • 33
0 votes
1 answer
64 views

Create Excel graph of columns uptill lastCol using vba

I want to create a graph in Excel using VBA that contains column A up till the last column. The last column is determined with the line: Dim lastCol As Long, lastColLetter As String ...
JetskiS's user avatar
  • 143
1 vote
2 answers
155 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
0 votes
0 answers
49 views

"Normalize" duration time data and plot in Matlab

I have the following data sets that have in the x-axis time in "HH:mm:ss". Each data set has different numbers of "times" but they are all within a 2hr duration. I want to plot ...
J Paul's user avatar
  • 169
1 vote
0 answers
22 views

How to delete white separator or border from line scatter plotly.js, when there are a lot of points?

I use plotly.js, scatter line graph for horizontal timeline var trace1 = { x: [1726046102344, 1726051503518], y: [0, 0], mode: "lines", type: "scatter", line: { color:...
Анна Михайленко's user avatar
0 votes
1 answer
229 views

spearman's rho plot [closed]

I have done a Spearman correlation and need a scatterplot with a line matching the Spearman's rho. How can I do this? > db id Var_1 Var_2 Var_3 Var_4 1 5 8.17 83.08 10.28 19.81 2 6 4....
ArTu's user avatar
  • 483
0 votes
0 answers
26 views

Generate SVG image of highchart Scatter chart using highchart Configuration

I am trying to generate a svg image of high chart using a high chart configuration. Configuration contains symbol a as customize svg 64 bit string but this configuration gives me error "...
sourabh's user avatar
  • 33
0 votes
1 answer
149 views

How can I create a black boarder around my points in ggplot2 with a jitter scatter plot [duplicate]

its my first time working with R and my first time posting here so thank you in advance. Im trying to add a black boarder around each of my points but I cant figure it out. I did search this topic ...
pina's user avatar
  • 1
0 votes
1 answer
60 views

MPAndroidChart Scatter Chart data getting clipped

I have been exploring MPAndroidChart and came across this issue where the data point seem to be clipped off. Any ways to go about this without changing the axis minmax? Current Situation Tried various ...
zhang shichen's user avatar
1 vote
3 answers
150 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
120 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
0 votes
1 answer
57 views

How to change markers color in 2D plot in plotly with hexcode?

Is it possible to change the color of the markers using the given of hexcode? Code: import plotly as px hydrogen= px.scatter(plot_data,x='Calorific Value (kcal/kg)',y='Hydrogen (%)',title='Hydrogen ...
random235's user avatar
0 votes
1 answer
727 views

How can I plot X+Y+label values in a Google Sheets scatter chart?

I have three columns in a Google Sheet, containing a name and X/Y coordinates. I want to create a graph where each row of my data gets one dot on the graph, the location of the dot in the graph comes ...
Sparr's user avatar
  • 7,830

1
2 3 4 5
93