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
1 answer
6 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
  • 1
0 votes
0 answers
18 views

I want to create a network graph with multiple features on python

I have a dataframe of stock tickers which have a few features. Below is the dataframe: Currently I am using networkx and pyvis to create network graphs. At the moment, I'm only able to use either one ...
user avatar
  • 1
0 votes
0 answers
8 views

Best Way to Display Multidimensional Data in Tables and Graphs for a Specific Example

I am currently struggling with displaying data that I gathered in a proper data scientific way. About the Data For a Uni project I have to create different implementations of the creation of a Voronoi ...
user avatar
0 votes
0 answers
10 views

Plotting decision boundary from Random Forest model for multiclass MNIST dataset

I am using the MNIST dataset with 10 classes (the digits 0 to 9). I am using a compressed version with 49 predictor variables(x1,x2,...,x49). I have trained a Random Forest model and have created a ...
user avatar
0 votes
0 answers
17 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 ...
user avatar
1 vote
1 answer
24 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. ...
user avatar
  • 21
0 votes
0 answers
10 views

Plot six variables

I would like to plot a landscape spanned by six variables. The numerical target variable is explained by five numerical variables. Ultimately, it is about to get a visual impression for optima and the ...
user avatar
  • 480
1 vote
0 answers
69 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 ...
user avatar
0 votes
1 answer
13 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: ...
user avatar
0 votes
1 answer
48 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' ...
user avatar
0 votes
1 answer
476 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 ...
user avatar
0 votes
1 answer
108 views

Logarithmic scale for a learning curve [closed]

I'm plotting the learning curve with Python with the following code: ...
user avatar
  • 11
0 votes
0 answers
78 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 ...
user avatar
1 vote
1 answer
260 views

how to convert pandas plot to OO Matplotlib bar chart

I am trying to convert pandas dataframe bar plot to matplotlib OO concept. ...
user avatar
2 votes
3 answers
160 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 ...
user avatar
2 votes
2 answers
177 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-...
user avatar
  • 123
0 votes
0 answers
9 views

How is called KPI that expose, by month, count of "received" and "released" files centered on count of still opened file?

first, my appologize if this is not the place to discuss such topic. In my professional environnement we work on notifications that we receive (start date) and release (end date) when work is ...
user avatar
1 vote
0 answers
22 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 ...
user avatar
1 vote
1 answer
157 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 ...
user avatar
  • 11
0 votes
1 answer
204 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’ /...
user avatar
0 votes
1 answer
134 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?
user avatar
0 votes
1 answer
559 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 ...
user avatar
2 votes
1 answer
110 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?
user avatar
  • 21
1 vote
1 answer
439 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: ...
user avatar
0 votes
1 answer
52 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 ...
user avatar
0 votes
1 answer
3k 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. ...
user avatar
  • 219
1 vote
1 answer
38 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 ...
user avatar
  • 13
0 votes
2 answers
490 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. ...
user avatar
  • 43
0 votes
1 answer
397 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 ...
user avatar
  • 43
1 vote
2 answers
87 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 <...
user avatar
2 votes
1 answer
62 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 ...
user avatar
  • 121
4 votes
2 answers
111 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.}$...
user avatar
  • 53
0 votes
0 answers
27 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 ...
user avatar
  • 1
0 votes
1 answer
13 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....
user avatar
2 votes
1 answer
257 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: ...
user avatar
2 votes
1 answer
20k 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 ...
user avatar
1 vote
1 answer
2k 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: ...
user avatar
  • 335
0 votes
1 answer
688 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. <...
user avatar
1 vote
1 answer
76 views

Data visualization on three factors

I have three factors, Income(from source A),continuous variable Income(from source B), continuous variable Happiness index,continuous variable Suppose I have 500 samples. My goal is to show the ...
user avatar
  • 177
0 votes
1 answer
118 views

Time Series Plot for floating values

I have a Dataframe which looks as shown below I am trying to make a line plot for looking at the peaks for both columns (a,b), I have gotten as far as ...
user avatar
  • 301
1 vote
0 answers
196 views

How to plot centroids and clusters resulting from a KMean model based on a text variable

I hope you can help as after several attempts, I'm no longer sure I can get a decent result. I have a text corpus made of several documents, like the one below (which has been simplified for the sake ...
user avatar
0 votes
1 answer
99 views

Differences between pseudocolor plot and heatmap?

I found some materials using the word `pseudocolor plot' and I think that it's just a heatmap. Is there any difference between them?
user avatar
  • 177
3 votes
3 answers
586 views

What is this type of plot and how to interpret it?

I was presented to this plot and i've seen it before, however i would like to know what does the countour around the main line mean. Ps: i couldn't find enough information about it to investigate by ...
user avatar
0 votes
2 answers
23 views

3D visualisation and post analysis tool

I am looking for a 3D plotting and post analysis tool, specifically which can generate figures like the following. It is preferred the tool has a Linux distribution. The figure is copied from here.
user avatar
0 votes
0 answers
96 views

how can i plot a stacked bar chart by year with two values(columns)?

not sure if this is correct medium, but i am having trouble plotting this simple data: how do i get the graph below - aplogies for this poor picture. basically i want it stacked with the risk label ...
user avatar
  • 466
0 votes
1 answer
413 views

plot gridsearch csv results how?

how can i plot my results from gridsearch csv? ...
user avatar
  • 466
1 vote
1 answer
49 views

Plot three series on the same plot grouping data by day and month

I have a dataset containing three years of data which I would like to plot and compare by date and month; but, I am having a hard time with the final result. I am nearly there, but for some strange ...
user avatar
0 votes
1 answer
77 views

Plotting grafic result

I am learning how to plot data. I am trying to obtain this grafic result on my dataset. The thing is, I can't do it. The cool plot is from a kaggle's kernel, which code is: ...
user avatar
  • 169
0 votes
0 answers
2k views

Overlay Bar Plot

I am trying to turn the first overlay bar plot into the second which allows for comparison of 2 variables instead of just one. Included my current code below which creates the first chart comparing ...
user avatar
0 votes
1 answer
1k views

How to generate plot of reward and its variance?

I am new to reinforcement learning and I would like know how to generate a learning curve plot such as that shown below (taken from this blog post), that illustrates the reward (return) and its ...
user avatar