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
1answer
10 views

How to plot a system of recurrence equations

I have the following code working well ... but I would then like to plot M[k] and L[k] on the same axes with k along the horizontal and M[k] and L[k] values along the vertical. The graph I'm looking ...
0
votes
0answers
13 views

Create a custom DateListPlot

We have the following data ...
1
vote
0answers
32 views

3d system: stream plot and function

I have a 3D ODE-system $x'=f_1(x,y,z),\quad y'=f_2(x,y,z),\quad z'=f_3(x,y,z) $ living on the sphere and an equilibrium $(x_0,y_0,z_0)$. I would like to plot a function $V(x,y,z)$ to see whether t ...
0
votes
2answers
31 views

Plot the solution for system of ODEs

I have solved this example available in MATHEMATICA: ...
1
vote
1answer
20 views

Insets hides behind a surface

In the following code, the "Hi" is above the surface, but you still can't see it from above. ...
1
vote
1answer
41 views

PlotRange prevents PlotLabels from displaying

(I am using MMA v.12.0.0 OSX.) It seems like PlotRange is preventing PlotLabels from displaying the labels of the curve which ...
0
votes
0answers
43 views

Floating point problem with plotting huge function

I am trying to plot a complicated function. In the end the plot does not look well and it seems like there is a problem with the precision. Short explanation for the following code: First I do ...
1
vote
0answers
49 views

Stuck at trying to plot a dispersion relation EM wave

We are considering the matrix transformation of an electromagnetic wave through periodic media. The constant is given as: ...
8
votes
2answers
262 views

How can I plot a parametric equation with ±? [closed]

I want to draw a parametric equation with ± like the figure below: But I don't get the result I want when I run the following code. What can I do to get it? ...
10
votes
1answer
99 views

Mottled appearance of ContourPlot3D with transparency

I'm trying to make a ContourPlot3D that needs to be transparent. With transparency, however, something odd happens. With ...
1
vote
1answer
102 views

On drawing Mohr's circle of spatial stress state with direction vector parameters l and m as parameters

The figure below shows the micro tetrahedron in an elastic body in equilibrium: In the textbook, I see the expressions of normal stress($\sigma_{v}$) and shear stress($\tau_{v}$) on the differential ...
5
votes
0answers
152 views

Plotting severely distorted in V12.1 but works in V12

The following code can plot a surface in 3D (the plot) and also makes a row of two plots using ...
0
votes
0answers
74 views

Why is my plot hatched and how do I remove the hatched part of the plot? [closed]

Sorry for asking simple questions, I tried to solve it myself but I couldn't. I want to plot the following code, but the plot is hatched. ...
1
vote
1answer
53 views

How to recognize real parts of a function by plot?

I have this function f[x_] := ((2 x Cos[4 x] )/(1 + (x^2) ) + Sqrt[ Cot[3 x]^4 - (Cos[4 x]^2) (Csc[3 x]^2) ])/(4 /(x^2) + Cot[3 x]^2); where $0<x&...
3
votes
2answers
73 views

ListPlot curves exceed PlotRange, thus overflowing the Frame

When I restrict the PlotRange in ListPlot and its variants (ListLogPlot, ListLogLinearPolt, and ListLogLogPlot), the curves are drawn well beyond the PlotRange, and thus well outside the Frame. Is ...
3
votes
1answer
60 views

Add tick at zero with label 0

I am trying to get a label "0" at the origin to display. Currently it is not displaying (code below). Other tick labels work fine, just not at zero. I suppose I could use ...
0
votes
1answer
29 views

Plot[] generates erroneous values in a region for analytic expression

Mathematica 12.1 Something funny happening around t=750 for this non-periodic function. ...
1
vote
0answers
38 views

Plotting NDSolve solution does not cover all the integration domain

I have a set of four coupled Ordinary Differential Equations and I would like to solve it numerically with NDSolve. The explicit forms of these equations are not ...
2
votes
1answer
36 views

AxesLabel -> Automatic behave strange

MMA version 11.3 & 12.1 ...
0
votes
0answers
16 views

Customising mulitple ParametricPlot3D intersecting each other

Does anyone know of any good style options for graphing surfaces, so that they are both distinguishable very well and rendered high res. Also how do I get the intersection of the surface and xy plane ...
1
vote
0answers
44 views

Great circle on a sphere does not show up perfectly when looking at it head on

The following code produces the following out. What's the reason for the great circle to be broken up around the x-y plane? ...
0
votes
0answers
23 views

Plot trajectory and angle of object using multivariable vector plot

I want to plot a projectile motion graph, with and without drag. So I want the x-axis to be the horizontal displacement. y-axis is the change in angle. z-axis is the vertical displacement. ...
0
votes
0answers
19 views

FactorSquareFree::lrgexp: Exponent is out of bounds for function FactorSquareFree. Error

I'm trying to make a two-dimensional contour plot of the temperature of a plate. This is my initial function: ...
1
vote
1answer
53 views

ParametricPlot3D doesn't show

I am trying to plot a given vector (which is not a function) using ParametricPlot3D but couldn't make it show the surface. I tried using Evaluate, Function and Through but it didn't work. ...
1
vote
1answer
44 views

Why doesn't this integral return a symbolic result, but when evaluted in Plot returns the correct function?

I have the intgeral $$f(z_{0}) = \int_{z_{0}}^{\infty} |z| \exp(- a z^{2}) \, \mathrm{d}z$$ Which I compute with ...
-1
votes
0answers
48 views

