Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [plotting]

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

4
votes
0answers
29 views

How do I prevent plot range clipping errors in a pdf printout?

I am using Mathematica 11.3 on a Windows 10 computer. I plotted several data sets of mine in a ListLinePlot. While the .pdf file looks perfectly in the current Adobe Acrobat Reader DC version 2019.010....
1
vote
0answers
11 views

Implementing GeoCallout?

Building off of a related question, I'm looking for a robust way of using Callouts in Geography. For example, I want to plot cities and their names with arrows and ...
0
votes
0answers
6 views

Including error bar in graph

I have a graph from one sample that was measured 3 times under the same condition. How can I plot the mean fitted graph values with the error bar (standard deviation) at 0.1, 0.2, 0.3, 0.4 and 0.5 ...
1
vote
2answers
83 views

How to plot this set $M\subset\mathbb{R}^3$?

Is there a way to plot the following set with Mathematica? $M=\left\{ \left(x,y,z\right)\mid x\in\mathbb{R}\:,\:y=\left|x\right|\:,\:0\leq y<z\right\}$ I think it's suppose to look something like ...
1
vote
0answers
68 views

Orthogonal projection of line onto plane

I have already read the post Orthogonal Projection of vector onto plane, but I have a different task. I need to make a notebook in Mathematica so that users are able to manually add parameters of an ...
0
votes
0answers
26 views

Smooth plot of coarsely spaced table values

In a simpler first case I plotted reasonably spaced (stability) contours by selecting a sequence of k values, ...
4
votes
2answers
169 views

How to color a curve

How does one color the interior of the elongated circular region in the following figure: ContourPlot[y^2 - x (x - 1)(x - 3) == 0, {x, -2, 7}, {y, -4, 3}]
2
votes
1answer
51 views

How can I remove extra parentheses in a plot callout?

This question is motivated by this question and its answers. Firstly, I wish to display "O(x)" instead of "x" as the callout labels. When I do this ...
1
vote
1answer
170 views

Printing problem: PDF output has a plot error

In my Mathematica file I have several plots that I put together in a grid. One of the plots is coded with the following code: ...
0
votes
1answer
29 views

Why is my code not giving me a graph? (finite difference method)

For a finite difference method code, I after altered it a bit for my needs. I am no longer getting errors, however I am not getting my graph to show. ...
2
votes
2answers
91 views

Euler's method initial value problem — how should I plot the solution?

I am given the following initial value problem: $\qquad y' = t\,e^{3\,t} -2\,y \quad 0<=t<=1,\,y(0)=0$ I am to use Euler`s method to approximate the solutions to this initial value problem. ...
0
votes
2answers
67 views
4
votes
4answers
5k views

The Lotka-Volterra predator-prey model

I have a Mathematica assignment where we need to numerically solve a Lotka-Volterra predator-prey population equations. $$\frac{dx}{dt}=ax-bxy,\quad\frac{dy}{dt}=-cx+dxy,$$ where $a,b,c,d\in\mathbb{R}...
3
votes
2answers
76 views

Putting a vertical line in each Histogram using GraphicsGrid

I'm using GraphicsGrid to show several histograms. In each histogram, I would like to show 2 vertical lines on the 2.5 and 97.5 percentiles. If I had an isolated histogram I would use Line, and Show....
4
votes
1answer
44 views

Why does this StreamPlot evaluation cause a crash/memory wipe?

For some reason, attempting to evaluate a simple StreamPlot will not only cause the StreamPlot evaluation to "fail" (although no error message is outputted), it will also completely wipe any variables ...
1
vote
1answer
61 views

Making categorical bubble charts

A while ago I made a question here on how to make a bubble charts, now I'm struggling to expand on this so here I shall make this question. Suppose we have the following list: ...
0
votes
1answer
30 views

How to plot several animations from a parametric plot loop

I have a piece of code which plots parametric functions using for loops. ...
1
vote
1answer
39 views

Help with Graphics3D code — how to outline a point?

I am attempting to use the following set of code ...
0
votes
0answers
44 views

Cannot find starting value for variable

I am trying to numerically solve and plot two coupled first-order differential equations using ParametricNDSolve over the region $(0,a)$ where $a$ is the parameter. ...
5
votes
1answer
257 views

How to plot error curve between Bézier curve and a circle?

I have 2 curves on 1 axes. I've been working on how to plot the error between those 2 curves. I want to plot a new error curve on a new axes but I couldn't find the solution for this problem. Here ...
4
votes
1answer
239 views

Plot 2D B-spline curve on 3D B-spline surface

I've been working on this for days. I am trying to plot the B-spline 2D curve (figure '8') on the 3D surface. How can I do that? Can anyone help me with this? Here, I provide code that I use to ...
0
votes
1answer
47 views

Why is Mathematica “de-evaluating” my expressions when I try to generate a Table?

I am attempting to plot a combination of StreamPlot and ParametricPlot that is a function of a parameter. When using Manipulate or Animate, the evaluation is slow but the graphs are outputted as ...
2
votes
1answer
89 views

Problems with plot interference of two waves

