Skip to main content

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
1 vote
0 answers
13 views

How to change the axis orientation of the cylinder in `ContourPlot3D`?

How to get the axis of the cylinder oriented along the red line shown in the figure below ? Here is my code : ...
Arssat's user avatar
  • 91
2 votes
1 answer
80 views

Integrate regions in Plot/Piecewise

I have the following code: ...
vladpopovcev's user avatar
0 votes
1 answer
72 views

Bifurcation plot of polynomial equation having two variable on y-axis and one variable on x-axis

I want to plot the following equation: ...
vijay's user avatar
  • 47
1 vote
0 answers
22 views

ColorScaling only to one axis on Discrete3dPlot?

I am trying to visualise a probability function in terms of number of trials/number of successes, and I'm using Discrete3DPlot to do so. I've figured out how to set ...
Lee Davis-Thalbourne's user avatar
1 vote
1 answer
60 views

How to select the image size in "Image3DSlices"?

I want to get 100 images of 100x100 size 2D image data with "Image3DSlices" command. ...
rani's user avatar
  • 343
0 votes
1 answer
78 views

How to smooth 3D data for a contour plot

I have 3D data but is very noisy and is not regular shape in any dimension. I want to create a contourplot by smooth the data in the third dimension. I initially used this command to plot the data ...
Renato QE's user avatar
0 votes
0 answers
155 views
+100

Plot the solution of a differential equation

Consider: $$\frac{1}{(1-e)^2 w}=v-z$$ where $v=f(e,i,L,W,a,n)$, $z=g(e,i,L,W,a,w,n)$, and $L = h(e,w,a,b)$ are given functions. From the above equation, $e$ can be derived as a function of $w$ along ...
ppp's user avatar
  • 725
0 votes
2 answers
67 views

Plotlines don't meet the axes?

I am trying to plot a few functions which have very large numeric outputs. One can however scale the outputs to make the values small. I will paste the function here ...
QFTheorist's user avatar
2 votes
1 answer
238 views
+100

Numerical Simulation of a Damped, Driven Nonlinear Wave System with Spatially Extended Initial Conditions

I am working on a project that requires creating a specific type of graph, but I am having trouble writing the correct code. The graph should look similar to the one I have attached below. Could ...
Athanasios Paraskevopoulos's user avatar
4 votes
2 answers
229 views

Extrusion of a parametric surface with different face and boundary colours

Problem statement I want to extrude a parametric surface and colour its front faces, back faces and boundaries differently. Define plot options ...
eldo's user avatar
  • 75k
0 votes
0 answers
43 views

Function becomes jagged when being multiplied with a very small prefactor

When I try to scale down a sigmoidal function by multiplying it with a very small value, the function seems to lose its precision, as the curve in the plot becomes jagged lines. The code of the ...
Johnson's user avatar
  • 357
0 votes
0 answers
56 views

I want to plot a system of coupled pde where coefficients are component of vector defined piecewise [closed]

I am trying to reproduce some results of a paper. But I'm very new to Mathematica. I have written the code using some AI tools. but I'm unable to spot the error and mistakes in my code. here is my ...
Ashish K's user avatar
2 votes
0 answers
40 views

How to generate lattice by integrating over curves on a modular form domain plot?