Contour plot is empty [closed]

Does anyone know how come the graph is empty. I suspect too complicated expression. Have I missed some obvious fact about syntax. ...
3
votes
1answer
71 views

Plotting a differential equation with boundary conditions

I have a problem with numerical calculation and plotting of differential equation. Now I set a complicated region to set a boundary condition: ...
2
votes
1answer
30 views

How can I format these data sets nicely in a table?

I have three data sets, each generated by Table in the following manner: ...
2
votes
0answers
34 views

How to embed a plot drawn by Mathematica into a webpage

In this webpage for Calculus, page the author presented graphs of surfaces in 3D so that we can interact with (rotating, zooming). My question: can we create a graph using Mathematica and then ...
1
vote
1answer
25 views

defining constants and plotting them

I want to plot some functions and define some variables as constants, apparently the variables are not being recognized as constants. I'm kinda new to coding so this is very difficult to me. this is ...
2
votes
1answer
24 views

Plot GridLines not displaying

GridLines not rendering. Tried changing Background to White and GridLines to Black to see if they render at all but they do not. How do I make GridLines render and can these PlotStyles and settings ...
3
votes
2answers
127 views

Animated 3d Arrow around an interpolating function

I am trying to draw an arrow that originates from point {0,0,0} to the point of the curve. The arrow should rotate around the curve. I am attaching an animated figure as well so you know where the ...
1
vote
0answers
45 views

Troubles With Dynamic,Panel in Riemann Sum Program

Tl:DR: Scroll all the way down General overview : This program aims to construct a demonstration of the Riemann sum by summing up the area of rectangles under the graph of a function....
6
votes
1answer
90 views

Blue background in StreamPlot output? [closed]

In 12.1.0 for Microsoft Windows (64-bit) (March 14, 2020) writing: ...
1
vote
1answer
35 views

Plotting complex roots and domain

I'm trying to plot the roots of a complex equation, $p(z)=0$, and a domain, $D$, but have not found a clever way to cover general domains. If we, e.g., take the equation $p(z)=5 z^3 + 9 z^2 - 25 z + ...
6
votes
1answer
78 views

Discontinuous lines in StreamPlot

I am trying to plot a vector field using the function StreamPlot: ...
1
vote
1answer
70 views

Using Plot 3D to create Ice Cream Cone [duplicate]

How might I recreate this ice cream using Plot3D given: cone = sqrt(x^2 + y^2) and below the spherical cap: x^2 + y^2 + z^2 = 50
1
vote
0answers
36 views

Plot showing up blank when I define expression outside of Manipulate [closed]

I obtain an expression through various steps using the differentiate and solve tools, and then I would like to plot it using Manipulate. However, due to how the expression was obtained I would like to ...
2
votes
1answer
55 views

How do I create a bifurcation diagram for the below iterative map? [closed]

I have tried to create a bifurcation diagram for the following iterative map: x[n+1]=-r Log x[n], x[1]=0.711 and r=1/log(n(n+1)) using the following code But it doesn't work. Any help? ...
1
vote
1answer
28 views

FilterRules works in DateListPlot but not in Plot

I just experience the following problem (this is a MWE just to illustrate). First DateListPlot ...
2
votes
1answer
39 views

Add Edge Label to certain edge in a bipartite graph

From https://mathematica.stackexchange.com/a/109436/70384 , I modified the code to display the bipartite graph I want and how do I label my edge with the edge weight by manually specifying it? I use <...
3
votes
2answers
60 views

Shifting fit and its data on x axis

I have the following list: ...
6
votes
1answer
54 views

Force two distance matrices to use and show a common legend

I have two distance matrices. Both are comparing two entities in the same way. I create each matrix using ...
3
votes
1answer
65 views

Rasterize issue with ListDensityPlot in 12.1

I have upgraded to 12.1 (on OSX Catalina 10.15.3) and am noticing some odd behaviour with Rasterize. If I use a high number of rasters when rasterising a ...
1
vote
1answer
45 views

Multiple curves in the same ParametricPlot3D as functions of different variables

Can two parametric curves as functions of different parameters be plotted in the same ParametricPlot3D without Show? Currently ...
0
votes
1answer
40 views

Plot integral expression

Trying to plot in Mathematica with an integral as the iterator Plot[x, {Integrate[1/Sqrt[0.31*x + 0.68*x^4 + 0.01*x^2], x], 0, 10^7}] But get the error that it ...
0
votes
0answers
33 views

How to input thickness in a spherical gyroid

I have the equation to contourplot3D a spherical gyroid given below ...
0
votes
0answers
20 views

Find the curvature circle tangent to a space curve [duplicate]

I'm trying to find the circle with curvature radius tangent to a space curve, like $\vec{s}(t) = [\cos{t}, \sin{t}, \frac{t}{5}]$. I notice that the circle lives on the plane the velocity and ...
3
votes
2answers
48 views

Coloring DiscretePlot3D according to min

I have two discrete functions, which I'll greatly simplify for this question: RedFnc[i_, j_] := 1 + i + j; BlueFnc[i_, j_] := 1 + (1 - i) + (1 - j); I am ...
0
votes
0answers
87 views

Aligned graphs in 12.1?

Yesterday while reading about new features in 12.1 I recall reading about the capability to produce columns, rows or grids of plots with shared axes. For example, to output two plots, one above the ...

1
2 3 4 5
223