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
2 views

Arrange elements in PlotLegend

I have the following test code ...
-4
votes
0answers
42 views

i couldn't figure it out. Help me please [closed]

Draw the g(x,y)=n,-5<x<5,-5<y<5. Construct the graph of this function over the region 0<x,0<y and x^2+y^2 ≤1. Show the object under this surface. Calculate the volume of this object.
0
votes
1answer
23 views

Plot multiple solutions of the differential equation in a with values of constant c=-2,-1,0,1,2 in a single graph

ClearAll["Global`*"] ans = DSolve[y'[x] == (4 y[x])/x, y[x], x] {{y[x] -> x^4 C[1]}} ...
0
votes
0answers
10 views

Exported Frame Tick Labels Don't Look Anti-aliased

I have a frame with labeled gridlines and I'm exporting it as a PNG. I am using ImageResolution to scale it up. This is the output I get when there is no function being plotted (it has an alpha ...
1
vote
2answers
78 views

Plot a functional relation involving a derivative and inverse

I have a function f[x] obtained by solving certain ODE. Thus, it is given as an interpolation function. I need to plot $\frac{dx}{df}$ as a function of $f$. Below I ...
0
votes
0answers
28 views

how to visualize all data having different range

I have a dataset following below: data = {{0.1,3}, {0.3, 0.03}, {0.5, 0.04}, {0.1, 0.02}, {0.2, 0.08}, {0.45, 0.09}}; I want to break the y axis thats why I can show all data in a single plot. I am ...
0
votes
1answer
39 views

How to plot a function when we want to change the independent variables? [closed]

Suppose we have two functions $z(x)=x^4+1$ and $y(x)=x^2+x+1$. Then how to plot $z$ vs $y$ (assuming in general that $z$ can not be written explicitly in terms of $y$)?
4
votes
1answer
57 views
2
votes
1answer
105 views

Plot a Satellite Knot

I need some help to plot a Satellite or cable knot. For example, see figure A torus knot and a cable knot. (a) The red curve lying on the yellow torus is a (2,3) torus knot. (b) The embedded yellow ...
1
vote
2answers
40 views

Plot an integral function for various values of the parameter

How can I plot the function F[x_,a_]:=Integrate[Abs[x - z]^(-1-2a), {z, -Infinity, -1}] + Integrate[Abs[x - z]^(-1-2a), {z, 1, Infinity}] for x in (-1,1) and a in (...
0
votes
2answers
86 views

Solid Ellipsoids

I'm using th following way to produce solid spheres for random microstructures. I'm trying to find a way to produce solid ellipsoids with the same way. Does anyone have any idea? I have already a code ...
0
votes
0answers
39 views

Neverending calculation - how to accelerate?

I have the given problem, I would like to plot the complex valued function: ...
1
vote
1answer
53 views

How to make a {x,y,z} plot of a data set

I'm a beginner using Mathematica so I really need help with this. I have a data set which consist in a [X,Y] vector and a matrix of Z values. For every step of Y, I have a vector X, which is always ...
3
votes
2answers
69 views

A question on Multiple RegionPlots

I want to find the output of RegionPlot for a simple condition namely n*(x + y) < 1, where n is a varying number. Here I have used Manipulate command in order to generate multiple RegionPlots (with ...
2
votes
2answers
59 views

How to fill an Ellipses?

I am very new to Mathematica and I am plotting a standard deviation and represent it in ellipses form. But I am having a trouble filling it in with a color instead of showing a dot in the center. ...
0
votes
1answer
20 views

Using Manipulate with a Bessel function for specific levels N of the sum

I try to plot an interactive plot where one can select the levels of N (noted nf) for a Bessel function: ...
0
votes
0answers
41 views

Minimizing a function that is not defined everywhere

So I have the function ...
3
votes
1answer
91 views

How can I put two contour plots into the same figure while displaying only one legend?

testfig = ContourPlot[Sin[x^2 + y^2], {x, -Pi, Pi}, {y, -Pi, Pi}, PlotLegends -> Automatic]; ...
1
vote
1answer
37 views

CDF function from list

How can I get the CDF for a list of values ​​containing the value of a random variable and its probability? I have: ...
0
votes
1answer
63 views

How to plot a Sum function with Bessel function of the first kind [closed]

I have looked around for a code that can help to plot the magnitude and phase of the following sum Sum[(BesselJ[n, r] e^(I n ϕ))/I^n, {n, -N, N}] But I am not able ...
4
votes
1answer
63 views

How to show net income geographically of a company in a certain city

Let's say that I have a company, and I already extracted it's net profit with time series. ...
2
votes
1answer
31 views

Overlay Two Plots, One With Extended Domain and the Other With Frame

I need to export two versions of a plot as PNG images and have them line up perfectly in an external program. One version needs to have gridlines and a frame at specific points, and the other version ...
1
vote
1answer
25 views

Alternate Frame Ticks, Only Label Specific Ones

I have the following function that I would like to plot: ...
2
votes
1answer
29 views

How to set date axis of the DateListPlot to follow the order of the data

I'm trying to show plots of weekly data from multiple periods each spanning June - April. The actual starting dates vary so the dates don't actually coincide but would like to stack them to compare ...
3
votes
1answer
52 views

Shrink ListPlot Marker Size to Zero

I am trying to create a ListPlot where the size of each marker is controlled individually. The best solution I have found so far is to wrap every data point in <...
0
votes
0answers
20 views

Minimizing a function and plot it

I have a long expression, depended on 3 different variables say "a", "b" and "p". Just as an example, a part of this expression is: z = p * Cos[x] * Sin[y]. I'm going to ...
0
votes
0answers
40 views

Uniform Color distribution with the command Show[]

I have the following definitions: ...
-1
votes
2answers
58 views

Projections of set on coordinate planes

I want to take the projection of this ellipsoid into x-y, y-z and z-x plane. How can I do it? ...
0
votes
2answers
77 views

How to smoothen a contour plot?

I want to smoothen the following contour. ...
0
votes
0answers
29 views

Scaling vectors by their norm in VectorPlot3D

I'm trying to generate a 3D vector plot in which the length of the vector is really it's norm. This is my code: ...
0
votes
0answers
41 views

Density Plotting 2D and 3D

(*This was already the corrected code answered to me by @TOMI (thanks to you). I modified some to fit what I want. But I still have some issues. The theta which ranges from 0 to 2pi, is presented ...
0
votes
0answers
28 views

How to contour plot a quantized function?

I am trying to plot a function over a 2 dimensional region, which takes integer and half integer values. However, due to numerical approximations and errors, the calculated value of the function ...
4
votes
10answers
674 views

Mathematica values new list

I have a list: ...
0
votes
0answers
45 views

Mathematica returns some warning and errors instead of Output

I have a set of three coupled PDEs. Using NDsolve to get an output plot of my PDE's with the given parameters. As I'm new to Mathematica, I have almost spent two days, but cannot locate the problem ...
2
votes
1answer
36 views

Removes edges from 3D plots in a Show

Below I report the following code ...
0
votes
1answer
44 views

Issue with ParametricNDSolve and Table

I have a differential equation, I plot it for different initial values by using ParametricNDSOlve. Code - ...
0
votes
1answer
56 views

Plot isn't showing the full range of my function [closed]

I have this function that I want to graph V[x_] = (1 (1 - E^(-9.8 x))) But when I graph it it shows a function that is not correct It should pass through origin. ...
0
votes
2answers
90 views

Display lists in a table form

I would like to display the lists in a table as in the image. How can I make it work? ...
1
vote
0answers
29 views

Why does shift-drag resizing a DateListPlot cause the line to disappear?

Start with the following plot: DateListPlot[FinancialData["IBM", "Jan. 1, 2004"]] I want to resize it to make it a bit wider, so I use SHIFT + ...
2
votes
1answer
85 views

Plot solution to damped driven pendulum in $(-\pi,\pi)$

I'm solving the damped driven pendulum: ...
2
votes
3answers
313 views

Voronoi diagram of two data sets

My primary data is ...
0
votes
1answer
38 views

Plot part of a contour curve of the imaginary part of a complex function

I want to plot some contour cuvres of a simple function $f(z)=((z + 1/z)^2 - 4)*(1 - I)$. The code ComplexContourPlot[Im[((z + 1/z)^2 - 4)*(1 - I)] == 0, {z, 2}] ...
2
votes
1answer
72 views

How to plot spherical harmonics using two primary colors?

I did go through Density plot on the surface of sphere where great examples are provided. What I am very much interested is in plotting spherical harmonics (real/imaginary or lets say just the assoc. ...
0
votes
0answers
42 views

Mathematica More Detailed Plot Around Asymptotes

I'm wanting to export some animations from Mathematica involving animating certain plots with asymptotes. At certain points in time, one of the parameters approaches a value where the function no ...
0
votes
0answers
43 views

Can I draw a pascal triangle with a For loop? [closed]

Can I also write the Pascal triangle I got with Column[Table[Binomial[n, k], {n, 0, 8}, {k, 0, n}], Center] using a For loop ...
2
votes
1answer
51 views

Remove lines from frame in ListPlot3D

I want to remove the lines from the frame leaving only the three coordinate axes and the lines that make up the 'floor'.
0
votes
0answers
23 views

Why AxesLabel disappear when the plots are combined?

I want to combine plot1 and plot2 and keep using the AxesLabel. But when they are combined by ...
0
votes
1answer
47 views

How to plot a line from a surface

I have a surface difference that I have defined as an expression of x and t and can plot it, ...
4
votes
0answers
49 views

Why are my polar grid lines limited by the maximum radial value?

I am wondering why the displayed polar grid lines are limited by the maximum plotted value (see minimal example below) - is it possible to show polar grid lines beyond the largest radial value? Thanks ...
-1
votes
1answer
37 views

How to store ParametricPlot in a variable without plotting the graph?

Write separated commands for the following parametric equations using ParametricPlot and plot all of them in a single graph and show the combined graph only.

1
2 3 4 5
254