I was watching this video (2:30 of https://youtu.be/zLEyIT_BCgk?si=ji5NyjR7vcwzaNxi ). Here in the video he said that to get the lattice , we just integrate over the curve(silver line) and we will ...
Kazi Abu Rousan's user avatar
1 vote
0 answers
40 views

Filling does not work with ListLinePlot

I have the following code to generate a plot that fills between the two curves. The filling didn't show up. Please help. ...
bakerryd123's user avatar
6 votes
2 answers
134 views

Why do I get repeated points when extracting mesh points from ParametricPlot

When I was extracting the mesh points from a ParametricPlot, I found that it extracted the same two points twice, and I'm not sure why. I know I can use ...
xinxin guo's user avatar
  • 1,389
2 votes
2 answers
91 views

Using the result of NDSolve to make animation

I have solved a system of PDEs and made density plots using the following script ...
questionerno8's user avatar
0 votes
0 answers
24 views

Problem with AxesLabel position in three-dimensional plot

I have the following code: ...
tupoliedro's user avatar
1 vote
1 answer
30 views

Plotting more than one curve in one plot using parametric plot option

A follow up to the previous question. The function circp[x,y,t] below is used to plot a curve (circle or ellipse) at different position in a single plot as shown ...
physics geek's user avatar
1 vote
1 answer
50 views

Plotting circles at each point in space

I am trying to make a plot on x-y grid such that, at each coordinate such that x=y, i need to get a plot. For this purpose, i have created a function which can generate a parametric plot of a circle. ...
physics geek's user avatar
2 votes
1 answer
46 views

ContourPlot3D uniform color regardless of view point

Working with ContourPlot3D I need my 2-surface to have the same color regardless of the viewpoint. However, when I rotate the figure, the darkness of the color changes. These two images belong to the ...
tupoliedro's user avatar
3 votes
1 answer
54 views

When I arrange two 3d-plots using Grid, position of axes-y changes

I want to arrange two 3d-plots, for example Plot3D[{x^2 + y^2, -x^2 - y^2}, {x, -2, 2}, {y, -2, 2}, ColorFunction -> "RustTones"] which gives where ...
so_sure's user avatar
  • 341
0 votes
1 answer
25 views

How can I annotate a ListLogLinearPlot with Graphics and Text?

I'm running an incredibly old version of Mathematica: version 9.0 (how embarassing!). I have a list of (x, y) ordered pairs that I can plot using ListPlot. In the ...
Andrew's user avatar
  • 10.6k
1 vote
1 answer
44 views

ListLogPlot omitting data points

Right now my plot looks like Code is: ...
meek0's user avatar
  • 35
3 votes
1 answer
420 views

Plot fails to plot. What am I doing wrong?

The below code executes. If I uncomment the Plot, it runs for a while and outputs nothing, not even the Mean and Variance. ...
Jonathan Venezian's user avatar
12 votes
2 answers
774 views

Frank Stella's Protractor Series - can we reproduce Lac Laronge IV?

Frank Stella Frank Stella, one of the most fanous contemporary American artists, died on May 4 at the age of 87 at his home in Manhattan. I learnt this from our colleague Yarchik, who, a few days ago, ...
eldo's user avatar
  • 75k
11 votes
3 answers
1k views

How to draw such a sphere with mesh

I want to recreate a ball with mesh like this, use different style for the front and back. I tried using MeshShading, but the mesh lines looked too thick, can I ...
matrix42's user avatar
  • 7,138
0 votes
0 answers
55 views

Solve system of integrated differential equations

I want to solve a system of integrated differential equations but I am encountering a problem with my Mathematica code. \text{ka}=\text{kb}=1; \text{wa}=\text{wb}=\frac{w}{2}; \text{Jxy}=0.5; \text{Jz}...
Radia B's user avatar
  • 41
0 votes
0 answers
36 views

How can I combine two plots having different parameters in y axis and same parameter in x axis?

I have two separate plots with the same parameter in the x-axis ($\phi$) and different parameters ($m_1$ and $m_2$) in the y-axis. I want to combine the plots and plot them in a single graph with ($...
Sangeeta Dey's user avatar
7 votes
2 answers
204 views

3D plotting of parametric curved surface

Imagine I want the 3D plot of a solid object that has height $H$ and a circular base of radius $R$. The radius of the horizontal cross-section of the object at height $z$ above the base reduces with $...
sam wolfe's user avatar
  • 4,863
0 votes
1 answer
63 views

Vortex beam profile plot [duplicate]

I want to plot this type of plot for the Lagurree Gaussian beam $\begin{aligned} u(r, \phi, z)= & C_{l p}^{L G} \frac{w_0}{w(z)}\left(\frac{r \sqrt{2}}{w(z)}\right)^{|l|} \exp \left(-\frac{r^2}{w^...
Himani Juneja's user avatar
0 votes
1 answer
43 views

Scaling problem with plot and legend

First of all look at these code- ...
Debojyoti Mondal's user avatar
4 votes
1 answer
176 views

Kernel quits while using ParametricNDSolve

I'm trying to reproduce the plots (Figure 1 and Figure 2) of this paper. The plots are obtained by solving the Eqs. 4.3 and 4.4. The boundary conditions described in section 3.3 for Eqn. 4.3 are ...
Entangled Quark's user avatar
18 votes
3 answers
1k views

Can we reproduce Antonio Asis circle interferences?

Antonio Asis Antonio Asis (1932 - 2019) was an Argentine artist and one of the main exponents of kinetic art and op art. Asis was born in Buenos Aires. At the age of 14 he enrolled at the National ...
eldo's user avatar
  • 75k
2 votes
1 answer
88 views

Im a UG college student we have Maths lab in Last year and we are using mathematica but im getting error "cannot assign to raw object 1" [duplicate]

''' so im trying to get roots of f[x]=Cos[x] which is supposed to be 1.57068 but when i use the methord of constructing the function its giving me the error mentioned above the code is as follows <...
Chetan Joshi's user avatar
3 votes
2 answers
141 views

Plotting Phase Portrait of Duffing Equation

I study a paper that describes a stationary problem where the function $\Phi_d$ satisfies the boundary conditions and is governed by a modified Laplace equation with a non-linear term. Here's a ...
Athanasios Paraskevopoulos's user avatar
2 votes
1 answer
74 views

Package function doesn't plot math function when given as input

I'm new to Mathematica and I'm trying to learn to write some basic code to create a DialogInput in which the user writes the function to plot. I'd like to ...
LukeTheWolf's user avatar
1 vote
0 answers
85 views

Enclosing ParametricPlot3D to create a solid volume

I'm creating a 3D parametric hourglass shape that I hope to fill, making the center solid to use as a 3D volume, because I can't set parameters to it in COMSOL for simulations right now. I know that a ...
Char's user avatar
  • 539
1 vote
1 answer
37 views

How to change positioning of legends using Show command?

In reference to "https://mathematica.stackexchange.com/questions/267013/how-to-change-layout-of-a-legend-in-show-function", the solution is provided. My question is: If I have 5 curves each ...
Isha Arora's user avatar
7 votes
2 answers
281 views

Graphical artifacts appearing on translucent lines in plots [duplicate]

I am trying to plot lines with some translucent behavior, for which I set the opacity to some number in PlotStyle. However, this gives me random squares in the plot ...
JamesVR's user avatar
  • 407
0 votes
0 answers
86 views

Color error in ParametricPlot3D of several curves

Why are in the following context all 5 drawn curves blue and not the middle one red? To replicate the above: ...
Jürgen Böhm's user avatar
0 votes
1 answer
62 views

Merge two plots with a common x-axis

Consider the code for the bifurcation diagram: res = Internal`Bag[]; tmax = 5; {x0, y0, z0} = {1, 1, 1}; Suppose I define p1 as:...
Math_student's user avatar
0 votes
1 answer
60 views

Aligning a plot with another function through bar legend

I have a parametric funtion say, (f(t) cos t, f(t) sin t) and another function g(t). Now I want to plot (f(t) cos t, f(t) sin t) and show g(t) in bar legend for same range of t. for example t=0.5 ...
Debojyoti Mondal's user avatar
15 votes
4 answers
1k views

Reproducing Roman Verostko's FF 2004 Drawing

Roman Verostko Roman Verostko was born in 1929 in Tars, Pennsylvania. In the early 1980's, following 30 years of painting, he began executing algorithmic drawings with a pen plotter. Today his studio ...
eldo's user avatar
  • 75k
0 votes
0 answers
34 views

Plotting a different data set

I am trying to plot the following list in which for each value of x point, we have three different values for the y point list={{1,{1,2,3}},{2,{2,3,4}},{3,{5,6,7}}; ...
sined's user avatar
  • 583
2 votes
0 answers
51 views

Drawing cycles around and across cuts

I want to draw cycles (or paths) around and across the cuts on the complex plane for the following function (where I have put the cuts between [z1,z2] and ...
Physics Moron's user avatar
11 votes
0 answers
202 views

Tick functions not working in 14.0.0?

Consider the code ...
sam wolfe's user avatar
  • 4,863
1 vote
1 answer
67 views

Retrieving only first function in matrix ODE using NDSolve

I have a very stupid question, but I don't use Mathematica very often, so here it goes: I'm trying to solve some "matrix" ODE using NDSolve. The matrix in ...
user3914956's user avatar
3 votes
2 answers
117 views

Plotting a function containing a $\pm$ sign

Is there any command in Mathematica to plot an expression: $f(x,y)=\exp^{x\pm y}$. As far as I know, it is not possible as the expression will vary differently with the sign. I have seen such plots in ...
Rag's user avatar
  • 45
2 votes
2 answers
136 views

Plotting 3x3 Linear System

I am trying to plot the following linear system ($3\times 3$) in different ways. My question is what wrong have I done to my last code? ...
Athanasios Paraskevopoulos's user avatar
4 votes
3 answers
152 views

Plotting the image of a function of 3 variables in $R^3$

Reading the question plotting the image of a function under constraints I see that the TransformedRegion command allows one to plot the image of functions whose domain is in $R^2$ and the image is in ...
Sergio Parreiras's user avatar

1
2 3 4 5
320