Share Your Experience: Take the 2024 Developer Survey

# Questions tagged [plotting]

For questions about plotting data related to a computational problem. Be sure to include the program/language you are using to create the plot.

77 questions
Filter by
Sorted by
Tagged with
27 views

### A plane or surface passing through two surfaces in MATLAB

I have just been able to plot several surfaces using the code below. What I want is a plane or a surface that connects the black and yellow region in the output of the code below: ...
• 111
24 views

### Computing autocorrelation of scalar values

I obtained a list of $r^2_{end-to-end}$ from a Monte Carlo simulation of polymer movement. ...
115 views

### Which data can I use to draw the figure?

Please refer to the PhD thesis given at the following link: Etienne Bernard. Algorithms and applications of the Monte Carlo method : Two-dimensional melting and perfect sampling. I want to draw the ...
405 views

### How can I draw a regression line in log scale?

The supplied code draws some data points and the corresponding regression line. The regression line goes through or is near most of the data points on a linear scale. . However, on a log scale, the ...
54 views

### How to plot the nodes from 0-2 and from 9 to 28, without including nodes from 2:9 [closed]

I want to plot nodes from 0 to 28 without including nodes from 2:9 I tried to use this command, but got syntax error: ...
34 views

### Doubt of wavelets about the return of comand plot() of package Wavethresh in R language

I take a plot of father wavelet with this code library(wavethresh) y <- c(1,1,7,9,2,8,8,6) ywd <- wd(y, filter.number=1, family='DaubExPhase') plot(ywd) But ...
1 vote
30 views

### SageMath: How do I plot the sum of a deterministic variable and a random variable

Suppose I have the following function $$f(x,y,z1,z2)=g(x-z1,y-z2)$$ where $g(x,y)$ is a deterministic function from the $X\times Y\to S$ and $z1,z2$ are random variables following a known probability ...
• 111
33 views

### How can you plot a value in PYTEARCAT?

I've been working with Tensor calculus using the Python module PYTEARCAT. (See: https://arxiv.org/abs/2106.15016 and https://github.com/pytearcat/pytearcat.) It calculates quantities such as the Ricci ...
52 views

### Why is the maximum potential energy greater than the maximum kinetic energy?

I was plotting the energy variation in a mass-spring system. If I define the initial conditions to be at maximum displacement from the origin, the potential energy is plotted correctly but kinetic ...
• 123
43 views

### How to compare the bias between the two contour plots?

I wish to compare the value of the normalized concentration (c+), between two contour plots (one is experimental and another is a simulation). If I don't have a c+ value from the same point on both ...
• 101
73 views

### Getting gradient from voxel, is it possible and how?

The R package rmarchingcubes implements a marching cubes algorithm. Given a voxel contructed from a function defining an isosurface, it returns a 3d mesh with some vertex normals. When I plot this ...
129 views

### How to remove singularit​ies/discon​tinuities on 3D plots in Matlab?

I want to plot some functions f(x,y) including singularities. For example; f(x,y)=tan(x-y) In Matlab, when I run the following code ...
• 101
537 views

### How to draw a vertical line in Paraview Line Chart

I would like to insert a series of vertical lines to divide up a line chart. The figure below shows the chart so far, but instead of the orange diamonds I want vertical lines that go from top to ...
• 103
162 views

### plotting $F=K \frac{q_1 q_2}{r^3}$ in python

I tryin to plot the position of electron in the hidrogen atom by Coulomb's law, $F=K \frac{q_1 q_2}{r^3}$ This is mi code ...
160 views

### Plotting two data sets in Octave

I have two data vectors $y1$ and $y2$, and I want to plot both of them as functions of the vector $x$. I want the result to be two overlapping curves. Here is the set of commands I am using. y2=[0.003,...
• 101
72 views

### FEM solution becoming wider as number of nodes increase

My FEM scheme uses a 4-node quadrilateral element with bilinear shape functions. The simple problem I'm solving is. $\nabla ^2 f = 5$ But as I increase the number of nodes, the plot of the solution ...
2k views

### How to use cumtrapz correctly?

I have tried to do a trapeze integration with f(x)=x^2, where I know how the antiderivative looks like, so F(x) = (1/3)x^3 Here's my code, just like I tried: ...
1 vote
1k views

• 125
100 views

### How to report non-monotonic runtimes in convergence plots

Let's say I have an algorithm that can be tuned by a parameter $h>0$ and is expected to converge as $h\to 0$. I want to study the computational complexity of this algorithm, i.e., how the ...
• 799
1 vote
2k views

• 430
100 views

### Software recommendation for plotting data from lab tests

I have several files of data created by LabView of hydraulic pressure testing over the course of a few days. This data is mostly time with various pressure and temperature measurements. Can you ...
1 vote
277 views

### How to change level of contours in animation for Tecplot360

I am working on a transient heat transfer problem. The problem that I have is as the time goes the range of temperature is changing but Tecplot only use one sort of levels for contour for all of time ...
• 23