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
0answers
62 views

How to plot x[t] vs x'[t]?

Hello please help me to plot my code like the right side plot where I cannot plot the phase plane plot Displacement VS velocity, see plz the attached picture.. Here is my drafted code , Where I got ...
1
vote
1answer
50 views

Obtaining the boundary line of a RegionPlot

I have the following code ...
3
votes
1answer
115 views

Solve a system of three stiff ODEs and plot graphs of it - Oregonator

I want to plot a system of three stiff ODEs (Oregonator model). That model describes a chemical oscillator. I do not have much experience with plotting ODEs, but I have obtained a Mathematica file ...
2
votes
2answers
47 views

Cannot understand meaning of “identical”

This came up in the context of plotting solutions to NDSolve, but I've reduced it to the following issue. This really has me scratching my head. ...
0
votes
1answer
39 views

Full domain of Dirichlet boundary not displaying in 3DPlot

I have code to solve the 2D wave equation on a given region with an initial condition that is sinusoidal in one part of the region and 0 elsewhere. Here is an example on a rectangular region that ...
1
vote
0answers
63 views

Faster Way of Plotting a Multivariate Integral with No Closed Form and Maximized

I have a double integral that looks like this. $$J=\int_0^2\int_{-2}^2 \sin(y\cdot B_z+z\cdot B_y+\phi_y+\phi_0)\,dy\,dz$$ $\phi_y$ I am defining as different functions of y, e.g. $\phi_y=0$, $\...
2
votes
1answer
39 views

Plotting a contour

I have a 4x4 matrix defined as follows: ...
0
votes
2answers
79 views

Can this 2D-Venn diagram code--involving Disk--be “upgraded” to a 3D one, involving Sphere?

At https://wolfram.com/language/12/improved-visualization-labeling/venn-diagram.html?product=mathematica one finds the code ...
1
vote
1answer
53 views

I am having difficulty with a ContourPlot using an implicit function

The 2nd term results in a divide-by-0 when x=0 unless y=0 also. The curve should go to Pi/2 for x=0 but it doesn't. Running on MMA12 on Mac OS/X 64-bit (latest) Help. ...
1
vote
2answers
39 views

DensityPlot3D produces complex numbers

This invocation of DensityPlot3D[] is unhappy: ...
1
vote
0answers
37 views

How to use two sets of data for a ListLinePlot as x and y data [closed]

I'm new to Mathematica, so I have a quite basic problem. I found in the description of ListLinePlot, that one can use pairs of variables {x,y} for plotting. But my ...
12
votes
1answer
172 views

PlusMinus definition unexpectedly affects plotting

In version 10.1 I found a strange Plot behavior I did not anticipate. It seems that various heads including PlusMinus are ...
2
votes
1answer
82 views

ListLinePlot works for data similar up to 9 decimal numbers but does not work when similarity is up to 11 decimal numbers. Why?

Through the following code, Tcvalues are generated: ...
0
votes
1answer
74 views

Create a Venn and/or related diagrams given the eight atoms of a three-set (A,B,C) 256-dimensional Boolean algebra