I'm trying to make motion plot interference of two waves i used lines to represent amplitude and wave envelope separately. This works for the traveling waves, but no the interfering wave. i'm ...
10
votes
2answers
1k views

Plot of a tornado-shaped surface

What is a simple code to plot a surface shaped like a tornado? Any help is welcome.
5
votes
1answer
663 views

Are these expressions not equal? Mathematica output is ambiguous

The following plot indicates that the first expression equals the second. But how can I use Mathematica to show that is true: ...
0
votes
1answer
28 views

Modify a parameter value while solving a partial derivative

I'm currently trying to do a sensitivity analysis on a variable R0 (as defined below). This sensitivity analysis aims to determine what impact has the variation of ...
3
votes
1answer
85 views

How do I plot a Laplace transform?

I have been looking everywhere for help on this issue and cannot find a solution that works. Here is the assignment. I have figured out how to find the Laplace transform, but I do not know how to ...
2
votes
1answer
67 views

Is there a way to have vectors outlined in a Vector Plot?

I am using the following code to make a 3D vector plot. ...
0
votes
1answer
208 views

How to prevent extrapolation in Manipulate? [duplicate]

How can I limit the time slider to the NDSolve solution range in a Manipulate box, so no extrapolation is used ? More specifically, here's a stripped down version of my Manipulate code which shows ...
2
votes
1answer
38 views

Graphical output problem when using ParametricPlot

I'm currently trying to see the impact of one parameter on an equation. To do so, I plot the results of my equation following against a range of values for this parameter by using ...
11
votes
1answer
155 views

ContourPlot — How do I color by contour curvature?

I'm plotting the stream lines of fluid flow past a cylinder, and I would like the colors to increase with contour curvature (i.e. increase as the velocity of the flow increases. Here's a MWE that ...
4
votes
2answers
136 views

Visualizing the difference curve in a 2D plot?

I have two functions $f(x,y)$ and $g(x,y)$. I wish to perform two tasks on a 2-dimensional figure: Plot the curve where each point satisfies $f(x,y)=g(x,y)$. Mark one side of the curve with red. I ...
0
votes
0answers
34 views

Plotting dispersion relation [on hold]

Why is the second funtion dos not appear in the graph ? ...
1
vote
1answer
42 views

How to create dynamic PlotLegends?

How to add dynamic PlotLegends to the below code? ...
2
votes
1answer
189 views

DotPlot for prime numbers

I was thinking to use a dotplot to give a description of prime numbers. On Wolfram website there is written that each dotplot can be built by ...
1
vote
1answer
102 views

Inverting the order of a Table - Prime numbers

In a previous post I asked for the possibility to have a binary image of the coprimality inside the natural numbers. The following code ...
-1
votes
1answer
145 views

Plot Ramanujan Primes

I often investigate on Ramanujan primes. Is it possible to apply this procedure described in DotPlot for prime numbers ? I think so but which is the condition I should use? I am trying from several ...
-1
votes
1answer
68 views

Liquefying of Nitrogen & Oxygen Gaseous to Liquid Phase. Thermodynamics. How to plot solution? Solved [on hold]

Process of Liquefying of air composed of 79% Nitrogen & 21% Oxygen from Gaseous to Liquid Phases as Follows: 1) When Temperature is higher than T>83 k they both are gas. 2) at T=83 k and less ...
1
vote
1answer
27 views

How do I plot a function that contains variables I have previously defined?

I am trying to plot t as a function of the variable EE which is itself included in variables I have defined. However, when I ...
0
votes
0answers
24 views
0
votes
3answers
62 views

How to extract the data points in tabular form from a 3D region plot

I want to solve an inequality e.g. RegionPlot3D[x^2 + y^2 + z^2 > 300, {x, 2, 9}, {y, 3, 10}, {z, 4, 12}] and store x, y, z...
2
votes
1answer
110 views

How to Plot a transcendental function

Let me try to be a bit schematic because my own expression is a bit complicated and could be not useful for future questions. x=f[y*a[x]] My problem is how to <...
1
vote
1answer
31 views

How to save data and show step sizes when using components and data structures of NDSolve?

In some applications, it is advantageous to access components of NDSolve. However, we could also need to observe the step size taken in the numerical integration, ...
0
votes
1answer
38 views

Difficulty in Animation of Inverted Pendulum from Interpolating Function

I was trying to model an inverted pendulum system and control it. I successfully got the plot but I'm not able to use the data to animate a graphically created inverted pendulum. Run the code serially,...
9
votes
3answers
875 views

How to generate a random pulsar graph between two points?

I am going crazy trying to create this. I am trying to create a pulsar graph that starts and ends on two points that have the same y smoothly along the x axis. The pulsar should have random valleys ...
1
vote
1answer
90 views

How to show the Chebyshev polynomials in the solution of a differential equation?

In the following code I solved a differential equation on Mathematica 11. The solution has two arbitrary constants, which, if set to 0 and 1, in previous versions of Mathematica used to give as the ...
0
votes
0answers
20 views

Acquire a single-variable function by slicing a 3d graph along a given line

Consider my Calculus 2 math problem: Given a function f[x,y]=x^2-3xy and two vectors a = {1,2} and b = {1,1}. Spanning a linear ...