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
4
votes
2answers
67 views

Want to manipulate and visualize differential equation of a falling object

I am trying to get ahead of my upcoming semester by visualizing a differential equation of a general ODE solution for falling objects with the given solution of $$m\frac{{dv}}{{dt}} = mg - \gamma v % ...
3
votes
2answers
51 views

“Automatic is not a valid StreamPoints specification”

If I run StreamPlot[{a, b}, {a, 0, 10}, {b, 0, a}] the kernel hangs, and I have to restart it. I also get the error message StreamPlot::strmpts: Automatic is ...
5
votes
2answers
576 views

Phase portrait of a system of differential equations

I have a set of characteristic equations, obtained by method of characteristics from Hamilton-Jacobi equation $$H(q,x) = (q^2-q)x+(1-q^2)x^2$$ $$\partial_s x = (2q-1)x-2qx^2$$ $$\partial_{-s} q = (q^...
0
votes
1answer
46 views

How to use a Table to generate numerical data from tridimensional scalar or vector function? [closed]

I am interested to generate numerical values for a scalar and vector function (both are complex functions). My question and concern are how is possible to evaluate if the functions have three ...
5
votes
2answers
320 views

Plotting Chebyshev polynomials using PolarPlot and FilledCurve

This question is related to this answer. What should I change in the following code to replace black color with blue color in the second image? ...
5
votes
2answers
103 views

How to set PlotRange->All for data with uncertainties and prevent cropping of error bars?

Mathematica 12 introduces built-in plotting support for data with errorbars. The following example looks good with the default settings: ...
2
votes
1answer
35 views

How to Plot modulo function Mod on a function of two variables? [closed]

I know that Plot[Mod[x, 2], {x, -6, 6}] is a Mathematica command to plot the remainder of x over 2 when I range x over reals -6 to 6. How do I plot the same ...
3
votes
1answer
49 views

How to plot only certain parts of list regarding a condition?

I have two lists which I transposed. Now, I need to ListPlot only pairs where both numbers are greater than 0 and skip those with at least 0 in pair. E.g.: to plot {1,5}, not to plot {0,20} etc. Can ...
3
votes
2answers
61 views

Mirror the plot at certain distance from the horizontal x-axis

How to have a reflected mirrored red line at a distance of -1 in the negative y-axis. ...
0
votes
0answers
38 views

Parameter variation plot error

...
0
votes
1answer
33 views

I only get a blank plane, no sign of linear equation. what's the problem here?

Try to plot this graph. A = {2 x + 2 y == 8, 5 x + 3 y == 15, x == 0, y == 0}; ContourPlot[A, {x, 0, 5}, {y, 0, 5}] I only get a blank plane, no sign of these 2 ...
6
votes
3answers
698 views

How to count points under the curve?

I need a formula to calculate how many points are there under the curve $y=x$.
1
vote
1answer
41 views

Optimization of numerical integration

I would like to ask for a help from community in the numerical computation of an integral and in the preparation of a contour plot. I have already done some work in this direction, but everything is ...
0
votes
0answers
24 views

Error visualizing with ListDensityPlot3D

I have list of data points having elements {x, y, z, F(x, y, z)}, which I want to plot using ListDensityPlot3D. (x, y, z) are the points on surface of sphere in cartesian system and F(x, y, z) is an ...
3
votes
1answer
410 views

General::ivar 0 is not a valid variable when using Series in Plot

I have been having some trouble graphing a Taylor series approximation (Series). ...
0
votes
0answers
37 views

ListLogPlot with Legends inside the plot frame

I'm trying to do ListLogPlot for the two lists of points ...
3
votes
2answers
121 views

Plotting the inverse function of a complicated function

So I have a function F[x_] = Assuming[{Element[x, Reals], -1 < x < 1}, Integrate[1/Sqrt[(x^2 - 1)^2 + alpha*x], x]] I'm now interested in the ...
0
votes
0answers
27 views

PlotLegend Colors Missing

I want a PlotLegend with the colors of the graphics. p4 = Plot[y1[t] /. s1, {t, 0, tmax}, PlotRange -> All, PlotStyle -> {{Gray}}, PlotLegends -> "Y1"]; ...
1
vote
2answers
68 views

Plotting amplitude vs frequency in Mathematica

I want to plot an amplitude vs frequency with this formula: By using this data: So it should look like this: Unfortunately, I don´t manage it to plot this. Could someone help please ?
0
votes
2answers
32 views

Two overlapping list: plot odd and even from each in different colors

I have two lists produce by a script that are most likely identical (but might not be). I would like to plot them using ListPlot[] in such a way to display only ...
0
votes
0answers
42 views

DSolve Varying Base on Implementation

I am trying to understand the behavior of a system of equations that is derived from: ...
1
vote
2answers
65 views

How can I plot a matrix with a two-dimensional color scheme?

Plotting a matrix with colors depending on the value of each entry is straightforward, ...
2
votes
1answer
57 views

PlotMarkers problem on some stylesheets

Sample data: ...
0
votes
2answers
91 views

How to plot all the points which satisfy equation/inequality in two variables?

I am new to Mathematica and I have two questions that I really appreciate if you can help me to solve them. 1) I want to plot all the points (x, y) which satisfy the following equation: ...
0
votes
0answers
81 views

Blank graph on offline mathematica

