# 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.

73 questions
Filter by
Sorted by
Tagged with
26 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 ...
99 views

### How can I plot Haar Wavelet Approximation in R?

I was trying to replicate the graphics in figure below using the package wavethresh in R. This figure can be found in the book: Wavelet Methods in Statistcs with R, G.P. Nason, pg. 30. The data used ...
1 vote
27 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 ...
25 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 ...
49 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 ...
41 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 ...
56 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 ...
119 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 ...
460 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 ...
153 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 ...
118 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,...
69 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

Is there any way to make a bode plot without using the MATLAB/GNU Octave function bode()? As an example, here is a function I am working on: $$H(s) = \frac{1}{2s^... -1 votes 1 answer 181 views ### Plotting the difference between an exponential and its Taylor expansion as a function of number of terms? I'm terribly green, please forgive me. I need to plot the difference between a chosen calculated Taylor expansion e^x=1+x+\frac {x^2}{2!}+\frac {x^3}{3!}+\frac {x^4}{4!}+\frac {x^5}{5!}... and the ... 1 vote 1 answer 60 views ### Using Axis Equal for Matlab simulation plots of the SIR model gives very flat solution curves My professor taught us to always use the Matlab command axis equal for our simulation data plots - for all of our homework assignments. However, in studying the ... 2 votes 1 answer 438 views ### How to plot a heatmap under a curve? If I were to have a data for a one-dimensional system evolving in time, essentially a two-dimensional array, and the array at each point in time is of the same size, how would I produce something like ... -1 votes 1 answer 605 views ### Plot of a function involving an integral and value changing parameters [closed] I'm trying to plot the cross section with respect to the photon energy h\nu but for \gamma = 1.0, 1.2, 2.0  in the same axes \sigma = \left[\left(\frac{\xi_{eff}}{\xi_{0}}\right)^2 \frac{n_r}{\... 0 votes 2 answers 526 views ### contour plot of cloud of points [closed] I have a cloud of points scattered in a rectangle and some data in this points, a bit like this$$ x(:)=[x(1), x(2), ..., x(N)] \\ y(:)=[y(1), y(2), ..., y(N)] \\ u(:)=[u(1), u(2), ..., u(N)] $$... 3 votes 2 answers 413 views ### Estimation of viscosity from critical properties The above graph represents reduced viscosity as a function of reduced temperature for several values of the ... 1 vote 0 answers 210 views ### How to set the errorbars in a different color from the plot in Matlab? [closed] When making a plot in Matlab using errorbar(...) the color of the error bars is the same as the plot. How do I set them to be in a different color? I tried looking ... 3 votes 2 answers 2k views ### Graphing electric potential of a ring of charge using MATLAB help Here is a summary of what I am trying to do: Use MATLAB to compute the potential V at any point (x, y, z) in space due to a uniform ring of charge. Use a Riemann sum to compute the integral ... 0 votes 1 answer 135 views ### Monte Carlo - Random Walk Simulation - polyfit the log log data points? This is part of the code in matlab for a random-walk simulation. To test the code, I'm using steps=; there will be more values, but I want to run it for 1 trial to decrease code processing. <... 1 vote 1 answer 2k views ### Gnuplot: How can I determine the maxima of a fit function in gnuplot? I have a set of data data.txt which can be fit to a Gaussian function, f(x). I want to determine the coordinates of the point of ... 1 vote 1 answer 4k views ### Efficiently plot a finite element mesh solution with Matplotlib I am looking for the most efficient way to plot a mesh using Matplotlib given the following information, coordinates of each node, what nodes belong to each element, and the value each node has. Below ... 1 vote 1 answer 209 views ### SciPy 3d plotting Integral of \int x^y dx for y in [-4,4] Ideally, I would like to get the symbolic/algebraic integral of the function and plot the resulting surface in 3d. I am not sufficiently versed in SciPy to know if this is even really possible. 0 votes 2 answers 183 views ### Plot a multi-variable equation in (discontinuous) regions The goal is to display the relation between K and E in the following equation:$$\cos(K) = 5 \text{sinc}( 5.12\sqrt{E} ) - \cos(5.12\sqrt{E} ) The intended result is: However, using the following ...
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 ...