In my recent answer to How can one expand an arbitrary boolean combination into the $2^n$ atoms of the associated boolean algebra of size $2^{2^n}$?, for the eight atoms {G[0],G[1],G[2],G[3],G[4],G[...
0
votes
1answer
32 views

How to plot parametric phase diagram with bar legend? [closed]

I am trying to plot the parametric phase diagram with bar legend in the form of a rainbow. I have asked one similar question before in which I have shown the region plot. But equations are different ...
0
votes
2answers
96 views

Easiest way to display two plots side by side [duplicate]

Sometimes I like to display two plots right next to each other, so I can see all the important information at once. For example, I have a plot with 5 lines, and I want to have a plot of only 2 of ...
2
votes
0answers
86 views

How to plot multicolor phase diagram with three parameters?

I am trying to plot like the diagram given above. I have two nonlinear equations that I have separated in imaginary and complex forms (u1,v1, and x1,y1). As shown in the figure in the x-axis I want '...
1
vote
2answers
59 views

Custom scaling of x-axis in ListPlot

I'd like to plot a list of the following form with a customized scale data=ConstantArray[1, 1000] The scale of x-axis is kind of non-linear. The first 500 ...
2
votes
1answer
151 views

How can I create this graph in Mathematica?

I'm interested in illustrating a hyperbolic plane for a report I'm writing. Here's the metric that I'm using: $$ds^2=dr^2+\sqrt{\lvert k\rvert}^{-1}\sinh\left(r\sqrt{\lvert k\rvert}\right)\left( d\...
3
votes
3answers
159 views

How To Generate a Direction Field and Solve a System of Differential Equation

I want to draw a direction field and solve this system of differential equations using Mathematica, but I've been researching, and I can't find a way to do this: $$\mathbf{x'} = \begin{pmatrix} 1 &...
0
votes
0answers
57 views

How to deal with first order complex differential equation?

I am trying to solve these two equations but find an error of fewer than the dependent variable and list of replacement rules nor a valid dispatch table, and so cannot be used for replacing. I don't ...
0
votes
0answers
32 views

How to deal with units while plot?

I am plotting a bistable plot and the given code is giving me the bistable plot. But there is one problem in the plot. In the x-axis "P0" is multiplied with 10^(3) p. second. and in the y-axis, the ...
1
vote
2answers
65 views

Replacement Rule Line Thickness

I have a plot with imported data that I have used a replacement rule to make the data a line rather than individual points. However, I want to increase the thickness of that line. How do I do this? I ...
1
vote
1answer
48 views

Plotting a function rescaled by a parameter along x axis

I would like to know, how to plot a graph, for example of this function: $f(t)=-\frac{4 \sin \left(\frac{\gamma t}{2}\right)}{\gamma ^2 t}-\frac{4 \sin ^2\left(\frac{\gamma t}{4}\right)}{\gamma }-\...
4
votes
1answer
62 views

Trying to recreate a plot which tracks the age of individuals inside a compartment model

I am using a compartment model from this paper. I am trying to recreate Figure 6. I will be honest, I have no clue how to approach this. The paper doesn't give information on how to achieve the ...
0
votes
0answers
34 views

Bizarre Mathematica behavior with ContourPlot and Manipulate [duplicate]

I wanted to show somebody in Mathematica (I'm using version 12.1) how the parameter changes the position of the circle. I used the following code: ...
2
votes
1answer
60 views

Plot the expression using NIntegrate for the limiting case

I need to plot the below equations: $W^{+}(x,\tau,\alpha)]=-\frac{2m}{\pi\alpha}\exp[{\alpha x}]\times\int_{0}^{\infty}\frac{G(\omega,\tau_c)}{1+\omega^2}\cos(2\tau_c\omega\sqrt{1+\omega^2}-2\tan^{-1}...
0
votes
0answers
55 views

How to deal with complex equations in Solve method?

I am trying to deal with complex equations to solve them and use them in the plot. I want to know why these equations are not being solved. ...
6
votes
2answers
90 views

BarChart3D with continuous data along one dimension

I'm trying to find an option for BarChart3D (or some other 3D plotting function) which will allow me to visualize a set of data which should be continuous (i.e. interpolated) along one dimension, but ...
4
votes
1answer
78 views

How to place plot legends in two rows?

For example ListPlot[Array[# &, {4, 4}], PlotLegends -> Placed[{"a", "b", "c", "d"}, {Left, Bottom}]] How to place the plot legends as {{a,b},{c,d}}?
5
votes
4answers
134 views

How to mark a specific line in ContourPlot

I have the next differential equation sol = ParametricNDSolve[{y'[t] == a y[t], y[0] == 1}, y, {t, 0, 10}, {a}] And a Contour Plot of this equation ...
0
votes
1answer
45 views

How to use a second placeholder initial condition in the example?

I would like to use the following code for 2d parametric plot of 4d ode system. For the plot I need initial points to be gridded for 2 state variables. So I need to have 2 placeholders #1 and #2, ...
2
votes
0answers
42 views

How to Plot with non-orthogonal axes?

Sometimes I would want to Plot simple functions on unconventional projection, but without specifying all the styling myself. If one looks at ...
0
votes
1answer
56 views

Plot the image of a function $\mathbb{R}^4\to \mathbb{R}^2$ [closed]

Given a function $f\colon \mathbb{R}^4 \to \mathbb{R}^2$, I would like to plot the set $\mathrm{Im}(f)\cap R\subset \mathbb{R}^2$ where $R$ is a rectangular set in $\mathbb{R}^2$ (ie. the plot range ...
0
votes
1answer
38 views

Filling between two lines on plot [closed]

Consider the plot Plot[{x,x^2},{x,1,2}] How to add a filling option such that the filling will be above x but below x^2?
2
votes
1answer
25 views

Options for SmoothDensityHistogram [closed]

I would like to add an option to SmoothDensityHistogram about what to plot (PDF, CDF,...). I am using quite a lot of options: ...
2
votes
0answers
109 views

Plotting from the celebrated Euler's formula

ContourPlot[ x^(I*y) == -1, { x, 1, 3}, {y, 1, 3}] A newbie's query..The most famous equation should ( methinks) yield a lot of points other than the real pair $(...
2
votes
1answer
88 views

Plot of Galerkin method issue [closed]

Please see the attached code with the attached picture which I plotted correctly using Matlab but I couldn't using Mathematica ...
2
votes
1answer
80 views

Phase portrait for three dimensional system of nonlinear difference equation using Mathematica

I am a student of M.Phil Mathematics. I am working on a non linear system of difference equations in three dimensions. I want to draw a phase portrait for my system using Mathematica. I was trying ...
4
votes
1answer
72 views

Plotting Graphs with multi-edges that have two colors per edge

I would like to plot graphs with multiedges, where each edge could have two colors (color 1 at vertex A and color 2 at vertex B). A very similar questions for graphs without multiedges has been ...
4
votes
1answer
78 views

Plotting Graphs with edges that have two colors

I want to plot a coloured Graph in Mathematica. The speciality, however, is that my edges can have two colours. Color A close to vertex A, and colour B close to vertex B. I was able to find plots for ...
1
vote
1answer
22 views

Evaluation order and Tables - Errors when using Evaluate@Table

following this question of mine Conditional PlotStyle, I ran into another problem. I fear it has to do with evaluation orders, as for example described in Table and Evaluation Order, but I am totally ...
1
vote
0answers
24 views

How to plot in a different style functions in a Table, based on a given condition [closed]

I struggle to find meaningful title. A minimal example will easily clarify the problem. Let's say I define a function such as ...
1
vote
1answer
49 views

Plotting data generated in a loop

First off, I am new to using Mathematica. What I am trying to do is the following: I have a matrix that is a function of two variables. I want to plot the region in the space of these 2 variables ...
0
votes
1answer
39 views

Unable to correctly Region Plot 3D

I have to plot the region shown in the image below. Although it's very simple, Mathematica is not able to plot it when I put the code ...
3
votes
2answers
111 views

Combining a point plot with a histogram

Hi everyone and sorry for my english, I'm new to Mathematica. I have a problem combining points with histograms in Mathematica 12.0. I would like to display a frequency histogram along with points ...
2
votes
1answer
136 views

Adding shadows and reflection to 3D plot

I would like to make the surface of my 3D plot have reflection and shadows, like in this plot: (from here). Is there any way to do this with Mathematica? If not, what software can make plots like ...
0
votes
0answers
26 views

Problem with opacity in 3D plot [duplicate]

I'm trying to plot surfaces with PLot3D but when I set the opacity below 1, I can't see the surfaces anymore. So I tried with the examples from the documentation (Plot3D[Sin[x + y^2], {x, -3, 3}, {y, -...
6
votes
3answers
302 views

Red plot background for negative sign

In the following Plot f[x_]:= Sin[2*Pi*x] Plot[f[x], {x, 0, 2}] I want to add red ...
1
vote
1answer
51 views

Removing fluctuations in plot, possibly due to numerical precision

Through the following code, we generate Tp1: ...

1
4 5
6
7 8
233