Questions tagged [plotting]

Use for questions about graphing a dataset into a visualisation (e.g. line plot, histogram or pie chart). Visualisation and plotting is an important EDA tool as well as presenting the results of a data science project.

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

Working of 'Interpolation' to impute missing values & the importance of the order of data points for the process

Definition of interpolation - Interpolation predicts values at a point by studying its neighbouring points (within the same column), as opposed to data modeling where all the columns are taken into ...
Apoorva's user avatar
  • 275
0 votes
0 answers
18 views

Explainable Boosting Machine Local and Global Explanation plots label size

I am using EBM for a research in python, the local and global explanation plots it produces come with preset font size, I want to change the resolution of the figure and the font size of labels and x ...
Sarmed Wahab's user avatar
0 votes
1 answer
64 views

Is this considered a good visualization of clustered data?

I have used sckit-learn to cluster data using K-means (3 clusters). I have an issue with considering the plot as "readable" since clusters are overlapping (even when encircling them) Any ...
SSSOF's user avatar
  • 17
0 votes
0 answers
31 views

Plot binary logloss of LightGBM

I implemented Gridsearch for a LightGBM, predicting a binary outcome with 33 features. ...
Nima Yousefi's user avatar
0 votes
2 answers
19 views

Unfamiliar aspect on box plot

I am learning python and I am practicing with a project using a dataset. I created a box plot using seaborn's catplot only using the arguments data,x,y,and kind. There is something on the box plot (...
notsimplelogic's user avatar
0 votes
1 answer
50 views

Better understand the scatter plots

I'm trying to understand how to read a scatter plot based on the results of my confusion matrix. This is the CM: I saw an high correlation between column 5 and column 6, a low correlation with column ...
JimBelushi2's user avatar
0 votes
1 answer
51 views

Plot Clustered Data by kmeans with colors for clusters and shapes for external labels