I am looking at the following plot: ...
3
votes
1answer
58 views
3
votes
1answer
57 views

Solve and plot PDE on restricted domain

I want Mathematica to solve (I used a picture since when I use mathjax code the editor here says I might be using wrongly formatted code...) So far, I have ...
2
votes
2answers
35 views

Increasing labelling size in a ListPointPlot3D

...
0
votes
0answers
44 views

Bifurcation diagram with two parameters [duplicate]

I have a question. In Bifurcation diagram of a difference equation I asked for one parameter. And now I am going to tell how do I make a bifurcation diagram of that function with two parameters? I ...
2
votes
1answer
55 views

How to plot a multivalued function in $\mathbb{R}^2$ using Mathematica?

First of all, consider the cubic equation $$x^3 + a = x. $$ Using Mathematica is easy to find real solutions of the above equation, ...
2
votes
1answer
53 views

Contour Plot of system of differential equation

I am trying to find the fixed points and plot the nullcline/contourplot for the system below, but I get conditional cases $$\frac{d\theta_1}{dt}= K sin(\theta_1 - \theta_2) - sin(\theta_1)$$ $$\frac{...
3
votes
1answer
30 views

How can I plot 3d surface plot together with 3d scatter plot in the same cube box

How can I combine them together in the same cube box ...
3
votes
2answers
119 views

Problem in styling a monochrome plot

I have a set of functions I have plotted them in one single figure. The following are my concerns. 1. I tried to fix the legends for this figure, but unable to do this 2. Is there any way that I can ...
4
votes
1answer
55 views

Scaling contour plot colors over several orders of magnitude

I have this contour plot that has values ranging from ~0.01 to ~100, however, there aren't distinct colors between every order of magnitude. I've tried putting a Log scale on the ...
2
votes
1answer
93 views

Solving Poisson's equation with two Dirac delta potentials

I am trying to solve $\nabla^{2}\phi(x,y)=V_{0}(\delta(x-a,0)-\delta(x+a,0))$ with boundary conditions $\phi(x=0,y)=0, \phi(x=b,y)=0$. Here $a=1, b=5$. How one can solve it numerically in Mathematica. ...
1
vote
2answers
80 views

How can I plot these straight lines in a picture?

How can I plot these straight lines in a picture? ...
11
votes
1answer
150 views

How to set FenceWidth in logarithmic plot?

Mathematica 12 introduced a built-in support for logarithmic plots with error bars. A plot with default styling looks as expected: ...
2
votes
1answer
40 views

Repeat PlotStyle for different functions [closed]

I am trying to plot a helicoid using Plot3D. I would like all the functions that make it up to appear the same. I am curious if there is a way I can do that ...
4
votes
1answer
53 views

How to test if two plots are the same (say, for unit testing)

I'd like to be able to test if two plots are the same. My use-cases involve plots that in one case might be of one type but in another of another type. Principally, I'm interested in the "calculus-...
1
vote
1answer
21 views

Plot: line colors when using assumptions

I want to vary a parameter via assumptions in a simple line plot and assign a different line color to each parameter value. Unfortunately all lines are the same color. I also tried to use Evaluate[], ...
0
votes
1answer
36 views

Labelling plots using list of images [closed]

I have plotted the following: ...
0
votes
0answers
18 views

Color of line in ParametricPlot according to indepedent variable

I solve a set of pdes numerically using NDSolve: ...
1
vote
1answer
53 views

How to place a two-dimensional contour map under a three-dimensional ascending contour map?

I want to place a two-dimensional contour map under a three-dimensional ascending contour map。I use “Texture” function wihch can not work against。 I want to like this picutre: ...
2
votes
2answers
65 views

Plots in Hammer projection [closed]

I have a function $f[\theta,\phi]$ defined on the surface of a sphere that I would like to plot in an equal-area projection ellipse. Surely there's a straightforward way to do this, but so far all I'...
8
votes
1answer
65 views

How to fine tune the style of IntervalMarkers -> “Bands”?

In Mathematica 12 I can use ListPlot to visualize uncertainty of tabulated data as bands. For example: ...
0
votes
1answer
35 views

How to plot multiple functions in a graph with different colors?

I have a general {i,x,y} dimensional matrix, and I want to plot all "i" {x,y} matrices in one graph. How can I do it in a way that I can still distinguish each "i"th curve from the other (I mean ...
3
votes
3answers
303 views

Issue with ContourPlot

I am trying to Contour plot the solutions "$x$" of an equation versus $k$ for some fixed $T$ values. However, the contour plot is giving incorrect plot perhaps due to some accuracy issues. e.g., at ...
0
votes
0answers
27 views

What is better here, PlotPoints or MaxRecursion?

I have some function f[x,y], with x ranging from 0.5 to 62.5 and y ranging from 10^-20 to 10^-5. Near x = 62 the function starts to increase very fast and takes at x = 62.5 some large finite value. I ...
1
vote
0answers
51 views

Plot of Laguerre-Gaussian wavefront

I have tried to plot the wavefront of a Lagherre-Gaussian bean, I know that to do that i have to plot the set of all points where the wave has the same phase. I have try to use the conditional If ...
6
votes
2answers
132 views

How to plot a crossection of a ParametricPlot3D?

I'm plotting a surface using ParametricPlot3D. Ideally I would like to plot an intersection of the surface with a plane just as seen in another question (Cross Sections or slices of 3d figures - ...