Questions tagged [plotting]

Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.

Filter by
Sorted by
Tagged with
0 votes
1 answer
127 views

Is it possible to make a phase portrait of this system?

I need help with this problem: I have this ODE system For this system, manually, I calculated the stability points, eigenvalues, and Jacobian matrix for a range of ALPHA values (I considered those ...
Victor Pinto Msc Student's user avatar
3 votes
1 answer
55 views

Highlight points in ArrayPlot in the same way that it happens to DensityHistrogram

I was wondering if there is any way to highlight the values in ArrayPlot in the same way that it is possible for DensityHistogram. Something along the lines of the plot below but in cases where I ...
elbOlita's user avatar
  • 1,639
4 votes
2 answers
166 views

How to make the segmentation function automatically draw the correct function image at the break point?

The function is: We know that f[x] is an even function defined on x < 0 And x > 0, when x > 0, ...
csn899's user avatar
  • 3,635
2 votes
1 answer
63 views

Plotting real spherical harmonics with SphericalPlot3D - odd functions overlap themselves, even functions ok [duplicate]

I want to reproduce plots of real spherical harmonics as shown on Wikipedia. I used: ...
lixpas's user avatar
  • 65
2 votes
1 answer
60 views

How do I make a plot for $\sum_{i=1}^{\infty}2\eta_i^2 sech^2(\eta(x - 4\eta_i^2 t - x_i^0))$?

I would like to replicate a figure similar to that shown above. However, in my attempt for naively plotting two such "pulses", I get a single pulse. Why? ...
KZ-Spectra's user avatar
2 votes
1 answer
41 views

Expressions in PlotLegends

When the order of the Bessel function is negative, it will automatically be evaluated in PlotLegends. ...
lotus2019's user avatar
  • 2,091
5 votes
4 answers
304 views

How to plot q[y_, t_] , using x = x[y_, t_] and t as the independent variables?

...
babyK's user avatar
  • 53
6 votes
2 answers
161 views

Coloring the line in ListLinePlot according to a rule

Mathematica noob here. So I have a list of values (lvalues) which are real numbers, some positive, some negative. I want to use ListLinePlot to plot them, but I want the line to become red when goes ...
Alberto Sierraalta's user avatar
8 votes
3 answers
417 views

How can I build a cycled curve from three orientable Bezier curves and fill the curved region?

The desired result is ...
herbertfederer's user avatar
5 votes
1 answer
68 views

"Callout" label changes plot range

I'm noticing that using Callout seems to override the PlotRange option of Plot, increasing ...
user241891's user avatar
2 votes
1 answer
88 views

General Trend of a ListLogLinearPlot

I have a data file. I must plot this using ListLogLinearPlot and identify the trend (or the mean). Below is my code for Importing the data file and plotting it. <...
user444's user avatar
  • 2,354
5 votes
2 answers
610 views

How to fill a triangle enclosed by three non-parallel lines

I cannot understand how to fill the triangle, and only it, made by the given lines and the x-axis. Here is the code I have tried: ...
Enrico M.'s user avatar
  • 867
4 votes
2 answers
154 views

Contour Plot - L-Shaped

I am trying to plot a contour with an L-shaped form. I started by illustrating the contour function (horizontal, orange) and adding a line (vertical, black). ...
Tom's user avatar
  • 299
2 votes
0 answers
51 views

Combining plots results in missing values [closed]

I have the following code: ...
Cedric Martens's user avatar
1 vote
1 answer
81 views

Why does Callout pixelate the resulting plot?

Somehow, using callout produces a plot that is similar but with the display pixelated (see pasted image below). Im not sure if this is a effect of mac (MacBook Air, M1, 2020, Apple M1, Sonoma 14.3 (...
elbOlita's user avatar
  • 1,639
0 votes
1 answer
47 views

2D Scalar plot of roots as function of parameters

Suppose I have a function of x with two parameters a,b : f(x;a,b). I want to plot x'(a,b) where x' is the root of the above function .i.e f(x';a,b). I know that for all a and b, the roots real. How ...
NavStoke's user avatar
2 votes
1 answer
102 views

Find the Intersection Point of Two Complex Functions Using Complex3DPlot

I want to find the intersection point using ComplexPlot3D. I have a function call it $f(\lambda,k)$ ($k$ is fixed) such that at two particular values of $\lambda_{1,...
ZHENGYAO HUANG's user avatar
2 votes
2 answers
117 views

Problem related to fitting a damped sine function

When I try to fit an exponential damped sine, it acts as if it cannot reach the amplitude at all. What do I change? link to data: datafile Getting data: ...
hubvoy's user avatar
  • 21
1 vote
2 answers
85 views

How do I fit unknown function to my data?

I have a set of data, to which I am trying to fit an unknown function. I believe it might be a logarithmic function, but I am not sure. Can you help me find a working model? ...
DarnokPL's user avatar
2 votes
4 answers
114 views

Rescaling the data points

Lets say I have the following data points, ...
a019's user avatar
  • 845
2 votes
1 answer
74 views

How to set the same scaling for multiple density plots while using the ColorBar package or user-defined colorfunction?

I know questions with this theme have been asked before, and the one-line answer to them is- "Use ColorFunctionScaling -> False" But my specific ...
codebpr's user avatar
  • 2,092
3 votes
4 answers
118 views

Obtain/extract PlotRange values from a ListPlot

Note: I'm running Mathematica 9.0, which is quite an old version. But I'd like potential answers to be applicable to Mathematica 9.0, if possible. In the following example, I have two ...
Andrew's user avatar
  • 10.5k
2 votes
2 answers
151 views

Plot region formed by all points $\left\{(\cos(x+y),\cos(x-y))\mid(x,y)\in\left(0,\frac\pi2\right)^2\right\}$

How can I use Mathematica to plot the region $$\left\{\big(\cos(x+y),\cos(x-y)\big)\left\lvert(x,y)\in\left(0,\frac\pi2\right)^2\right.\right\}~?$$ I thought of using ...
youthdoo's user avatar
  • 239
3 votes
0 answers
78 views

How can we dice a parametric surface? - Part II

A few days ago I asked: How can we dice a parametric surface? Now I have two follow-up questions concerning the elegant answer given by kglr. He handles the dicing with three short functions: ...
eldo's user avatar
  • 62.2k
6 votes
3 answers
469 views

Projecting the stationary points of a function below its 3D Plot

I have the following Mathematica code: ...
codebpr's user avatar
  • 2,092
6 votes
1 answer
201 views

Visualizing pseudo-spectra of large matrices

I'm looking to reproduce some pseudo-spectra figures on Mark Embrees' site https://www.cs.ox.ac.uk/pseudospectra/random/dense.html In particular, a pseudo spectrum of a random square matrix with $N=...
Yaroslav Bulatov's user avatar
2 votes
1 answer
93 views

Manipulate Plot with Find Root Parameter

I would like to plot the function G(r; x') as a function of r, but with parameter x'. x' is the solution to F(x';p) = 0 where p is a parameter I can control. Unfortunately F is messy and I must use ...
NavStoke's user avatar
1 vote
1 answer
54 views

How to plot the solutions to the following differential equation

I have the following set of differential equations: \begin{align*} \ddot{\theta}(s) & = \Gamma_{\varphi \varphi}^\theta\dot{\varphi}(s)^2 = \frac{\sin\theta \dot{\varphi}(s)^2}{(2+\cos\theta)},\\ \...
user57's user avatar
  • 115
2 votes
2 answers
139 views

Graph of a 3D discrete-time dynamical system

I have a set of difference equations defining a 3D dynamical system with specific parameter values. How can I create a 3D phase portrait to display its trajectories and identify potential attractors? $...
Zafar Boxonov's user avatar
0 votes
0 answers
61 views

Log Plot taking unusually long time

I am trying to run the following code ...
saad's user avatar
  • 101
2 votes
2 answers
191 views

Adding a formatted table of function properties to a plot

...
csn899's user avatar
  • 3,635
2 votes
2 answers
136 views

Why cannot the function graph be drawn correctly after using variable replacement?

The following code can correctly draw the function image: ...
csn899's user avatar
  • 3,635
0 votes
0 answers
46 views

How to debug `AnimationVideo` "does not yield valid frames" error?

I have the following code below producing working Animation but failing AnimationVideo in Mathematica 14.0.0.0. Error is "...
Yaroslav Bulatov's user avatar
3 votes
2 answers
185 views

How to show two plots with different axes?

What is the easiest way to plot something like where either x-y axes pair is independent of the other. I tried combining BarChart and ...
sam wolfe's user avatar
  • 4,553
0 votes
0 answers
65 views

Plot of a complicated function under double summation

I wrote the following inputs in mathematica to plot the following expression: ...
R. Bhattacharya's user avatar
5 votes
2 answers
161 views

Frame in a plot

When adding a frame to the following plot, the negative values become above the x-axis: Plot[Log[t], {t, 0, 1}, Frame -> True] How can the natural plot be ...
S. Euler's user avatar
  • 369
-1 votes
0 answers
65 views

Can the If command draw the point after meeting the conditions, and not if not?

...
csn899's user avatar
  • 3,635
2 votes
2 answers
97 views

Multiple input data on same module ( Torus sections)

I am computing to show several sectional projections of a circular torus intersected by planes parallel to the torus axis of symmetry. However the displacement $d$ is manually given here, so is ...
Narasimham's user avatar
  • 3,138
0 votes
0 answers
125 views

NDSolve gives High Oscillatory Solution [duplicate]

I want to solve a differential equation of second order with complex initial conditions. ...
Jules Alvarez's user avatar
2 votes
2 answers
77 views

How to remove extraneous horizontal line ParametricPlot of Mod function in evaluation

I'm trying to make plot of the mod function in the parametric plot. But it gives extraneous horizontal line. ...
user148696's user avatar
2 votes
2 answers
71 views

Graph the curve with parametric equations x = (1 + cos(16t)) cos(t), y = (1 + cos(16t))sin(t) , and z = 1 + cos(16t) [closed]

Graph the curve with parametric equations x = (1 + cos(16t)) cos(t), y = (1 + cos(16t))sin(t) , and z = 1 + cos(16t) .
user avatar
12 votes
2 answers
528 views

How can we dice a parametric surface?

A few days ago I asked how to slice three-dimensional surfaces: How can we produce sliceforms? The three outstanding answers make me believe that dicing parametric surfaces should also be possible. ...
eldo's user avatar
  • 62.2k
-1 votes
1 answer
95 views

Difference between LogPlot and Plot[Log] [closed]

I want to plot a function with LogPlot[], but I got interested to see Plot[Log[f],{t,...}}, and I was surprised to see that with ...
Jules Alvarez's user avatar
5 votes
1 answer
112 views

ListPlot3D, how not to connect some points?

I have a list {{x1, y1, z1}, {x2, y2, z2}, ... , {xN, yN, zN}}, which I am plotting using ListPlot3D. The {x, y} values are in ...
Quantization's user avatar
3 votes
1 answer
64 views

Help with plotting [closed]

can anyone help me with how to create similar to these plots using Mathematica or Matlab? thanks
shukri's user avatar
  • 31
4 votes
3 answers
246 views

Projection of 3D Exclusion Lines to 2D

I have a bunch of polynomials, which I draw them using this script ...
Shasa's user avatar
  • 961
0 votes
0 answers
97 views

Graph of the following code

How to find out the exact coordinates of the following graph, as I am looking for a sine or cosine wave inside of the straight line. Although it is shown as a straight line, inside of that line there ...
Atiqur Rahman Atiq's user avatar
0 votes
1 answer
48 views

Please help to use ContourPlot for the locus (y - x^2) (y - 2 x^2) == 0. If I build the expression by hand, it shows nothing

My code is as follows: ...
Coti's user avatar
  • 31
1 vote
4 answers
255 views

Drawing a straight line perpendicular to the x-axis wih Plot

I want to plot a straight line perpendicular to the $x$-axis at $x=1$. None of the following attempts work: ...
csn899's user avatar
  • 3,635
3 votes
4 answers
369 views

Labelling a point in the coordinate system with a dashed line corresponding to the x-axis and y-axis

In the image made with the following code, I want to start from points {4, -1} and make two dashed lines perpendicular to the x-axis and y-axis, respectively. ...
csn899's user avatar
  • 3,635