I wrote some Python code that uses the output from a principal component analysis to perform k-means on. The output to my script below is Cluster 1: Data Points: [[ 1.87192346 -1.12568277] [ 1....
Squirtle's user avatar
  • 103
0 votes
1 answer
386 views

How do I prevent ConfusionMatrixDisplay.from_predictions from showing the plot?

ConfusionMatrixDisplay docs say: It is recommend to use from_estimator or from_predictions ...
Dmitry Minkovsky's user avatar
0 votes
0 answers
56 views

Combining Latitude Longitude Data to make Polar Stereographic Plot

I have two 896 row x 608 column pandas dataframes representing latitude and longitude positions of a polar stereographic grid. Combining these seems easy enough to make a single table, but I'm not ...
Socorro's user avatar
  • 101
6 votes
4 answers
234 views

How can I observe my CSV files better? [closed]

I'm running a lot of experiments that give their output as CSV files. An experiment might be running for hours, with a new line being added to the CSV every 10 seconds. Right now I'm opening these CSV ...
Ram Rachum's user avatar
1 vote
1 answer
28 views

Standardised plot of multiple points with varying thresholds and values

I would like to plot the points below to show which points are inside their thresholds and which are outside their thresholds. I intend to do another set of analysis with other parameters which will ...
gibs's user avatar
  • 113
0 votes
1 answer
98 views

unable to bar plot the data for all the columns

I am trying to plot the data in a loop, I am using the below code to build the plot. but Its running for all the loop, I can see the column name is getting printed for all th but its building the plot ...
prakashrajansakthivel's user avatar
0 votes
1 answer
35 views

Why plot features?

In PyTorch's tutorial, Speech Recognition With Wav2Vec2, the acoustic features are extracted from the audio waveform (even though it was unnecessary, as the model can perform feature extraction and ...
Bolchojeet's user avatar
0 votes
0 answers
55 views

Can python's matplotlib render images as quickly as R's Cairo device?

I need to render 100k of plots. I already am doing this quickly enough with R's Cairo device. But I am also considering using python. But, I also already know python's rendering of plots is several ...
ivan866's user avatar
  • 210
1 vote
1 answer
56 views

Plot a matrix as a single point in space

I have a dataset of drugs represented as a graph, each of which is described by three non-square matrices: edge index (A), an 2xe matrix, where e are the bonds of the molecule, the first line ...
Gianmarco Luchetti 's user avatar
0 votes
1 answer
16 views

How can I transform or plot my data to see power consumption more easily?

I have two heating tapes installed in my setup and they provide heat to maintain the reaction at a certain setpoint temperature. Basically, the heating tapes go on a cycle of on/off to maintain the ...
ScepticalChymist's user avatar
0 votes
1 answer
252 views

Matplotlib Surface Plot over L domain

I want to create surface plots over certain special domains, e.g., the L-shaped domain below. Currently, I am creating surface plots with matplotlib.pyplot in the typical way, i.e., creating a ...
user avatar
0 votes
0 answers
122 views

Python: How to construct a joyplot with values taken from a column in pandas dataframe as y axis

I have a dataframe df in which the column extracted_day consists of dates ranging between 2022-05-08 to 2022-05-12. I have another column named gas_price, which consists of the price of the gas. I ...
Anwesa Roy's user avatar
1 vote
1 answer
32 views

Many regression lines in a plot

How do you plot many regression lines in a plot? This concerns the textbook question from "Forecasting: Principles and Practice". A dataset concerns winning times of Olympic running events. ...
Cameron's user avatar
  • 21
1 vote
0 answers
150 views

Plotly Express Choropleth Map Animation loading extremely long

I am making an animated choropleth map of regions in Czechia. When I run it without the animation, purely on one set of the data it takes 7.5 seconds. Here is the code for that. However when I tried ...
brownie's user avatar
  • 11
0 votes
1 answer
18 views

Ordered categorical xlabel number - what to call xlabel

Say I have 105 brand names from a store, and I know the average retrun percentage for the products of the different brands. . For example: ...
nammerkage's user avatar
1 vote
1 answer
4k views

Plotly, scatter plot: what are the possible options for the dash entry in the line dictionary?

For example using some code like this one: fig.add_scatter(x=x, y=y, mode='lines', line=dict(dash='dot')) The possibilities I know of are 'lines', 'dash', 'dot' ...
user130819's user avatar
0 votes
1 answer
47 views

How to draw a density plot?

This is my R script to draw the density plot: ...
Inuraghe's user avatar
  • 481
0 votes
1 answer
4k views

How to plot the sum of something over an interval of time?

Say I have a dataframe with date as index. I would like to plot a line plot of some values in a column A over a given time frame. Say for the month of August. In column A I have several entries for ...
PlatinumMaths's user avatar
0 votes
1 answer
628 views

Logarithmic scale for a learning curve [closed]

I'm plotting the learning curve with Python with the following code: ...
Bambeil's user avatar
  • 111
0 votes
0 answers
166 views

My neural net plots stop working when I add 20 and 50 neurons in the hidden layer, does anyone know what the problem is?

I just have four basic neural net plots, each one has a different number of neurons in the hidden layer. The first has 3 neurons, the second 10, the third 20, and the fourth 50. The issue is the plots ...
cocoakrispies98's user avatar
1 vote
1 answer
520 views

how to convert pandas plot to OO Matplotlib bar chart

I am trying to convert pandas dataframe bar plot to matplotlib OO concept. ...
Dharmeshsharma's user avatar
2 votes
3 answers
531 views

What tool can I use for produced this type of lines in a multiple line graph?

I was viewing a video about the declination in fertility rates when I saw a good line chart. This is a multiple graphs line and each line have different form this can be useful for readers don't get ...
rubengavidia0x's user avatar
2 votes
2 answers
223 views

What package, software or particular tool produced this bar plot?

Would anyone be able to identify the package or tool used to created this particular bar plot? It has a distinctive font. Source (with paywall): https://towardsdatascience.com/stopping-covid-19-with-...
flow2k's user avatar
  • 123
1 vote
0 answers
65 views

How can I make live Parallel Coordinates Plot that could show labels for the lines on hover?

I'm using parallel coordinates plot for visualization of my outliers. Is there a way to create them so as to show some information(another column content) about the lie on hovering? Plotly has ...
Palak Bansal's user avatar
2 votes
1 answer
519 views

Plotting SVM hyperplane margin

I'm trying to understand how to plot SVM hyperplane and its margins by this example: https://scikit-learn.org/stable/auto_examples/svm/plot_svm_margin.html And I got stuck at the plotting the ...
JohnDoe's user avatar
  • 21
0 votes
1 answer
1k views

Why must x and y axis be the same length?

I am getting started with visualization, but right at the start I am having a serious conceptual problem. Repeatedly, I get the error ‘x and y must be the same size’ / ‘array must be the same length’ /...
Malik A. Rumi's user avatar
0 votes
1 answer
252 views

Is it a good idea to use parallel coordinates for visualising outliers? [closed]

I tried using parallel coordinates to visualize outliers. Is it fundamentally correct?
Palak Bansal's user avatar
0 votes
1 answer
2k views

Plot NaNs as a category seaborn countplot

I have a column in my dataframe which has 'True' as a value and all other values are NaNs (so there are no 'false' values). I want to plot a countplot for the said data in seaborn but want to include ...
ml_learner15's user avatar
2 votes
1 answer
294 views

What is the meaning of the bubbles / spikes in the shap values ​plot?

Here are an example of shap values plot from here. How to interpret the 'bubble' or 'spikes' on this shap values plot I highlighted in yellow color?
mrthaa's user avatar
  • 21
1 vote
1 answer
2k views

How can I plot a line for time series data with categorical intervals in R

I am working with single time-series measurements that I want to plot for the time window of about 1 week. This is the data I am working with. This is my R script: ...
Livingsten's user avatar
0 votes
1 answer
99 views

Strange plot on a simple dataframe Rstudio

I don't usually use R and I'm having trouble with a simple plot from a dataset. I just wanted to make a scatterplot and look at the values, but it keeps ploting a strange "box" thing which I ...
Kaius De Paula Correa's user avatar
0 votes
1 answer
8k views

How to plot the bar charts of precision, recall, and f-measure?

I have used 4 machine learning models on a task and now I am struggling to plot their bar charts just like shown below in the image. I am printing classification report to get precision, recall etc. ...
Hamza's user avatar
  • 229
1 vote
1 answer
44 views

Hi, im currently working for a company that has some inventory control problems

First, I was asked by the manager to make a plot showing produced vs received items, its a multistage process so we are only in charge of one of the steps which is designing, I made the plot comparing ...
Anni666's user avatar
  • 13
0 votes
2 answers
1k views

Warning when plotting confusion matrix with all sample of one class

I have two arrays: the first one with all the correct labels (they are all set to zero since each sample belong to the same class) and another one with all the labels predicted by my neural network. ...
Fabio's user avatar
  • 53
0 votes
1 answer
1k views

Plot overlapping time series [closed]

I'm trying to plot my test set and test set predictions to check the differences and see how my autoencoder reconstructed the data, but since I have a test set 30x10 I have a huge visualization ...
Fabio's user avatar
  • 53
1 vote
2 answers
2k views

Dealing with zeros when plotting log-scaled data [closed]

I have a non-negative variable and I'd like to plot it, log-scaled I'm trying to understand how to deal with 0-values. One naive idea I had in mind is just to add <...
Elimination's user avatar
2 votes
1 answer
215 views

Showing standard deviation for training curve

I am training a neural network and I wanted to plot the evolution of different metrics (MSE…) during training. To get an idea of the variations between between different trainings, I am using several ...
Harold's user avatar
  • 121
4 votes
2 answers
120 views

Maximum Likelihood estimation

Given a sample $ X_1,X_2 \dots X_{100}$ and the density function $ f(x;\theta) = \frac{1}{\pi \cdot \left(1+\left(x-\theta \right)^2\right)}$ , find an approximate solution for $\hat{\theta}_{MLE.}$...
Mahajna's user avatar
  • 53
0 votes
0 answers
94 views

How to add time as a feature into word embeddings?

I have a text corpus and I'm using TfidfVectorizer. Would it be possible to cluster the resultant matrix once I concatenate tf-idf vector and time feature matrix I built([year, month, day])? I'm also ...
Megha's user avatar
  • 1
0 votes
1 answer
16 views

How to create a general plot for this problem

I would like to have some ideas about each customer depending on how many products he sells each month. We have created a new feature X based on some other features....
Diana_doudi's user avatar
2 votes
1 answer
984 views

Understanding and find the best eps value for DBSCAN

I'm trying to run the DBSCAN algorithm on this .csv. In the first part of my program I load it and plot the data inside it to check its distribution. This is the first part of the code: ...
JimBelushi2's user avatar
2 votes
1 answer
28k views

how to create multiple subplots( scatterplot) in for loop

I want to create scatterplot of target variable with all the other variables in dataframe. Just like we create pairplot but as pairplot with large number of variables will take lot of time and ...
Strange119's user avatar
3 votes
1 answer
5k views

Plotting multiple precision-recall curves in one plot

I have an imbalanced dataset and I was reading this article which looks into SMOTE and RUS to address the imbalance. So I have defined the following 3 models: ...
sums22's user avatar
  • 417
0 votes
1 answer
2k views

How to add a filter/query/condition in Plotly [closed]

I want to add a condition to the column where attractionName.value_counts() >=165. How can I add a query/filter/condition to a DataFrame before I plot the data. <...
ujwal kandi's user avatar