# Questions tagged [matplotlib]

matplotlib is a python 2D plotting library which produces publication quality figures in a variety of hardcopy formats and interactive environments across platforms.

23 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
438 views

### Estimating the multivariate normal distribution parameters from a set of 3D points

I have a set of 3D points, which look as follows: They form a shape similar to Gaussian/parabolic function or a mixture of these and my goal is to extract this shape. I thought I could estimate ...
41 views

### Fitting Pareto distribution to data example in SciPy

In docs.scipy.org there's code to sample data from a Pareto distribution and then fit a curve on top of the sampled data. I could understand most of the code snippet except the term ...
71 views

### Finding similarity dissimilarity between different groups of vectors

Suppose I need to combine or group together set of vectors in one area and another group in other areas, however I need to place these groups in a plot so they are scattered in the screen per ...
104 views

### how to visualize the graph use matplotlib on polynomial and multiple regression with multiple predictors

Multiple: y=b0+b1X1+b2X2+b3X3....bnXn Polynomial: y=b0+b1X+b2(X)^2+....bn(X)^n Step1: Importing package import pandas as pd import numpy as np import sklearn import matplotlib.pyplot as plt import ...
312 views

### Matplotlib Plot Difference Between Two Unsorted Value Series

I am trying to figure out how to plot the following in Matplotlib. Suppose I have a sample of 1000 random operations. There are two ways to perform each operation: a new way and an old way. My data ...
496 views

### Fitted planes' normal vector not perpendicular

I fitted a plane into a set of points in R3 using minimization of L2 error (taken from this post: https://gist.github.com/amroamroamro/1db8d69b4b65e8bc66a6). ...
79 views

### Visualisation strategies for weight matrices in convolutional neural networks

What are some common strategies to visualise a weight matrix in a convolutional neural network? I.e. visualise a matrix with the form (kH, inD, outD) in 1D convolution, and (kH, kW, inD, outD) in 2D ...
23 views

### Interactive dendogram with plotly and custom distance, linkage functions

I have a matrix X and usually I use scipy to make a dendogram and plot it: ...
191 views

### How to plot multiple classifiers' ROC curves using scikitplot?

I have classified a data with multiple classes (not binary) by using several classifiers, and I would like to compare the performance of these classifiers by drawing their ROC curves using scikitplot. ...
13 views

### How should multiple *continuous* features on an embedding plot like UMAP be depicted?

For the MNIST digits dataset, it is pretty straightforward to colour the various points of its UMAP/t-SNE projection. For continuous values of features, it is less obvious to me. For a case of, say, ...
29 views

### Effective way of visualizing break down of time durations

Forgive me, I'm not very well seasoned in statistics and its visualization but I'm a well seasoned python developer and can use the basics of pandas, matplotlib, etc... I have a dataset representing ...
8 views

### How to decide the boundary of a 2d kd-tree?

People often cites this figure when talking about k-d tree in the context of plotting, this is a $10 \times 10$ square, considering this particular dataset, the maximum of x axis is 9, the minimum is ...
382 views

### Overlap of Two Probability Distributions in Python

So I saw someone use this code to find out how much overlap two normal distributions have. ...
35 views

### Python: How to find the value that separates 2 different clusters?

I am applying an unsupervised learning algorithm for building an anomaly detection using OneClass SVM method and then plotted it to visualize how it looks. I got 2 clusters: one red and the other ...
17 views

### Matplotlib: Why would a KNN regression model draw a line through ALL points regardless of K?

Having difficulty doing something very basic: create a random dataset taking on values between -1,1, plot them, and also fit a KNN model to the data and fit it over the data. Using numpy to create the ...
296 views

### Get rotation of noisy rectangular 2d point cloud with pca

I have a set of point clouds in nd space. The clouds tend to be rectangular in nature in 2d space but can easily have outliers or look slighly L shaped. I would like to rotate the point clouds so that ...
12 views

### Enhance gap between analytic and interpolated data in visualization

I have two data sets, disposed in a 3Dplot. one set represents the interpolated data, the other the analytic. Each set lies on a separate grid. I have plotted the data with python matplotlib on a ...
81 views

### Visualizing a time series data to compare the scores of groups based on each day of participation

I have the following data but not sure about the best way to visualize it. Average assignment scores for the users starting to participate in the first, second, third, and so on, days of the course. ...
635 views

### Convert time scalar field to velocity vector field

I am trying to figure out if it's possible to create vector velocity field from some raster containing spatial distribution of scalar variable (timestamp of some mass-media event in my case). Here is ...
832 views

### Need to find cumulative probability distribution given this data set

So I have a data set like so: ...
1k views

### How to interpret the dendrogram graph axis (hierachical clustering )?

Here is the reproducable code with dataset used `from scipy.cluster import hierarchy import matplotlib.pyplot as plt ytdist = np.array([662., 877., 255., 412., 996., 295., 468., 268.,400., 754., ...